SAP READ LINE RESULT ABAP Statements



Get Example source ABAP code based on a different SAP table
  


• LINE VALUE INTO READ LINE
• FIELD VALUE INTO READ LINE

READ LINE, result
Short Reference

ABAP_SYNTAX
... $[LINE VALUE INTO wa$]
$[FIELD VALUE dobj1 $[INTO wa1$] dobj2 $[INTO wa2$] ...$].

ABAP Addition
1 ... LINE VALUE INTO wa
2 ... FIELD VALUE dobj1 $[INTO wa1$] dobj2 $[INTO wa2$] ...

What does it do?
Specifies target fields for READ LINE.

ABAP Addition

What does it do?
The addition LINE VALUE assigns the formatted content of the complete list line in the list buffer to the data object wa.

ABAP Addition wa2$] ...

What does it do?
The addition FIELD VALUE assigns the output areas of individual data objects dobj1 dobj2... that have been output to the list buffer to these data objects, or, if specified, to the data objects wa1 wa2 .... wa or wa1 wa2 ... expects data objects whose data type is covered by the generic type simple, except for enumerated objects. The list line or data objects dobj1 dobj2 ... are handled as if they have the data type c, which means that trailing blanks are ignored.
If identically named data objects dobj1 dobj2... appear more than once in a line, only the first object is read. If a data object dobj1 dobj2 ... does not exist at all, the specification is ignored.
If the output area of a data object addressed in the WRITE statement using a field symbol is to be read, and the same data object is no longer assigned to the field symbol, the name of the data object must be specified and not the name of the field symbol.



Latest notes:

No conversion routine is executed when an output area is read.
The content of the line or of the individual output areas in the list is character-like and formatted according to the rules for the WRITE statement. When the read line or an area is assigned to a data object, the conversion rules apply in the same way as to a source field of type c. This can cause problems with the target fields dobj1 dob ... or war war ..., particularly if these fields are numeric and the output contains separators. Due to this, use of READ LINE is mainly recommended for the evaluation of fields that are ready for input. For other evaluations, HIDE can be used to save values in a type-compliant way.
ABAP_HINT_END

Return to menu