SAP ASSIGN LOCAL COPY - Reference ABAP Statements

Get Example source ABAP code based on a different SAP table
  



ASSIGN - LOCAL COPY

ABAP Reference
ABAP Code Snippet


ABAP Syntax ASSIGN LOCAL COPY

OF { {[INITIAL] { dobj[+off][(len)]
| (name)
| oref->(attr_name)
| {class|(class_name)}=>{attr|(attr_name)}
| dref->* } }
| {INITIAL LINE OF {itab|(itab_name)}} }
TO <(><)>
[CASTING ...].
ABAP Code Snippet

What does it do? Obsolete: In a procedure , generates a local anonymous data object as a copy of a memory area and assigns it to the field symbol <(><)>.

ABAP Addition Specifying the memory area: Additions other than LINE OF - See ASSIGN.
LINE OF {itab|(itab_name)} - Copy of a row of an internal table itab.


Specifying the content: INITIAL
Initializes the anonymous data object. Otherwise, the content of the memory area is copied across.


Specifying the data type: CASTING ...
Specifies the data type used to handle the memory area. See ASSIGN.


Return to menu