SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
No local copies usingASSIGN
Error message in ABAP Objects if the following syntax is used:
ASSIGN LOCAL COPY OF INITIAL f TO <fs>.
ASSIGN LOCAL COPY OF f TO <fs>.
Correct syntax:
DATA dref TYPE REF TO data.
CREATE DATA dref LIKE f.
ASSIGN dref->* TO <fs>.
DATA dref TYPE REF TO data.
CREATE DATA dref LIKE f.
ASSIGN dref->* TO <fs>.
<fs> = f.
Reason:
Due to the introduction of the general data references concept, the addition
LOCAL COPY of the statement ASSIGN is obsolete. The value of f can be copied using the assigment <fs> = f after ASSIGN.