Ansicht
Dokumentation

ABAPIMPORT_INTERNAL - IMPORT INTERNAL

ABAPIMPORT_INTERNAL - IMPORT INTERNAL

Fill RESBD Structure from EBP Component Structure   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

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. key expects the update key that was assigned by the system, with the sequential request number. If the specified update key 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 IMPORT FROM DATABASE if a table work area dbtab is declared for the relevant database table using TABLES. The addition TO wa is not allowed. 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 provided in the table work area dbtab as it would be read from the database. The subroutine is then called automatically as often as required until a complete data cluster has been imported. The table work area dbtab must be filled accordingly in every call. If no correct data cluster is provided, the behavior is undefined, and exceptions may be raised. If the addition USING subr is used, the return code sy-subrc is set to the value 0 or 4. It is set to the value 4 if it has a value other than 0 when the subroutine is exited.

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

  • TO INTERNAL TABLE is intended to be specified for external use instead of FROM DATABASE ... USING.
  • Specifying an external program prog is the same as the obsolete variant of PERFORM.

Example

Export of a data cluster to an internal table instead of to a database table. After that, import from the internal table






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 3142 Date: 20240419 Time: 154330     sap01-206 ( 44 ms )