Ansicht
Dokumentation
ABENNEW_CONSTRUCTOR_PARAMS_LSPC - NEW CONSTRUCTOR PARAMS LSPC
ABAP Short Reference Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.
NEW, line_spec
... line
$| ${LINES OF jtab $[FROM idx1$] $[TO idx2$] $[STEP n$] $[USING KEY keyname$]$} ...
Alternatives:
1. ... line
2. ... LINES OF jtab $[FROM idx1$] $[TO idx2$] $[STEP n$] $[USING KEY keyname$]
Effect
Specification of one or more lines to be inserted when constructing an internal table with the instance operator NEW.
Alternative 1
... line
NEW dtype$|#( $[let_exp$]
$[BASE itab$]
col1 = dobj11 ... ( col2 = dobj12 col3 = dobj13 ... )
( col2 = dobj22 col3 = dobj23 ... )
...
col1 = dobj31 col2 = dobj32 ... ( col3 = dobj33 ... )
( col3 = dobj43 ... )
... ).
This has the same semantics as the following form:
NEW dtype$|#( $[let_exp$]
$[BASE itab$]
( col1 = dobj11 ... col2 = dobj12 col3 = dobj13 ... )
( col1 = dobj11 ... col2 = dobj22 col3 = dobj23 ... )
...
( col1 = dobj31 col2 = dobj32 ... col3 = dobj33 ... )
( col1 = dobj31 col2 = dobj32 ... col3 = dobj43 ... )
... ).
Example
Construction of an anonymous internal table with a structured line type with a short form for the first column:
Alternative 2
... LINES OF jtab $[FROM idx1$] $[TO idx2$] $[STEP n$] $[USING KEY keyname$]
Example
Construction of an internal table itab that contains the first three lines and last three lines of the previously constructed internal table alpha.
Construction of an internal table itab that contains lines of the previously constructed internal table jtab. The additions FROM and STEP define the step size for processing the table jtab: First, every second line starting at the third line is read, second, every third line starting at the second line is read.
General Material Data Fill RESBD Structure from EBP Component Structure
This documentation is copyright by SAP AG.
Length: 4095 Date: 20240424 Time: 155711 sap01-206 ( 43 ms )