Quick steps for the BAPI Module

Before configuring the BAPI Module, configure the following connector-specific property:

Property Name Default Value Value Needed
Modules none BAPI

Generating a business object in the BAPI Module

To generate a business object for the BAPI Module:

  1. Start SAPODA.
  2. Start the business object designer.
  3. In the business object designer, choose File > New. The wizard starts.

    Figure 76. Business Object Wizard--Select Agent


  4. Select Configure Discovery:
    1. Enter the host address for the machine where Discovery is running.
    2. Choose Add Host.
    3. Choose OK.
  5. Choose Find Agents.
    1. Highlight Agent. Choose Next.
    2. Populate the values for UserName, Password, Client, SystemNumber, ASHostName, and FileDestination. Save the profile.
  6. In Step 3 of the wizard, expand the RFC node.
    1. Right-click Search By Name.
    2. Type bapi_customer_getdetail.
    3. Highlight bapi_customer_getdetail.
    4. Choose Next.

    Figure 77. Business Object Wizard--Select Source


  7. Choose Next.
  8. Set Verb to Retrieve, and Server Support to No. Choose OK.
  9. In Agent SAPODA Notification, choose No.
  10. Open the business object in a separate window. Save the generated business object specification to the location you specified in the Repository Directory standard property value.

Configuring the BAPI Module

After you have generated a business object, continue configuring the BAPI Module by adding the parent object name to the Supported Business Object section of the configuration file.

Preparing the BAPI Module for testing

To set up the BAPI Module for testing, use Port Connector:

  1. Copy the SAP configuration file. Rename the copied file portconnector.cfg.
  2. Open portconnector.cfg in Connector Configurator.
  3. Change the following properties in the Standard tab:
  4. Save changes. Close portconnector.cfg.
  5. Open sapconnector.cfg.
  6. Save the change. Start mySAP.com.

Testing the BAPI Module

To test the BAPI Module:

  1. Open Test Connector.

    Figure 78. Test Connector


  2. Choose File > Create/Select Profile.
  3. Choose File > New Profile.

    Figure 79. Test Connector--New Profile


  4. Select Browse.
    1. Locate portconnector.cfg. Choose Open.
    2. For Connector Name, enter PortConnector.
    3. For Broker Type, enter WMQI.
    4. Choose OK.
  5. Highlight PortConnector. Choose OK.
  6. Choose File > Connect.
  7. Create a Business Object Instance:
    1. For BO Type select SAP_BAPI_customer_getdetail.
    2. Choose Create.
    3. Enter New Object. Choose OK.
  8. Change the Verb to Retrieve. Populate Customer_to_be_required with an existing customer.
  9. Choose Request > Send.
  10. Check the log file for a success message.

Copyright IBM Corp. 1997, 2004