SAP DYNPRO GUI STATUS ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_DYNPRO - GUI Statuses and Function Codes
This example demonstrates how to set the GUI status and evaluate function codes.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
The static next dynpro number of dynpro 100 is 100. The screen field of output is defined as not ready for input in Screen Painter. The module init_screen_0100 sets the GUI status status_0100 and the title 100 in the PBO event. All function codes exist as menu entries, but not all of them are assigned to function keys. The function codes in the standard toolbar activate the icons and are automatically assigned to their function keys. Some of the additional function keys are assigned to the application toolbar. The module user_command_0100 first assigns the content of the field ok_code to the helper variable save_ok and initializes ok_code . This procedure is always recommended since it also initializes the dynpro field ok_code again in the PBO event and does not contain any unwanted values. Then the function code chosen is assigned to the field output and displayed in the corresponding screen field, except for BACK, EXIT, and CANCEL. The latter terminates the program. The function code SELE can be passed to the ABAP program in the following ways:
Choosing Choose in the Edit menu
Choosing the Choose pushbutton in the application toolbar
Choosing F2 on the keyboard
Pressing the right mouse button and choosing Choose
Double-clicking the screen field of output
Entering SELE in the command field and choosing ENTER
The other function codes are passed in accordance with their definition, but without a double-click.