WebSphere Adapter for SAP Software

Testing the module

Test the module to make sure you can perform the transaction on the SAP server. You create and then change customer data and view the results to make sure the transaction was successfully processed.

About this task

To test this tutorial, you use actual values that exist on your SAP server. If you have not already done so, obtain actual values for the following data. If necessary, see your SAP administrator to obtain the data.

How to perform this task

  1. In the Business Integration perspective, begin the testing procedure by right-clicking Customer and clicking Test > Test Module.
  2. In the verb row, select Create from the list.
  3. Enter values for the CUSTOMERCREATEFROMDATA1 BAPI.
    1. In the Initial request parameters window, scroll to SapPiPersonaldata under SapBapiCustomerCreatefromdata1.
      Figure 1. The SapPiPersonaldata property
      A screen capture of the Initial request parameters in the test environment, showing SapPiPersonaldata expanded.
    2. Type values for the following properties. When the Value field shows user data, enter any value (for example, enter your own name for FirstName):
      Table 1. Values for SapPiPersonaldata
      Property Value
      FirstName user data
      LastName user data
      City user data
      CityPostalCode user data
      HouseNumber user data
      CountryKey US
      RegionStateProvinceCounty CA
      LanguageKey EN
      CurrencyKey EUR
    3. Scroll up to SapPiCopyreference, under SapBapiCustomerCreatefromdata1.
      Figure 2. The SapPiCopyreference property
      A screen capture of the Initial request parameters in the test environment, showing SapPiCopyreference expanded.
    4. Type values for the following properties. Use the values you obtained from your SAP administrator.
      Table 2. Values for SapPiCopyreference
      Property
      SalesOrganization
      DistributionChannel
      Division
      ReferenceCustomer
  4. Enter values for the CUSTOMERCREATEFROMDATA1 BAPI.
    1. Scroll up to SapBapiCustomerChangefromdata.
      Figure 3. The SapBapiCustomerChangefromdata property
      A screen capture of the Initial request parameters in the test environment, showing the SapBapiCustomerChangefromdata property..
    2. Type values for the following properties. Use the values you obtained from your SAP administrator.
      Table 3. Values for SapBapiCustomerChangefromdata
      Property
      CustomerNumberoftheChangedCustomer
      DistributionChannel
      Division
      SalesOrganization
    3. For SapPiAddress, type the following values:
      Table 4. Values for SapPiAddress
      Property Value
      FirstName user data
      Name user data
      HouseNumberAndStreet user data
      PostalCode user data
      City user data
      CountryKey US
      RegionStateProvinceCounty CA
      LanguageKey EN
      CurrencyKey EUR
  5. Click Continue.
  6. Click Finish. The integration test client invokes the transaction.
  7. Scroll down to the Return parameters window to see the results.

Result

The data on the SAP server has been updated. You can log on to the SAP server to verify that the changes were made.

Terms of use |

Last updated: Mon 30 Oct 2006 03:34:57

(c) Copyright IBM Corporation 2005, 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)