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:
- Start SAPODA.
- Start the business object designer.
- In the business object designer, choose File > New.
The wizard starts.
- 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.
- 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.
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:
- 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.
Testing the BAPI Module
To test the BAPI Module:
- Open Test Connector.
- Choose File > Create/Select Profile.
- Choose File > 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.
