Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  SAP GUI User Dialogs →  General Dynpros →  Statements in the Dynpro Flow Logic 


Other versions: 7.31 | 7.40 | 7.54




The statements CHAIN and ENDCHAIN in the dynpro flow logic define processing chains. The statements FIELD and MODULE can be executed between CHAIN and ENDCHAIN. The statements between CHAIN and ENDCHAIN form a processing chain. Processing chains cannot be nested. The statement CHAIN can be specified in the event blocks at PAI and PBO, is ignored, however, in the event block at PBO.

A processing chain allows the joint processing of all the dynpro fields specified between CHAIN and ENDCHAIN after FIELD statements:

  • The content of all dynpro fields combined as a processing chain by the FIELD statements can be checked in the shared conditions ON CHAIN-INPUT and ON CHAIN-REQUEST of the statement MODULE.
  • A warning or error message in a module called within a processing chain makes all input fields ready for input whose dynpro fields are combined in this processing chain using FIELD statements. After user input, PAI processing resumes at the statement CHAIN at the latest.


Calls dialog modules to check input values. The dynpro fields input1 and input2 are checked in separate dialog modules check_1 and check_2. The dynpro fields input3 to input5 are checked in a processing chain in a shared dialog module check_chain. Warning or error messages in the dialog modules either make only one input field input1 or input2 ready for input or all three input fields input3 to input5.

  MODULE leave_dynpro AT EXIT-COMMAND.
  FIELD input1 MODULE check_1 ON REQUEST.
  FIELD input2 MODULE check_2 ON REQUEST.
    FIELD input3.
    FIELD input4.
    FIELD input5.
    MODULE check_chain ON CHAIN-REQUEST.
  MODULE handle_user_command.