Creating Your Own Conversion Program 

Use

The data extracted from the source system has to be converted to the SAP structures of the transfer file.

You can carry out the conversion using the LSM Workbench or using an external tool.

Alternatively you can create your own conversion program and register it with the relevant object type.

Prerequisites

You have analyzed the fields and structures, as well as the transfer file and your legacy data.

You have extracted the data to be transferred from the source system.

Procedure

Proceed as follows:

  1. Write an appropriate program.

Follow the structuring rules that apply to data transfer objects.

If you use other programming languages (C, Cobol or PL/1), you can create data definitions using the Data Transfer Workbench. Choose Goto ® Tools ® Files and data structures, Structure ® Generate.

If you write an ABAP program, follow the guidelines in Developing Programs, Function Modules and BAPIs.

  1. Register your program following the instructions in Registering Programs, Function Modules and BAPIs.
  2. Test your program/function module by executing the data transfer.
  3. Correct the program, if necessary.
  4. Repeat steps 2 and 3 until the program converts the data correctly into the appropriate structure.

Result

You have created, registered and successfully tested your program.