Skip to main content

Record and Run BAPI File in Process Runner DB

This topic describes how to send the Customer number from DS to SAP and retrieve Customer Name, City, Region, Country Key, and Customer Account Group data elements for those customers and place that data in database tables using BAPI_CUSTOMER_GETDETAIL2. This Business API (BAPI) is provided by SAP in most SAP releases.

To record and run a BAPI/RFM Process file,

  1. To record the Process file, perform the following steps:
    1. Select File > New Process > New RFM/BAPI or select BAPI/RFM (BA) available on the left side of the New Process window.
    2. Enter BAPI_CUSTOMER_GETDETAIL2 in the BAPI/RFM Name box.
    3. Optionally, select More.... Additional recording options are displayed.

    4. Select Start Recording. The Connector for SAP window appears. Perform the following steps:
      1. Select the SAP system, select Logon, and enter the information for Client, User, Password, and Language.

      2. Select OK. Process Runner displays a progress bar to indicate that the recording is in progress.
  2. Process Runner DB builds the BAPI interface as defined in that SAP system and opens the [BAPI_Customer_Getdetail2 | *New*] Process file as a new file with the Mapper tab open.
  3. To map the data elements between database table and SAP, such as instructing Process Runner DB where to place the customer information that it receives from SAP when a call is made, perform the following steps:
    1. Select Mapper and select the CUSTOMERNO field in Parameter Name column or Customer Number 1 in Field Description column.
    2. Select the mapping type to DS To SAP.
    3. If the list of the customer numbers is in Table 1 in Database, assign Map Value to A.
    4. In the mapper grid, select the Download from SAP tab and change the mapping type to SAP to DS that you wish to download.

    5. Mapping is completed for all the fields between iTable and SAP.
  4. To save the Process file, select FileSaveSave As Local, enter the name for the Process file, and select Save. The file is saved with the current date and time. Optionally, you can change the file name and save it.
  5. To run the file, select Run. The results in ITABLE will be as shown below.

 

Was this article helpful?

We're sorry to hear that.