Registering Your Own Programs, Function Modules, and BAPIs

Use

For certain object types, SAP already provides registered standard programs in the Data Transfer Workbench.

For tasks, such as extracting data from non-SAP systems or cleaning data, you can also develop your own programs and function modules. Before you can use these for a task, you have to register them with the relevant object type.

If you want to enhance the SAP-registered BAPIs for loading data into SAP systems, you have to create and register your own BAPIs.

Prerequisites

Procedure

In the Data Transfer Workbench, choose Start of the navigation pathGoto Next navigation step DX Program LibraryEnd of the navigation path to get to the Data Transfer Programs Library screen.

Proceed as follows:

  1. Choose Create Registration.
  2. In the dialog box Create Registration, use the F4 input help to make your selection.

    • Object type

      Select one of the object types.

    • Task type and program type

      Several program types are assigned to each task type. Only programs of the following program types can be registered:

      Task Type

      Program Type

      Description

      EXT

      FUNC

      Extracts the data from the non-SAP system using a function module.

      REPO

      Extracts the data from the non-SAP system using a report.

      PUR

      FUNC

      Cleans the data using a function module.

      REPO

      Cleans the data using a report.

      MAP

      FUNC

      Maps the data using a function module.

      REPO

      Maps the data using a report.

      CHK

      FUNC

      Checks the file using a function module.

      REPO

      Checks the file using a report.

      LOA

      BAPI

      Loads the data into the SAP system using a BAPI.

      FUNC

      Loads the data into the SAP system using a function module.

      REPO

      Loads the data into the SAP system using a report.

      IDOC

      Loads the data into the SAP system using an inbound ALE function module.

      AUD

      FUNC

      Checks the data in the SAP system using a function module.

      REPO

      Checks the data in the SAP system using a report.

      MSC

      FUNC

      Miscellaneous functions using a function module.

      REPO

      Miscellaneous functions using a report.

  3. Enter your program or function module in the Program field.

    You can deregister programs that you have registered.

    If it is a BAPI (only in the case of task type LOA), use the input help to choose Object Type and Method in the dialog box. If available, enter the name of a program that generates test data in the Program field.

    If it is an IDoc, use the input help to choose Object Type and Function Module in the dialog box. If available, enter the name of a program that generates test data in the Program field.

    You can delete registrations. You can also assign a different method or program to a registered object type.

Result

Your programs, function modules, and BAPIs are now registered.