Quick steps for the RFC Server module

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>

Generating a business object in the RFC Server module

To generate a business object for the RFC module:

  1. Start the SAP ODA.
  2. Start the business object designer.
  3. In the business object designer, choose File > New. The wizard starts.
  4. Select Configure Discovery:
    1. Enter the host address for the machine where Discovery is running.
    2. Choose Add Host.
    3. Choose OK.
  5. 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.
  6. Choose Next.
  7. Set the Verb to Retrieve and Server Support to No. Choose OK.
  8. In Agent SAPODA Notification, choose No.
  9. Open the business object in a separate window. Choose General > Set Collab = "RFCCollab".
  10. Save the generated business object specification to the location you specified in the Repository Directory standard property value.

Configuring the RFC Server module

After you have generated a business object, continue configuring the RFC Server module:

  1. Add the parent object name to the Supported Business Object section of the configuration file.
  2. Copy the generated BOHandler .class file from the definition specified in the ODA configuration properties to %CROSSWORLD%\connectors\SAP\rfc\client.

Creating a profile for the SAP server

To create a profile for the SAP server:

  1. Open SAP Logon.
  2. Choose New.
  3. 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.
  4. Double-click to open the profile you just created.
  5. Enter your username and password. Choose Transaction > Type /nse37. Function Builder opens.
  6. For Function Module, input bapi_customer_getdetail. Choose Function Module >Test > Single Test.
  7. 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

Testing the RFC server module

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:

    Save the changes and close the window.

  4. Open sapconnector.cfg.
  5. Change REQUESTQUEUE to SYNCHRONOUSREQUESTQUEUE. Save the change.
  6. Start the connector. Choose Function Module > Execute.
  7. In Test Connector, find the object in BO Request List. Highlight the object, and choose Request > Reply > Success.
  8. Check the log for a success message.

Copyright IBM Corp. 1997, 2004