ABAP Keyword Documentation → ABAP - Short Reference
IMPORT - Short 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 to the data objects dobj1, dobj2, ...
Additions
-
{p1 = dobj1 p2 = dobj2 ...}|{p1 TO dobj1 p2 TO dobj2 ...}|(ptab)
Chooses the data to be read through static specification of single parameters via p1 = dobj1 p2 = dobj2 ... resp.p1 TO dobj1 p2 TO dobj2 ...or through dynamic specification 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 Identifiercl -
{SHARED MEMORY}|{SHARED BUFFER} dbtab(ar) [CLIENT cl]
Specifies a data cluster which was stored in the application buffer of the shared memory of the application server and which is addressed via the name of a database tabledbtab, an area ar and a client identifiercl. These two alternatives have different displacement mechanisms. -
ID id
Specifies the identificationidof the Data-Cluster. -
MAJOR-ID id1 [MINOR-ID id2]
Obsolete: Specifies the identificationidof a data cluster in database tables via a sample. -
TO wa
Specifies a work areawafor the admission of information to the data cluster. -
ACCEPTING PADDING
Allows reading in longer target fields. -
ACCEPTING TRUNCATION
Allows reading in shorter target fields. -
IGNORING STRUCTURE BOUNDARIES
Allows reading in structures with a different design. -
IGNORING CONVERSION ERRORS [REPLACEMENT CHARACTER rc]
Suppresses exceptions that cannot be handled when converting to the target code page, wherercspecifies a replacement character for characters that cannot be converted. -
IN CHAR-TO-HEX MODE
Allows reading of character-type data in byte sequences. -
CODE PAGE INTO cp
Returns the code page for the data cluster incp. -
ENDIAN INTO endian
Returns the byte sequence of the data cluster inendian.