sapdev logo background
sapdev logo sapdev logo
Comments

SAP DYNPRO AT EXIT COMM ABEXA documentation, setup help and example usage



Return to SAP documentation index


ARTIClE

Screens, Unconditional Module Call
The example illustrates how you can exit a screen without the automatic input checks.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
The static Next-Screen-Number of screen 100 is 100. The input fields have the screen fields input1 and input2 assigned to them. The input fields are specified as obligatory fields in their attributes. The function codes of the pushbuttons are EXECUTE and CANCEL
, in which CANCEL has the function type E . In GUI status STATUS_100 , the symbols Back ( F3 ) and
Cancel ( F12 ) are activated using the function codes BACK
and CANCEL . Both have the function type E . In addition, the function code EXECUTE is assigned to the function key F8 . EXECUTE does not have the function type E . The screen flow logic is:
PROCESS BEFORE OUTPUT.
MODULE init_screen_0100.
PROCESS AFTER INPUT.
MODULE execute1.
MODULE cancel AT EXIT-COMMAND.
MODULE back AT EXIT-COMMAND.
MODULE execute2.
The program demonstrates via information reports and status messages which modules are called after user actions and which data is t
ransported.
  • When "Execute" is selected without input to the mandatory fields, the automatic input check demands that the mandatory fields are populated.

  • When "Execute" is selected with populated mandatory fields, all screen fields are transported and the modules execute1 and execute2

  • are called consecutively.
  • When "Cancel" is selected with or without input to the mandatory fields, the OK field is transported and the module cancel is called. The program is exited there.

  • When you select "Back" with or without input to the mandatory fields, the OK field is transported and the module cancel is called. However, the program is not exited there, because the function code is BACK . Instead, the automatic input check is carried out. If the mandatory fields are populated, the modules execute1 and execute2 are called consecutively.

  • The module back is never called. Two module calls with AT EXIT-COMMAND do not make sense in the screen flow logic. In above example, the function code BACK was to be handled in module
    cancel as well. Then, the position of the statement MODULE with AT EXIT-COMMAND is irrelevant.
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    DYNAMIC_TYPE_GLOSRY
    DYNPRO_AUTO_CHECK_ABEXA




    comments powered by Disqus