‎2008 May 09 10:30 AM
Hi Experts
Could u plz explain the use and the terms of the following ABAP Statement:
IMPORT obj1 FROM DATABASE dbtab(ar) ID key.
Rewards awaiting....
Thx.. Santo
‎2008 May 09 10:35 AM
IMPORT DIRECTORY
FROM DATABASE dbtab(ar) ID id.
Effect
With this statement, a table of contents of all data objects of a data cluster that was written to the database table dbtab in the area ar and under the ID specified in id using the statement EXPORT is passed to the internal table itab. The database table dbtab must be set up as described for the statement EXPORT. For id, a flat character-type data object is expected that contains the ID of the data cluster and the two-digit area ar must be specified directly. The additions TO and CLIENT also have the same relevance as described in the statement IMPORT for important data from the data cluster.
‎2008 May 09 10:44 AM
Effect
If DATABASE is specified, the data cluster that was written to the database table dbtab in the area ar and under the identification specified in id using the statement EXPORT is imported. The database table dbtab must be set up in the same way as described for the EXPORT statement . For id, a flat, character-type data object is expected that contains the identification of the data cluster, and the two-digit area ar must be specified directly.
After TO, a work area wa that has the same data type as the database table dbtab can be specified. During import, the values of the database fields that are between the fields SRTF2 and CLUSTR are assigned to the components of wa with the same name.
If the database table dbtab is client-dependent, a flat, character-type field cl can be specified after the addition CLIENT. This field contains a client identification. If the addition is not specified, the current client is used.
Outside of classes, the addition TO wa can be omitted. Instead, a table work area for the database table dbtab can be declared using the statement TABLES. Then, during the import, the values of the database fields that are between the fields SRTF2 and CLUSTR are assigned to the component with the same name in the table work area dbtab. In addition, outside of classes, the specification id can be replaced by the obsolete specification obs_id.