ABAP Keyword Documentation → ABAP − Reference → Processing External Data → Data Cluster
IMPORT
Other versions: 7.31 | 7.40 | 7.54
Syntax
IMPORT parameter_list FROM
medium [conversion_options].
Effect
Imports data objects specified in parameter_list
from a
data cluster stored in
storage medium medium
with
statement EXPORT
.
If necessary, the data is automatically converted to the current byte order (endian) and character format.
Use additions conversion_options
to make adaptations to the current platform. System Fields
System Fields
sy-subrc | Meaning |
---|---|
0 | The specified data cluster was found and the content of the parameters in the data cluster was passed to the respective data objects. Unavailable parameters are ignored. |
4 | The specified data cluster was not found. |
If the internal addition USING subr
is used, a different rule applies to sy-subrc
.
Note
See also Classes for Data Clusters.
Example
Reads a link table of the ABAP keyword documentation that is buffered in a data cluster of a database table to an internal table.
DATA:
abapdocu_temp_id TYPE abapdocu_temp-srtfd,
abapdocu_temp_wa TYPE abapdocu_temp,
index_tab TYPE cl_abap_docu=>abap_index_tab.
abapdocu_temp_id = 'MAN_INDEX.' && sy-langu.
IMPORT man_index_tab = index_tab
FROM DATABASE abapdocu_temp(mx)
ID abapdocu_temp_id
TO abapdocu_temp_wa.
IF sy-subrc = 0.
...
ENDIF.