ABAP Keyword Documentation → ABAP - Quick Reference
IMPORT - Quick reference
Other versions: 7.31 | 7.40 | 7.54
Syntax
IMPORT { {p1 = dobj1 p2 = dobj2 ...}
| {p1 TO dobj1 p2 TO dobj2 ...}
| (ptab) }
FROM { { DATA BUFFER xstr }
| { INTERNAL TABLE itab }
| { MEMORY ID id }
| { DATABASE
dbtab(ar) [TO wa] [CLIENT cl]
{ID id}|{MAJOR-ID id1 [MINOR-ID id2]} }
| { SHARED MEMORY dbtab(ar) [TO wa] [CLIENT cl] ID id }
| { SHARED BUFFER dbtab(ar) [TO wa] [CLIENT cl] ID id } }
[ { { { {[ACCEPTING PADDING] [ACCEPTING TRUNCATION]}
| [IGNORING STRUCTURE BOUNDARIES] }
[ IGNORING CONVERSION ERRORS
[REPLACEMENT CHARACTER rc] ] }
| [IN CHAR-TO-HEX MODE] } ]
[CODE PAGE INTO cp]
[ENDIAN INTO endian].
Effect
Imports a data cluster into the data objects dobj1, dobj2, ...
Additions
-
{p1 = dobj1 p2 = dobj2 ...}|{p1 TO dobj1 p2 TO dobj2 ...}|(ptab)
Selects the data to be read by statically specifying individual parameters using p1 = dobj1 p2 = dobj2 ... orp1 TO dobj1 p2 TO dobj2 ...or by specifying them dynamically in an internal tableptab. -
DATA BUFFER xstr
Specifies a data cluster stored as a byte sequence inxstr. -
INTERNAL TABLE itab
Specifies a data cluster stored in an internal tableitab. -
MEMORY
Specifies a data cluster stored in the ABAP Memory. -
DATABASE dbtab(ar) [CLIENT cl]
Specifies a data cluster stored in a database tabledbtabin the areaarwith the client IDcl. -
{SHARED MEMORY}|{SHARED BUFFER} dbtab(ar) [CLIENT cl]
Specifies a data cluster stored in an application buffer in the shared memory of the current AS Instance addressed using the name of a database tabledbtab, an areaar, and a client IDcl. These two alternatives have different displacement mechanisms. -
ID id
Specifies the identifieridof the data cluster. -
MAJOR-ID id1 [MINOR-ID id2]
Obsolete: Specifies the identificationidof a data cluster in database tables using a pattern. -
TO wa
Specifies a work areawafor including details about the data cluster. -
ACCEPTING PADDING
Enables data to be exported to longer target fields. -
ACCEPTING TRUNCATION
Enables data to be exported to shorter target fields. -
IGNORING STRUCTURE BOUNDARIES
Enables data to be exported to structures with different boundaries. -
IGNORING CONVERSION ERRORS [REPLACEMENT CHARACTER rc]
Suppresses non-handleable exceptions when converting to the target code page, wherercspecifies a replacement character for characters that cannot be converted. -
IN CHAR-TO-HEX MODE
Enables character-like data to be exported to byte sequences. -
CODE PAGE INTO cp
Returns the code page for the data cluster incp. -
ENDIAN INTO endian
Returns the byte order of the data cluster inendian.