Get Example source ABAP code based on a different SAP table
• CASTING APPEND • ASSIGNING APPEND • REFERENCE INTO APPEND
APPEND>, result> Short Reference >
ABAP_SYNTAX ABAP_KEY ... ${ ASSIGNING <(><)> $[CASTING$]$}> $| ${ REFERENCE INTO dref $}.>
What does it do? These additions can only be used when appending single lines. If the append was successful, the addition ASSIGNING> is used to assign the appended line to a field symbol <(><)>>; the addition REFERENCE INTO> is used to set a reference to the appended line in a reference variable. The syntax and meaning are the same as when specifying the output behavior in the statement READ TABLE> > with the exception that the addition ELSE UNASSIGN> cannot be used. The same restrictions apply regarding the modification of key fields for primary> and secondary table keys>. In particular, inline declarations using the declaration operators DATA>>, FINAL> > and FIELD-SYMBOL>> are possible.
ABAP_EXAMPLE_VX5 Append two lines to an internal table and assign a field symbol to the first line and set a reference in the second line. ABEXA 01613 ABAP_EXAMPLE_END
ABAP_EXAMPLE_VX After the DO> loop, the data references in stab> point to the random numbers up to 50 and those in ltab> point to the random numbers greater than 50 that were appended to itab>. ABEXA 00010 ABAP_EXAMPLE_END
ABAP_EXAMPLE_V5 After the DO> loop, the data references in stab> point to the random numbers up to 50 and those in ltab> point to the random numbers greater than 50 that were appended to itab>. ABEXA 01612 ABAP_EXAMPLE_END