ABAP Keyword Documentation → ABAP - Reference → User Dialogs → Screens → Statements in the Screen Flow Logic → FIELD → Field and Input Help → Field and Input Helps - Examples
Screens, Screen Input Help
The example shows how to use the screen input help.
Other versions: 7.31 | 7.40 | 7.54
Source Code
REPORT demo_dynpro_f4_help_dynpro MESSAGE-ID dw.
DATA: carrier(3) TYPE c,
connection(4) TYPE c.
CALL SCREEN 100.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
Description
The static next screen number of screen 100 is 100. The input fields have been taken from the program
fields carrier
and connection
. The function code
of the pushbutton is CANCEL with the function type E. The screen field
carrier
is assigned the search help DEMO_F4_DE with the search help parameter CARRID, which accesses the database table SCARR. The screen flow logic is as follows:
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
FIELD carrier VALUES ('AA', 'LH').
FIELD connection SELECT *
FROM spfli
WHERE carrid = carrier
AND connid = connection.
When choosing the F4 help for the individual fields, the user receives the following input helps:
- For the airline carrier, the search help displays the list of airline names and copies the airline
ID for the selected row to the input field. If the ID does not match the
VALUES
list of the flow logic, the input check triggers an error message at PAI. This means that the search help overrides theVALUES
addition for the input help but not for the input check. You should therefore not use aVALUES
addition.
- For the connection, the flow logic displays the list of selected entries from database table SPFLI and copies the connection number of the selected row to the input field.