SAP IMPORT INTERNAL ABAP Statements
Get Example source ABAP code based on a different SAP table
IMPORT - Internal Additions
ABAP Code Snippet
ABAP Addition
1
2
• FROM LOGFILE ID key IMPORT cluster - internal
ABAP Addition
What does it do? Imports data objects from update data records. As
• USING IMPORT cluster - internal
ABAP Addition
What does it do? This addition can be specified for
The subroutine must either be defined in the same program or in a program,
Latest notes:
Example ABAP Coding
Exports a data cluster into an internal table instead of a database table. After that, imports from the internal table TABLES demo_indx_table.
DATA demo_indx_tab TYPE TABLE OF demo_indx_table.
DATA sflight_tab TYPE TABLE OF sflight.
SELECT * FROM sflight INTO TABLE sflight_tab.
EXPORT sflight_tab TO DATABASE demo_indx_table(fl) ID 'FLIGHTS'
USING demo_indx_table_export.
...
demo_indx_table-srtf2 = 0.
IMPORT sflight_tab FROM DATABASE demo_indx_table(fl) ID 'FLIGHTS'
USING demo_indx_table_import.
...
FORM demo_indx_table_export USING foo.
APPEND demo_indx_table TO demo_indx_tab.
ENDFORM.
FORM demo_indx_table_import USING foo.
demo_indx_table = demo_indx_tab[ srtf2 = demo_indx_table-srtf2 ].
demo_indx_table-srtf2 = demo_indx_table-srtf2 + 1.
ENDFORM.
Return to menu