Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Calling and leaving program units →  Calling Programs →  Calling Transactions →  CALL TRANSACTION →  Transaction Call - Examples 

Transaction Call, SPA/GPAParameters

The example shows how to call a transaction using SPA/GPA parameters.

Other versions: 7.31 | 7.40 | 7.54

Source Code

    SET PARAMETER ID: 'CAR' FIELD carrid,
                      'CON' FIELD connid.
    TRY.
        CALL TRANSACTION 'DEMO_TRANSACTION' WITH AUTHORITY-CHECK.
      CATCH cx_sy_authorization_error.
        RETURN.
    ENDTRY.

Description

The transaction DEMO_TRANSACTION displays the details for a flight uniquely identified by the airline and the flight number. It is called from within main using the CALL TRANSACTION statement and filled with SPA/GPA parameters as initial values using the SET PARAMETER statement.