The following cannot be used in ABAP Objects:
dbtab-...
= ...
EXPORT ... TO DATABASE dbtab(ar) ID id.
EXPORT ... TO SHARED BUFFER dbtab(ar) ID id.
IMPORT ... FROM DATABASE dbtab(ar) ID id.
IMPORT ... FROM SHARED BUFFER dbtab(ar) ID id.
... = dbtab-
Correct syntax:
DATA wa TYPE dbtab.
WA-... = ...
EXPORT ... TO DATABASE dbtab(ar) ID id FROM wa.
EXPORT
... TO SHARED BUFFER dbtab(ar) ID id FROM wa.
IMPORT
... FROM DATABASE dbtab(ar) ID id TO wa.
IMPORT ...
FROM SHARED BUFFER dbtab(ar) ID id TO wa.
... = wa-...
Reason:
If the addition FROM/TO wa is not specified,
the system tries to transport the user data fields of the table work area declared by
TABLES. If the table work area is not found, the user data
fields are not transported. A table work area can be declared in the main program of local classes; however, it should not be used. In global classes the table work area cannot be used at all.
Overview:
Replacement for Obsolete Statements ABAP Objects