SAP VALUE CONSTRUCTOR PARAMS LSPC



Get Example source ABAP code based on a different SAP table
  


• LINES OF VALUE itab
• FROM VALUE itab
• TO VALUE itab
• STEP VALUE itab
• USING KEY VALUE itab

VALUE, line_spec

ABAP_SYNTAX
... line
$| ${LINES OF itab $[FROM idx1$] $[TO idx2$] $[STEP n$] $[USING KEY keyname$]$} ...

ABAP_ALTERNATIVES:
1 ... line
2 ... LINES OF jtab $[FROM idx1$] $[TO idx2$] $[STEP n$] $[USING KEY keyname$]

What does it do?
Specification of one or more lines to be inserted when constructing an internal table with the value operator VALUE.



Latest notes:

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.
NON_V5_HINTS
ABAP_HINT_END

ABAP Alternative 1 ... line