SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
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 where the first dynpro is a selection screen.
Source Code
*&---------------------------------------------------------------------*
*& Modulpool SAPMSSLS
*
*&---------------------------------------------------------------------*
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 assigned transaction DEMO_SELSCREEN_DYNP, the program starts by displaying selection screen 500. The user input on the selection screen can be processed, 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 next dynpro, 100.