ABAP Keyword Documentation → ABAP − Reference → SAP GUI User Dialogs → General Dynpros → Statements in the Dynpro Flow Logic
FIELD
Other versions: 7.31 | 7.40 | 7.54
Syntax
FIELD dynp_field { [ MODULE mod [cond] ]
| [ [MODULE mod]
WITH hlp ] }.
Effect
The statement FIELD of the
dynpro flow logic controls the data transport from the dynpro to the ABAP program during the event
PAI. It can be combined with the
MODULE statement to call dialog modules conditionally, to allow any input to be checked, and to allow self-programmed field and input helps at POH time and POV time.
FIELD can be used in the event blocks at
PBO,
PAI,
POH, and
POV, but is ignored in the event
block at PBO. dynp_field expects a dynpro field of the current dynpro. The statement has the following effect:
-
In the event block at PAI,
FIELDcontrols the time when the data transport from dynpro fielddynp_fieldto the global data object with the same name of the ABAP program takes place. -
In the event block at PAI,
FIELDcan be combined with aMODULEstatement to call a modulemodaccording to the conditionscondfor the dynpro fielddynp_fieldand to allow input checks with error handling. -
In the event blocks at POH and POV,
FIELDcan either be combined with a MODULE statement (withoutcondcondition) to call a modulemodwith self-programmed field or input help or, with the additionWITHof POH, a data element additional documentation can be called.
If a switch is assigned to the dynpro field dynp_field in
Screen Painter, the statement FIELD is respected only if the dynpro field has been activated by the switch.
Note
The statement FIELD has two further additions,
VALUES and SELECT, for executing an obsolete value check in the flow logic.
Continue
FIELD - Data Transport in Event PAI