ABAP Keyword Documentation → ABAP − Reference → Obsolete Language Elements → Obsolete Processing of External Data → Obsolete Access to Data Clusters
EXPORT, IMPORT - Short Form of the Parameter List
Other versions: 7.31 | 7.40 | 7.54
Obsolete Syntax
EXPORT dobj1 dobj2 ... TO
medium [COMPRESSION{ON|OFF}].
IMPORT dobj1 dobj2 ... FROM
medium [conversion_options].
Effect
If the parameter lists of the statements EXPORT
or IMPORT
use the short form
dobj1 dobj2 ...
instead of
p1 = dobj1 p2 = dobj2 ...
or
p1 FROM|TO dobj1 p2 FROM|TO dobj2
the parameters are saved or found implicitly in the cluster under the name of the specified data object.
This short form is only allowed outside of classes and only if the name does not contain an address specified using an instance component selector or an offset/length. If the short form is possible, it can be mixed with the correct form:
dobj1 p2 = dobj2 ...
This short form is prone to errors, since the current name is used as IDs of the saved data. When imported into another context, the names of the exporting context must be known and specified identically.
Note
If the parameter list is specified dynamically in an internal table ptab
,
the short form is also supported by specifying a single-column table (outside of classes). Just like the static short form, this is now also obsolete.