Ansicht
Dokumentation
ABENVALUE_CONSTRUCTOR_PARAMS_LSPC - VALUE CONSTRUCTOR PARAMS LSPC
rdisp/max_wprun_time - Maximum work process run time ABAP Short ReferenceThis documentation is copyright by SAP AG.
VALUE, line_spec
... line
$| ${LINES OF itab $[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 value operator VALUE.
Note
If lines from the target table or the entire target table are used in line_spec in an assignment
of a constructor expression using the value operator VALUE
to an internal table, these lines are deleted or overwritten with a start value before both variants
of line_spec are evaluated. The target table must therefore be saved in an auxiliary variable first, for which a LET expression can be used.
Alternative 1
... line
VALUE 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:
VALUE 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 ... )
... ).
- In VALUE, the table lines are constructed in accordance with the rules for the instance operator
NEW, since new table
lines are created here and the restriction for VALUE dictating that no values of elementary data objects can be constructed cannot be applied.
Construction of a ranges table and filling it with four lines while using the short form for structured line types.
Alternative 2
... LINES OF jtab $[FROM idx1$] $[TO idx2$] $[STEP n$] $[USING KEY keyname$]
Example
Construction of an internal table with an elementary line type. jtab is filled with three lines
and itab with six lines. The first line inserted in itab is initial and the last three lines are taken from the table jtab filled previously.
Construction of an internal table with an elementary line type. jtab is filled with ten lines
and itab with six lines. The first line inserted in itab is initial and the last three
lines are taken from the table jtab filled previously. The additions FROM and STEP
define the step size for processing the table jtab: Every second line starting at the sixth line is read.
BAL Application Log Documentation BAL Application Log Documentation
This documentation is copyright by SAP AG.
Length: 5535 Date: 20240426 Time: 202443 sap01-206 ( 67 ms )