SAP DYNPRO SET CURSOR ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_DYNPRO - Defining the Cursor Position
This example demonstrates how to define the cursor position on dynpros.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
At the start of the program, a selection screen appears on a cursor position can be selected. Afterwards, dynpro 100 is called whose static next dynpro number is dynpro 100.
The input and output fields are assigned to the fields field1 to field3 of the ABAP program. The header is the text field TEXT and the pushbutton is the screen element PUSH. The static cursor position is predefined in the dynpro properties as PUSH. The dynpro flow logic is as follows: PROCESS BEFORE OUTPUT.
MODULE cursor.
PROCESS AFTER INPUT.
MODULE back AT EXIT-COMMAND.
Before the screen of dynpro 100 is sent, the cursor position is set at PBO according to the user input on the selection screen. If the user chooses the static default, the cursor is placed on the pushbutton, otherwise on the header or one of the input fields. The specified position pos is only respected in the input fields.