Before configuring the BAPI module, configure the following
connector-specific property:
Property
Name |
Default
Value |
Value
Needed |
Modules |
Extension |
BAPI |
To generate a business object for the BAPI module:
- Start the SAP ODA.
- Start the business object designer.
- In the business object designer, choose File > New. The
wizard starts.
Figure
35. Business Object Wizard--Select Agent

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

- Choose Next.
- Set Verb to Retrieve, and Server Support to No.
Choose OK.
- In Agent SAPODA Notification, choose No.
- 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.
After you have generated a business object, continue configuring
the BAPI module:
- Add the parent object name to the Supported Business Object
section of the configuration file.
- Copy the generated BOHandler .class file from the file
definition specified in the ODA configuration properties to
%CROSSWORLD%\connectors\SAP\bapi\client.
To set up the BAPI module for testing, use Port Connector:
- Copy the SAP configuration file. Rename the copied file
portconnector.cfg.
- Open portconnector.cfg in Connector Configurator.
- Change the following properties in the Standard tab:
- ApplicationName to PortConnector
- DELIVERYQUEUE to REQUESTQUEUE
- REQUESTQUEUE to RESPONSEQUEUE
- Save changes. Close portconnector.cfg.
- Open sapconnector.cfg.
- Save the change. Start mySAP.com.
To test the BAPI module:
- Open Test Connector.
Figure
37. Test Connector

- Choose File > Create/Select Profile.
- Choose File > New Profile.
Figure
38. Test Connector--New Profile

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