ABAPIMPORT_INTERNAL - IMPORT INTERNAL
Fill RESBD Structure from EBP Component Structure CL_GUI_FRONTEND_SERVICES - Frontend ServicesThis documentation is copyright by SAP AG.
IMPORT - Internal Additions
These additions are for internal use only.
Do not use them in application programs.
Additions
1. ... FROM LOGFILE ID key
2. ... USING subr[(prog)]
Addition 1
... FROM LOGFILE ID key
Effect
Imports data objects from update data records. As key, you have to specify the update key thatwas assigned by the system (with sequential request number). If the update key specified does not exist in the database table VBDATA, the runtime error IMPORT_UNEXPECTED_END_OF_DATA occurs.
Addition 2
... USING subr[(prog)]
Effect
This addition can be specified for IMPORTFROM DATABASE if a table work area dbtab is declared for the relevant database tableusing TABLES.The TO wa addition is not permitted. The data is not imported from the database table. Instead,the subroutine subr is called. In the subroutine, the first row of a data cluster must be providedin the table work area dbtab as it would be read from the database. The subroutine is then calledautomatically as often as required until a complete data cluster has been imported, whereby the table work area dbtab has to be filled accordingly at every call.
The subroutine must either be defined in the same program or in a program, prog, specified explicitly.Its name must be prefixed with the name of the database table ("dbtab"). The subroutine must have a USING parameter of type any, which is currently not supplied.
Notes
- FROM DATABASE ... USING is not intended for external use; instead, TO INTERNAL TABLE is used.
- Specifying an external program prog is the same as the obsolete variant of PERFORM.
Example
Exports a data cluster into an internal table instead of a database table. After that, imports from the internal table
TABLES indx.
DATA indx_tab TYPE TABLE OF indx.
DATA sflight_tab TYPE TABLE OF sflight.
SELECT * FROM sflight INTO TABLE sflight_tab.
EXPORT sflight_tab TO DATABASE indx(hk) ID 'FLIGHTS'
USING indx_export.
...
indx-srtf2 = 0.
IMPORT sflight_tab FROM DATABASE indx(hk) ID 'FLIGHTS'
USING indx_import.
...
FORM indx_export USING foo.
APPEND indx TO indx_tab.
ENDFORM.
FORM indx_import USING foo.
READ TABLE indx_tab INTO indx WITH KEY srtf2 = indx-srtf2.
indx-srtf2 = indx-srtf2 + 1.
ENDFORM.
ENDFORM.
BAL Application Log Documentation BAL Application Log Documentation
This documentation is copyright by SAP AG.
Length: 3500 Date: 20120522 Time: 064949 triton ( 164 ms )






