ABAP Keyword Documentation → ABAP - Reference → Calling and leaving program units → Calling ABAP Programs → Calling Transactions → CALL TRANSACTION → Transaction Call - Examples
Transaction Call, Dialog Transaction
The example illustrates a dialog transaction whose first screen is a a selection screen.
Other versions: 7.31 | 7.40 | 7.54
Source Code
<span class="blue">*&---------------------------------------------------------------------*</span>
<span class="blue">*& Modulpool SAPMSSLS *</span>
<span class="blue">*&---------------------------------------------------------------------*</span>
PROGRAM sapmdemo_selscreen_dynp.
SET EXTENDED CHECK OFF.
SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.
SELECTION-SCREEN BEGIN OF BLOCK sel1 WITH FRAME.
PARAMETERS: cityfr LIKE spfli-cityfrom,
cityto LIKE spfli-cityto.
SELECTION-SCREEN END OF BLOCK sel1.
SELECTION-SCREEN BEGIN OF BLOCK sel2 WITH FRAME.
PARAMETERS: airpfr LIKE spfli-airpfrom,
airpto LIKE spfli-airpto.
SELECTION-SCREEN END OF BLOCK sel2.
SELECTION-SCREEN END OF SCREEN 500.
AT SELECTION-SCREEN.
...
LEAVE TO SCREEN 100.
Description
When calling the transaction, the program starts with a display of selection screen 500. The user inputs
on the selection screen can be process, for example, at the event AT SELECTION-SCREEN
,
or later in the application logic. After processing the event AT SELECTION-SCREEN
(PAI of the selection screen), the program branches to a subsequent screen 100.