Before configuring the RFC module, configure the following
connector-specific properties:
Property Name
| Default Value
| Value Needed
|
Modules
| Extension
| Rfcserver
|
RfcProgramId
| CWLDSERVER
| <ProgramId registered in SAP transaction sm59>
|
To generate a business object for the RFC module:
- Start the SAP ODA.
- 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.
- 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 the Verb to Retrieve and Server Support to No. Choose
OK.
- In Agent SAPODA Notification, choose No.
- Open the business object in a separate window. Choose General >
Set Collab = "RFCCollab".
- 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 RFC
Server module:
- Add the parent object name to the Supported Business Object section of the
configuration file.
- Copy the generated BOHandler .class file from the definition
specified in the ODA configuration properties to
%CROSSWORLD%\connectors\SAP\rfc\client.
To create a profile for the SAP server:
- Open SAP Logon.
- Choose New.
- Populate the following fields, then choose OK:
Description
| Hostname of server
|
Application server
| Hostname of server
|
System Number
| 00
|
Description
| Hostname is standard. Enter a description of your choice.
|
- Double-click to open the profile you just created.
- Enter your username and password. Choose Transaction > Type
/nse37. Function Builder opens.
- For Function Module, input bapi_customer_getdetail.
Choose Function Module >Test > Single Test.
- For the RFC target system, use the value for Rfcprogramid you
set in the connector-specific properties. Also populate the following
fields:
Field
| Example
|
Customer Number
| 0000000001
|
PI_SALESORG
| 0001
|
PI_DISTR_CHAN
| 01
|
PI_DIVISION
| 01
|
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
- REQUESTQUEUE to SYNCHRONOUSREQUESTQUEUE.
Save the changes and close the window.
- Open sapconnector.cfg.
- Change REQUESTQUEUE to
SYNCHRONOUSREQUESTQUEUE. Save the change.
- Start the connector. Choose Function Module > Execute.
- In Test Connector, find the object in BO Request List. Highlight
the object, and choose Request > Reply > Success.
- Check the log for a success message.
