Generating an SAP Data Structure for the Conversion Program
You can use the ABAP Dictionary to generate data structures for ABAP Dictionary objects (tables, views and structures) in any of the following programming languages:
You can then incorporate these data structures in your conversion program.
For most of the SAP data transfer standard programs, SAP has also provided special data structure identifiers. With such an identifier, you can generate a listing of all of the table fields that are required by the data transfer program. You manage these programs in the
Data Transfer Workbench. If you have generated your own program to transfer data from an external file, the SAP data structure definition that you require is stored in the data declaration section of the program.Conversion Programs in ABAP
If your conversion program is written in ABAP, you can use the information from the ABAP Dictionary directly to record the data structure of your tables.
The graphic below shows the structures of conversion programs in ABAP and as external programs written in other languages.
Including Table Structures in Conversion Programs: ABAP and Other Languages
Procedure
To generate a data structure, proceed as follows:
With this function, you can generate the structures of ABAP Dictionary objects in programming code. You can then add this code to your conversion program.
If you wish to use a special structure identifier for a standard SAP batch input standard program, then enter the identifier in the Key in TSRCG field. Example: The identifier AM-ANLA generates the data structure required for data transfers for the asset management application.
******************************************************************
* MEMBER GENERATED FROM SAP DATA DICTIONARY *
* T A B L E BALTD *
* DATE: 08.12.1995 TIME: 17:47:16 *
* PLEASE DO NOT CHANGE MANUALLY *
******************************************************************
*
01 BALTD.
*
* Client (Old Assets Data Takeover AM)
05 MANDT PIC X(3)
VALUE SPACE.
* Company code
05 BUKRS PIC X(4)
VALUE SPACE.
* Asset class
05 ANLKL PIC X(8)
VALUE SPACE.
Choose System
® List ® Save ® File to download the data structure to your workstation or PC.