ABAP Keyword Documentation → ABAP − Reference → SAP GUI User Dialogs → General Dynpros → Statements in the Dynpro Flow Logic → FIELD
FIELD - Data Transport in Event PAI
If the statement FIELD
is used in the event block at point of time
PAI, the statement controls the data transport for the specified
dynpro field. By default,
all dynpro fields are transported to the ABAP program at the event PAI and before the processing of
the corresponding event block. If one or more FIELD
statements are used,
only those dynpro fields are transported directly at the event PAI that are not specified after a FIELD
statement.
The transport of the content of a dynpro field dynp_field
specified after
FIELD
to the identically named global ABAP data object takes place when the
corresponding FIELD
statement is executed. If a dynpro field is specified
in more than one FIELD
statement, its value is passed when the first corresponding FIELD
statement is executed. There are the following exceptions:
- The statement
FIELD
is ignored by the OK field. The OK field is always transported directly at the event PAI.
- A field whose content is empty at PBO
and which is not changed by the user is not transported by the
FIELD
statement. This applies to the full row in theLOOPs
for table controls and step loops.
Other versions: 7.31 | 7.40 | 7.54
Notes
- The effect of the statement
FIELD
on the data transport at the event PAI is independent from its association with aMODULE
statement.
- If an empty field (not modified by the user) is filled with a value in a PAI module before the
FIELD statement is executed, this value is not overwritten by the
FIELD
statement using the initial value.
- A dynpro field must not be used in a PAI module, before it is transported by the dynpro. Otherwise, the ABAP field contains the same value as at the end of the previous dialog step.
- When dynpro fields are defined with reference to
flat structures in ABAP
Dictionary, the global data objects with the same name of the ABAP program must be declared with the statement
TABLES
as interface work area. Otherwise, no data transport takes place, neither with or withoutFIELD
.
- If a dynpro field is defined with reference to a data element in ABAP Dictionary, and an obsolete field exit is assigned to this field in a customer system, the function module of the field exit can be executed during the transport. This usually changes the value of the dynpro field.
- Any dynpro fields, except fields of type STRING or SSTRING, are empty if they contain nothing but
blanks in the screen display. Dynpro fields of type STRING or SSTRING are empty if they do not contain
any characters. An initial time field with the characters 000000 or a
numeric field with the value 0 are, for example, not empty and are transported
by
FIELD
.CLEAR ... WITH space
can be used to insert blanks in character-like fields.