Deploying and configuring for Scenario 2 (BAPI outbound)

Scenario 2 of the BAPI outbound sample application requires you to use the enterprise service discovery wizard to deploy the application package, configure the adapter, and generate the SCA artifacts.

Before you begin

Before you begin to deploy and configure:

Why and when to perform this task

For this task, you must run the Enterprise Service Discovery within IBM WebSphere Integration Developer to set adapter configuration properties. To change the property values later, use the WebSphere Process Server Administrative Console.

Steps for this task

  1. In the Business Integration Perspective of WebSphere® Integration Developer, right-click the frame and from the pop-up menu, select New > Enterprise Service Discovery.
  2. In the Import Configurations window, select IBM WebSphere Adapter for SAP Software.
  3. In the Discovery Agent Initialize Properties window, specify the configuration properties to initialize the discovery agent. Be sure to set the Select Module field to the value of BAPI. Properties marked with an asterisk (*) are mandatory.
  4. At the bottom of the Discovery Agent Initialize Properties window, click the Show Advanced button.
  5. When prompted to specify logging options, set the Logging Level to FINEST to provide the highest level of logging and then click Next.
  6. In the Metadata Query window, click Run Query.
  7. Under Objects Discovered, drill down to the Discover By Name node, and then click the Filter button.
  8. In the Filter Properties for Discover by Name window, enter BAPI_CUSTOMER*, the name of the BAPI in SAP plus an asterisk as a wild card character to indicate that you want a list of all SAP application components that start with the phrase BAPI_CUSTOMER*.
  9. Click OK.
  10. Navigate to BAPI_CUSTOMER_CREATFROMDATA and click the Add button.
  11. In the Configuration Parameters window, select the Use Field Name to generate attribute(s) check box, and click OK to add BAPI_CUSTOMER_CREATFROMDATA to the list of business objects to be imported.
  12. Repeat steps 10 and 11 for BAPI_CUSTOMER_CHANGEFROMDATA. The selected objects appear in the bottom frame, under Objects to be imported. Objects can be removed from the list by selecting the object and clicking the Remove button.
  13. Click Next.
  14. In the Selection Properties window, enter BapiCustomerCreate as the name of the business object and specify the appropriate JCo methods for each of the object’s operations. For example, specify the following methods:
    • For the CREATE operation, specify BAPI_CUSTOMER_CREATEFROMDATA.
    • For the UPDATEWITHDELETE operation, specify BAPI_CUSTOMER_CHANGEFROMDATA.
    • For the RETRIEVE operation, specify BAPI_CUSTOMER_GETDETAIL.
  15. Click Next.
  16. In the Generate Artifacts window, specify the module name were the artifacts should be saved and then click New to create a new business integration module.
  17. When prompted, enter BapiCustomer as the module name and click OK.
  18. Specify ScaArtifacts as the folder name within the module where the Service Description should be saved.
  19. In J2C Authentication Data Entry, enter SAP_Auth_Alias and select the Deploy connector with module check box.
  20. Select the Use discovered connection properties radio button, enter values for the connections properties, and click Finish. The new BapiCustomer module is added to the Business Integration Perspective, along with all its artifacts.
  21. Export the project to the .EAR file (note that the .EAR file does not yet exist; this step defines it):
    1. Right-click the BapiCustomer module and select Export.
    2. Select EAR file from the Export window.
    3. Click Next.
    4. In the EAR Export window, select BapiCustomerApp for the .EAR project and specify its destination directory. Then click Finish.
  22. In the EAR Export window, export the EAR file of the adapter:
    1. Select the EAR file in the EAR project field.
    2. Specify its destination directory in the Destination field.
    3. Click Finish.
  23. Deploy the .EAR file.

What to do next

The adapter application package, including all its SCA artifacts, is now configured and deployed. You can now run the sample application.
Related tasks
Configuring properties
Adding external dependencies
Related reference
Configuration properties of WebSphere Adapter for SAP Software

Terms of use |

Last updated: Sun Mar 12 11:15:18 2006

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