Entering content frame

Procedure documentation Writing Data Conversion Programs Locate the document in its SAP Library structure

The data conversion program is responsible for the following tasks:

If you are using an SAP batch input standard program, you must generate the data structure from the SAP standard data structure (see generating an SAP data structure).

If you develop your own batch input program, the data structure is determined by the R/3 System when the program is generated. Generate a test file from the recording and align the format of your conversion program with the format of the test file.

A conversion may be necessary for data type and length data type and length. The data type required by all standard SAP batch input programs is C, character data. You can find the required field lengths either in your analysis of the data declaration structure of the generated batch input program or in the data structures that you generate.

Process flow

The tasks involved in writing a data transfer program are shown in the diagram and list below.

This graphic is explained in the accompanying text

  1. Analyze the structure of your existing data and specify the conversions that are required to fill the SAP data structures.
  2. If necessary, generate the SAP data structure in code form and insert it into your program.
  3. This is only possible if the SAP data structure is an ABAP Dictionary object (structure, table).
  4. Fill the structure with data. If you do not want to assign a value to a field in the structure, use the NODATA character. Execute any conversions conversions and error checks that may be required.
  5. Write the sequential file that is typically required for making the data available to the data transfer program in the R/3 System.

Note 

For SAP data transfer standard programs, all data must have the character format.

 

Leaving content frame