Developing Your Own Programs, Function Modules, and BAPIs

Use

You have to plan the data transfer run for each business object type, divide it into individual task types (EXT, PUR, CHK, MAP, LOA, SPL, and AUD), and find existing programs or even develop and register your own.

For more information about loading data into the SAP system (task type LOA), see Data Transfer Techniques.

You can then use these programs or ones you have created to execute tasks in the Data Transfer Workbench.

When you execute these tasks in a run, values are entered in the parameters described below.

Prerequisites

You have analyzed the fields and structures as well as the data to be transferred and the transfer file in SAP format.

Procedure

Developing Programs

There are no specifications for program development because the program is called at runtime with a variant that is specified in the task.

Developing Function Modules

If you create a function module (program type FUNC) to execute the task, it must contain the following parameters:

  • Import Parameters

    PROJECT    LIKE DXTASKS-PROJECT,
    SUBPROJECT      LIKE DXTASKS-SUBPROJECT,
    RUNDEF          LIKE DXTASKS-RUNDEF,
    TASK            LIKE DXTASKS-TASK,
    RUNID           LIKE DXTASKS-RUNID
    
                      
  • Table Parameters (import)

    I_FILES            LIKE DXFILEN,
    O_FILES         LIKE DXFILEN
                      
  • Export Parameters

    RETURN             LIKE DXRETURN
                      

Develop BAPIs

If you want to enhance the BAPIs provided by SAP for data transfer by developing your own BAPIs, see the BAPI Programming Guide (CA-BFA).

To use the BAPIs you develop for the Data Transfer Workbench, you have to generate BAPI-ALE interfaces.