Running the SAP call out to a synchronous system sample

Before you can run the sample, you must complete the sample setup instructions; see Setting up the SAP call out to a synchronous system sample.

If you encounter any problems when you run the sample, see Resolving problems when running samples in the IBM Integration Bus documentation.

Creating a customer

  1. Log in to your SAP system.
  2. Go to transaction SE37, Function Builder.
  3. In the Function Module field, type BAPI_CUSTOMER_CREATEFROMDATA, click Display.
  4. Click Test/Execute (F8).
  5. Enter the details of the address for the customer, specifying a minimum of customer name. When you enter the details of the address, you must go back one screen (F3).
  6. Set the RFC target system (for example, SAMPSCI).
  7. To run the message flow and store the customer details, click Execution. A customer number is returned to you.

Retrieving a customer

  1. Log in to your SAP system.
  2. Go to transaction SE37, Function Builder.
  3. In the Function Module field, type BAPI_CUSTOMER_GETDETAIL, click Display.
  4. Click Test/Execute (F8).
  5. Enter the customer number that you were given when you created the customer.
  6. Enter 1 for PI-SALESORG (this information is not used by the message flow).
  7. Set the RFC target system (for example, SAMPSCI).
  8. To run the message flow and retrieve the customer details that you created, click Execution.

Modifying an existing customer

  1. Log in to your SAP system.
  2. Go to transaction SE37, Function Builder.
  3. In the Function Module field, type BAPI_CUSTOMER_CHANGEFROMDATA, click Display.
  4. Click Test/Execute (F8).
  5. Enter the new details of the address and the customer number for the customer that you created. When you enter the details of the address you must go back one screen (F3).
  6. Set the RFC target system (for example, SAMPSCI).
  7. To run the message flow and store the customer details, click Execution (F8). A customer number is returned to you.

You can verify that the address of the customer has changed by using BAPI_CUSTOMER_GETDETAIL BAPI.

Back to sample home