Writing Data Conversion Programs
Tuesday, July 4th, 2006
Question 13: How do you write a conversion program?
Don’t confuse about the conversion program. When using the standard batch input program, they require a specified file format. But probably your file that is to be transferred is not as required. Therefore you need to write a conversion program that will convert your file to SAP’s file format.You must generate the data structure from the SAP standard data structure. Then you can use the standard batch input program by using this converted SAP file format.
A conversion may be necessary for data type and length. The data type required by all standard SAP batch input programs is C, character. You can find the required field length either in your analysis of the data declaration structure of the generated batch input program or in the data structures that you generate.
The data is exported in SAP format to a sequential file. The batch input program in R/3 System reads the data in from this file.
The tasks involved in writing a data transfer program are shown in the diagram and list below.