Skip Headers
Oracle® Application Server Adapter for MySAP ERP User's Guide
10g Release 3 (10.1.3.4.0)

Part Number E14196-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

5 Integration with Oracle BPEL Process Manager

OracleAS Adapter for MySAP ERP integrates seamlessly with Business Process Execution Language (BPEL) Process Manager to facilitate Web service integration. Oracle BPEL Process Manager is based on the Service-Oriented Architecture (SOA). It consumes adapter services exposed as Web Service Definition Language (WSDL) documents.

This chapter includes the following topics:

Overview of Adapter Integration with Oracle BPEL Process Manager

To integrate with Oracle BPEL Process Manager, OracleAS Adapter for MySAP ERP must be deployed in the same OC4J container as Oracle BPEL Process Manager. The underlying adapter services must be exposed as WSDL files, which are generated during design time in Oracle Application Server Adapter Application Explorer (Application Explorer) for both request-response (outbound) and event notification (inbound) services of the adapter. See "Generating WSDL (J2CA Configurations Only)" for more information.

The generated WSDL files are used to design the appropriate BPEL processes for inbound or outbound adapter services. A completed BPEL process must be successfully compiled in JDeveloper and deployed to a BPEL server. Upon deployment to the BPEL server, every newly built process is automatically deployed to the Oracle BPEL Console, where you run, monitor, and administer BPEL processes, and listen to adapter events.

When using the adapter with Oracle BPEL Process Manager installed on OracleAS Middle Tier, your middle-tier BPEL PM home directory is OC4J_BPEL, located as follows:

OracleAS_home\j2ee\OC4J_BPEL

See Also:

  • Oracle Application Server Adapter Concepts

  • Oracle BPEL Process Manager Developer's Guide

Deployment of Adapter

During installation, OracleAS Adapter for MySAP ERP is deployed as a J2CA 1.0 resource adapter within the OC4J J2CA container. The adapter must be deployed in the same OC4J container as Oracle BPEL Process Manager.

See Also:

Oracle Application Server Adapter Concepts

Design Time

The following tools are required to complete your adapter design-time configuration:

Note:

The examples in this chapter demonstrate the use of JDeveloper.

Before you design a BPEL process, you must generate the respective WSDL file using Application Explorer. See "Generating WSDL (J2CA Configurations Only)" for more information.

Namespace Requirements

The purpose of an XML namespace is to allow the deployment of XML vocabularies (where element and attribute names are defined) in a global environment and to reduce the risk of name collisions in a given document when vocabularies are combined. Qualified namespaces are used for stricter schema validation. In documents conforming to this specification, element and attribute names appear as qualified names. Syntactically, they are either prefixed names or unprefixed names. An attribute-based declaration syntax is provided to bind prefixes to namespace names and to bind a default namespace that applies to unprefixed element names. These declarations are scoped by the elements on which they appear so that different bindings may apply in different parts of a document. Processors conforming to this specification must recognize and act on these declarations and prefixes.

In the 10.1.3.1.0 SOA release, the recommendations for BPEL integrations is to perform stricter name space validations. As a result, Application Explorer generates Web services for the back-end with the namespace marked as “Qualified”. During testing or usage phases of this service by BPEL, the request XML document that is used should adhere to the schema and WSDL document. Once again, it is important to remember that the namespaces are qualified. To further understand this point, the difference is illustrated with the following example:

  1. Input XML for BPEL based on unqualified namespaces:

    <?xml version="1.0" encoding="UTF-8"?><CompanyCode.GetDetail><COMPANYCODEID>1000</COMPANYCODEID></CompanyCode.GetDetail>
    
  2. Input XML for BPEL based on qualified namespaces:

    <?xml version="1.0" encoding="UTF-8"?><bapi:CompanyCode.GetDetail xmlns:bapi="urn:sap-com:document:sap:business"  CompanyCodeId="1000"></bapi:CompanyCode.GetDetail>
    

Note: If you are passing an unqualified input against a WSDL document that is expecting qualified namespaces, BPEL will throw the exception as “Unable to process input xml...."

Design a BPEL Process for Request-Response Service (Outbound)

An outbound BPEL process consists of PartnerLink, Invoke, and Assign process activities. You must first create a new Application Server connection, Integration Server connection, and a synchronous BPEL process template. 

Create a New Application Server Connection

To create a new Application Server connection:

  1. Display the connections by clicking the Connections Navigator tab at the top of the upper left pane in JDeveloper.

    Connections window
    Description of the illustration bpel_30.gif

  2. Right-click Application Server and select New Application Server Connection.

    The Create Application Server Connection - Welcome dialog box is displayed.

  3. Click Next.

    The Create Application Server Connection - Step 1 of 4: Type dialog box is displayed.

    Application Server Connection Wizard
    Description of the illustration bpel_32.gif

  4. Specify a unique name and select a connection type for your Application Server connection and click Next.

    The Create Application Server Connection - Step 2 of 4: Authentication dialog box is displayed.

    Specify authentication information
    Description of the illustration bpel_33.gif

  5. Specify a valid user name and password for the Application Server you wish to connect to.

  6. Select Deploy Password.

  7. Click Next.

    The Create Application Server Connection - Step 3 of 4: Connection dialog box is displayed.

    Specify connection information
    Description of the illustration bpel_33a.gif

  8. Select the Single Instance connection option.

  9. Enter localhost as the host name and 6003 for the OPMN port.

  10. Enter home as the OC4J instance name

  11. Click Next.

    The Create Application Server Connection - Step 4 of 4: Test dialog box is displayed

    Testing the connection
    Description of the illustration bpel_33b.gif

  12. Click Test Connection.

    When the test is complete and the connection is successful, a Success! message appears in the status area.

  13. Click Finish.

    Your newly created Application Server connection is displayed in the Connections Navigator tab under the Application Server node.

    Application Server connection added
    Description of the illustration bpel_34.gif

Create a New Integration Server Connection

To create a new Integration Server connection:

  1. Display the connections by clicking the Connections Navigator tab at the top of the upper left pane in JDeveloper.

    Connections window
    Description of the illustration bpel_int1.gif

  2. Right-click Integration Server and select New Integration Server Connection.

    The Create Integration Server Connection - Welcome dialog box is displayed.

  3. Click Next.

    The Create Integration Server Connection - Step 1 of 3: Name dialog box is displayed.

    Integration Server Connection Wizard
    Description of the illustration bpel_int2.gif

  4. Specify a unique name and click Next.

    The Create Integration Server Connection - Step 2 of 3: Connection dialog box is displayed.

    Specify connection information
    Description of the illustration bpel_int3.gif

  5. Select an Application Server connection, which is already created.

  6. Enter localhost as the host name and 8888 for the port number.

  7. Select Add host name to the list of proxy exceptions and click Next.

    The Create Integration Server Connection - Step 3 of 3: Test Connection dialog box is displayed.

    Test the connection
    Description of the illustration bpel_int4.gif

  8. Click Test Connection.

    When the test is complete and the connection is successful, a Success! message appears in the status area.

  9. Click Finish.

    Your newly created Integration Server connection is displayed in the Connections Navigator tab under the Integration Server node.

    Integration Server connection added
    Description of the illustration bpel_int5.gif

Testing Outbound BPEL and ESB Processes

The BPEL console enables the testing of deployed BPEL processes. Once a process is deployed, you can manage, monitor, and run an end-to-end scenario using the Initiate tab in the console. The OracleAS Adapter for MySAP ERP is certified for testing using the XML Payload option and the option of running using Through Java Delivery API. It is recommended that developers use this method for testing the OracleAS Adapter for MySAP ERP.

When testing an outbound BPEL process from the BPEL console or an outbound ESB process from the Enterprise Manager console, do not use the XML envelopes that are generated by these consoles. Instead, remove them and use the XML payloads that are generated from the schemas, which conform to the WSDLs for namespace qualifications.

The ESB data flows can be tested using the Enterprise Manager console. When creating an ESB data flow and interactions, the Web services are created and registered with the Oracle Application Server. For more information on creating an ESB outbound process, see Chapter 6, "ESB Integration Examples".

MySAP ERP Service Integration

This example demonstrates SAP service integration. It describes design-time, followed by run-time configuration.

Design-Time Configuration

Before you design a process for SAP service integration, you must generate its respective WSDL file using Application Explorer.

Generating WSDL for Request/Response Service

Perform the following steps:

  1. Start Application Explorer and connect to a defined MySAP ERP target (a J2CA configuration).

    See "Defining a Target to MySAP ERP" for more information on defining a target and connecting to MySAP ERP.

  2. Expand the MySAP ERP target to which you are connected.

  3. Expand Remote Function Modules, Financial Accounting, 0002 -- Company Code Business Object, and then select BAPI_COMPANYCODE_GETDETAIL.

    The following image shows a connected and expanded target.

    Application Explorer
    Description of the illustration app_exp_conn_target.gif

  4. Right-click the BAPI_COMPANYCODE_GETDETAIL node.

    The following menu is displayed:

    BAPI_COMPANYCODE_GETDETAIL node
    Description of the illustration bpel_40a.gif

  5. Click Create Outbound JCA Service (Request/Response).

    The Export WSDL dialog box is displayed.

    Export WSDL dialog box
    Description of the illustration bpel_41a.gif

  6. Click OK.

You can now design a BPEL process in JDeveloper.

Creating a BPEL PM Server Connection in JDeveloper

Before you design an outbound BPEL process, you must configure a new Application Server and Integration Server connection in Oracle JDeveloper. For more information, see Chapter 5, "Integration with Oracle BPEL Process Manager".

Creating a BPEL Project for a Synchronous BPEL Process

To create a BPEL Project for a synchronous BPEL process:

  1. At the bottom of the upper left pane, click the Applications Navigator tab and select an application for your project. If an application does not exist, then you must create a new application.

  2. Right-click the application and select New Project.

    The New Gallery window displays a list of available items.

    New Gallery window
    Description of the illustration bpel_1.gif

  3. From the Items list, select BPEL Process Project and click OK.

    The BPEL Project Creation Wizard - Project Settings dialog box is displayed.

    Process Project dialog box
    Description of the illustration bpel_2a.gif

  4. Perform the following steps:

    1. Specify a name for the BPEL process, for example, SAP_GetCCDetail.

      The Namespace field is updated automatically.

    2. From the Template list, select Synchronous BPEL Process.

  5. Click Next.

    The following BPEL Project Creation Wizard dialog box is displayed.

    Input and Output Elements
    Description of the illustration bpel_2c.gif

  6. Review the input and output schema elements that are created by the BPEL Project Creation Wizard and click Finish.

Designing the BPEL Process for BAPI_COMPANYCODE_GETDETAIL

To design the BPEL Process:

  1. From the Services pane on the right, drag and drop a PartnerLink to the visual editor.

    The Create Partner Link dialog box is displayed.

    Create Partner Link window
    Description of the illustration bpel_4.gif

  2. Click the Service Explorer icon (second icon from the left preceding the WSDL File field).

    The Service Explorer dialog box is displayed.

    Service Explorer
    Description of the illustration bpel_5.gif

  3. Expand your new connection under Adapter Services, followed by adapters, and then applications.

    The WSDL tree displayed in the Service Explorer dialog box lists any WSDL files you have created using Application Explorer. The WSDL tree is generated by a WSDL servlet, which is automatically deployed as part of the BPEL Server installation.

    WSDL tree
    Description of the illustration bpel_6.gif

  4. Select BAPI_COMPANYCODE_GETDETAIL_invoke.wsdl and click OK.

    The WSDL File field in the Create Partner Link dialog box displays the name and location of the selected WSDL file. The Partner Link Type field specifies the PartnerLink defined in the WSDL file.

    Create PartnerLink dialog box
    Description of the illustration bpel_7a.gif

    Perform the following steps:

    1. Leave the My Role field unspecified. The role of the PartnerLink is null, as it will be synchronously invoked from the BPEL process.

    2. From the Partner Role list, select the default value GetDetailRole. This is the role of the BPEL process.

  5. Click OK.

    The new PartnerLink appears in the visual editor.

  6. Select Save from the File menu.

  7. From the Process Activities pane on the right, drag an Invoke activity to the visual editor and place it between the Receive activity (receiveInput) and the Reply activity (replyOutput).

    The Invoke process activity is shown in the diagram view.

    New PartnerLink and Invoke process activities
    Description of the illustration bpel_42a.gif

  8. Extend a connection between the Invoke activity and your newly-created PartnerLink.

    The Edit Invoke dialog box is displayed.

    Edit Invoke dialog box
    Description of the illustration bpel_43.gif

    Perform the following steps:

    1. In the Name field, enter Get_CCDetail.

    2. Click the first icon to the right of the Input Variable field, then click OK in the Create Variable window that is displayed.

    3. Repeat the previous step to create a default variable for Output Variable.

  9. Click OK.

  10. Drag an Assign process activity and drop it between receiveInput and SAP_GetCCDetail.

    The following image shows the new Assign activity in JDeveloper visual editor.

    JDeveloper diagram view
    Description of the illustration bpel_44.gif

  11. Double-click the Assign activity icon.

    The Assign dialog box is displayed.

    Assign dialog box
    Description of the illustration bpel_14.gif

  12. In the Copy Operation tab, click Create and select Copy Operation.

    The Create Copy Operation dialog box is displayed.

    1. In the From pane, expand Variables, then inputVariable, and then highlight payload.

    2. In the To pane, expand Variables, then Invoke_1_GetDetail_InputVariable, and then highlight input_GetDetail.

    Your Create Copy Operation dialog box should look as follows:

    Create Copy Operation dialog box
    Description of the illustration bpel_10.gif

  13. To close the Create Copy Operation dialog box and the Assign dialog box, click OK.

  14. From the Process Activities pane on the right, drag another Assign activity to the visual editor and place it between the Invoke activity (SAP_GetCCDetail) and the Reply activity (replyOutput).

  15. Double-click the Assign activity icon and click Create.

  16. Map Invoke_1_GetDetail_OutputVariable, output_GetDetail to outputVariable, payload.

    Verify that you have mapped all variables as follows:

    Create Copy Rule dialog box
    Description of the illustration bpel_11.gif

  17. Click OK, then click OK again.

  18. Select Save from the File menu.

You have completed the design of this BPEL process.

Your completed BPEL process
Description of the illustration bpel_47.gif

Deploying the BPEL Process for BAPI_COMPANYCODE_GETDETAIL

JDeveloper deploys the outbound BPEL process for BAPI_COMPANYCODE_GETDETAIL directly to Oracle BPEL Console.

To deploy your BPEL process in JDeveloper:

  1. Right-click your process flow in the Applications - Navigator pane.

  2. Select Deploy, then Your BPEL PM Server connection, and then Deploy to default domain.

  3. Observe the Messages log at the bottom of the window.

    The Messages log displays the deployment status. In this example, it shows a successful deployment message for the process.

    Messages log
    Description of the illustration bpel_45.gif

    If deployment was not successful, click the Compiler tab to view all error and warning messages generated during the deployment process.

Invoking Adapter Request-Response Service from Oracle BPEL Process Manager

The OracleAS Adapter for MySAP ERP request-response service is used to create, delete, update, and query back-end data, and to call back-end workflows and transactions. The following section describes how to invoke the adapter synchronous request-response service, also referred to as Outbound Interaction, and how to manage the process in Oracle BPEL Console.

Manage the Deployed Outbound Process in Oracle BPEL Console

JDeveloper deploys the developed process directly to the Oracle BPEL Console, which enables youto run, monitor, and administer BPEL processes.

To invoke adapter request-response service:

  1. Start the Oracle BPEL Console by entering the following URL in a browser:

    http://host:port/BPELConsole
    
  2. Select a domain and provide a valid password.

    The Oracle BPEL Console main page is displayed. All deployed BPEL processes are listed in the Dashboard tab.

    BPEL Console showing the newly-deployed BPEL process
    Description of the illustration bpel_17.gif

  3. Click the BPEL Processes tab.

    This tab provides a more detailed view of each deployed process.

    BPEL Console BPEL Processes tab
    Description of the illustration bpel_18.gif

  4. Click the MySAP ERP process link, MySAP_outbound_companycode_getdetail (v. 1.0).

    The Manage window provides options for managing this BPEL process. Do not change any of the following default settings.

    Oracle BPEL Console Manage tab
    Description of the illustration bpel_19.gif

  5. Click the Initiate tab.

    The Initiate tab enables you to test your BPEL process.

    Oracle BPEL Console Initiate window
    Description of the illustration bpel_20.gif

    Perform the following steps:

    1. Select XML Source.

    2. Select the Java through delivery API link in the right side of the test area.

    3. Enter the following code in the text area provided for XML input:

      <?xml version="1.0" encoding="UTF-8"?>
      <CompanyCode.GetDetail CompanyCodeId="1000"/>
      
  6. Click Post XML Message.

    The response received from the MySAP ERP system is displayed in the Initiate window.

See Also:

Oracle Application Server Adapter Concepts

MySAP ERP Event Integration

This example demonstrates how OracleAS Adapter for MySAP ERP integrates with SAP to receive event data. In this example, an SAP event occurs when a customer record is added to a SAP system.

The design-time and run-time procedures are outlined in the following sections.

Design-Time Configuration

You must create a separate channel for every inbound J2CA service and select that channel when you generate WSDL for inbound interaction using Application Explorer.

Note:

If two or more events share the same channel, event messages may not be delivered to the right BPEL process.

Creating a Channel

To create a channel:

  1. Start Application Explorer and connect to a J2CA configuration.

  2. In the left pane, expand the Events node.

  3. Expand the MySAP node.

    The Ports and Channels nodes appear in the left pane.

    add channel
    Description of the illustration addchannel.gif

  4. Right-click Channels and select Add Channel.

    The Add Channel dialog box is displayed.

    Add Channel dialog box
    Description of the illustration addchanneldialog.gif

    Perform the following steps:

    1. Enter a name for the channel, for example, SAP_Channel.

    2. Enter a brief description (optional).

    3. From the Protocol list, select Application Server - mySAP.

  5. Click Next.

    The Application Server dialog box is displayed. The following tabs are available:

    • User (Required)

    • System (Required)

    • Security

    • Advanced

    Application Server dialog box
    Description of the illustration channelsystemtab.gif

  6. For the User tab, enter the appropriate information for your MySAP ERP channel based on the information in the following table.

    Table 5-1 User Tab Parameters

    Target Parameter Description

    Client

    The client number defined for the MySAP ERP application for client communications.

    User

    A valid user ID for the MySAP ERP application.

    Password

    A valid password for the MySAP ERP application.

    Authentication Mode

    The authentication mode you want to use when connecting to your MySAP ERP system. By default, Password is selected from the drop-down list.


  7. Click the System tab.

    user tab
    Description of the illustration channelusertab.gif

  8. For the System tab, enter the appropriate information for your MySAP ERP channel based on the information in the following table.

    Table 5-2 System Tab Parameters

    Target Parameter Description

    Gateway host

    A host name for the MySAP ERP Gateway.

    Gateway service

    A service for the MySAP ERP Gateway.

    Program ID of the server

    A MySAP ERP program ID you want to use for this channel.

    Message Server

    A host name for the message server.

    Application Server

    A name of the MySAP ERP application server you are using.

    System Number

    A MySAP ERP system number.


  9. For the Security tab (optional), enter the appropriate information for your MySAP ERP channel based on the information in the following table.

    Table 5-3 Security Tab Parameters

    Target Parameter Description

    SNC mode

    By default, SNC is disabled. To enable SNC, select 1 from the list.

    SNC partner

    Enter the name of the RFC server or message server (load balancing) that provides the SNC services.

    SNC level

    From the list select the version of the SNC library.

    SNC name

    Enter the name of the SNC library you are using.

    SNC library path

    Enter the path to the SNC library.


  10. For the Advanced tab (optional), enter the appropriate information for your MySAP ERP channel based on the information in the following table.

    Table 5-4 Advanced Tab Parameters

    Target Parameter Description

    IDOC Format

    Select an IDOC type from the list.

    IDOC release

    The IDOC versioning you want to use for your connection.

    IDOC release provider

    The IDOC release provider for your connection. Select IDOC DOCREL field (default), SAP release, or user input from the drop-down list.

    SAP trace

    Select this option to enable traces.

    Processing Mode

    Select the type of synchronous processing from the list. Possible values include REQUEST and REQUEST_RESPONSE.


  11. Click OK.

    The channel appears under the channels node in the left pane. An X over the icon indicates that the channel is currently disconnected.

    Note:

    Do not start the channel, as it is managed by BPEL PM Server. If you start the channel for testing and debugging purposes, stop it before run-time.

Generating WSDL for Event Notification

After you create a channel and verify that it is not started, you must generate WSDL for the event using Application Explorer.

  1. Start Application Explorer.

  2. Expand the Adapters node.

    A list of all adapters is displayed.

    Expanded adapter list
    Description of the illustration adapterexpandedpartial.gif

    Perform the following steps:

    1. Expand the MySAP node.

      A list of your available targets is displayed.

      Disconnected SAPTarget node
      Description of the illustration connect1.gif

    2. Click a target name under the MySAP node, for example, SAPTarget..

      The Connection dialog box displays the saved parameters.

  3. Verify your connection parameters.

  4. Provide the required password.

  5. Right-click the target name and select Connect.

    The x icon disappears, indicating that the node is connected.

    Connected SAP target
    Description of the illustration saptarget2.gif

  6. Expand the IDOCs node and select DEBMAS.

    The DEBMAS list is displayed.

    Select DEBMAS05
    Description of the illustration selectdebmas.gif

  7. Right-click DEBMAS05 from the DEBMAS list.

    Create Inbound JCA Service
    Description of the illustration bpel_38a.gif

  8. Select Create Inbound JCA Service (Event).

    The Export WSDL dialog box is displayed.

    Export WSDL dialog box
    Description of the illustration bpel_39.gif

    Perform the following steps:

    1. In the Name field, specify a name for the WSDL file.

    2. Ensure that qualified is selected as the element form, which is the default.

    3. From the Channel drop-down list, select the channel you created for this inbound service.

      Important: You must create a separate channel for every event. Verify that the channel is stopped before run-time.

  9. Click OK.

Creating a BPEL PM Server Connection in JDeveloper

Before you design a BPEL process using the WSDL you generated in Application Explorer, you must configure a new Application Server and Integration Server connection in Oracle JDeveloper. For more information, see Chapter 5, "Integration with Oracle BPEL Process Manager".

Designing the BPEL Process for the SAP_DEBMAS05 Event

To design a BPEL process for inbound interaction:

  1. Click the Applications Navigator tab and select an application for your project.

  2. Right-click the application and select New Project.

    The New Gallery window is displayed.

    New Gallery window
    Description of the illustration bpel_1.gif

  3. From the Items list, select BPEL Process Project and click OK.

    The BPEL Process Project Creation Wizard dialog box is displayed.

    BPEL Process dialog box
    Description of the illustration bpel_22a.gif

  4. Perform the following steps:

    1. Specify a name for the process.

      The Namespace field is updated automatically.

    2. From the Template list, select Empty BPEL Process.

    3. Click Finish.

    An empty BPEL process project template is created.

  5. From the Services pane on the right, drag and drop a PartnerLink to the visual editor.

    The Create Partner Link dialog box is displayed.

    Create Partner Link window
    Description of the illustration bpel_4.gif

  6. Click the Service Explorer icon (second icon from the left preceding the WSDL File field).

    The Service Explorer dialog box is displayed.

    WSDL Chooser window
    Description of the illustration bpel_5.gif

  7. Expand your new connection under Adapter Services, followed by adapters, and then applications.

    The WSDL tree displayed in the Service Explorer dialog box lists any WSDL files you have created using Application Explorer. The WSDL tree is generated by a WSDL servlet, which is automatically deployed as part of the BPEL Server installation.

  8. Select DEBMAS05_receive.wsdl and click OK.

    The Create Partner Link dialog box is displayed.

    Create Partner Link dialog box
    Description of the illustration bpel_24a.gif

    The WSDL File field displays the name and location of the selected WSDL file. The Partner Link Type field specifies the PartnerLink defined in the WSDL file.

    Perform the following steps:

    1. From the My Role list, select the default value DEBMAS05Role.

    2. Leave the Partner Role field unspecified.

  9. Click Apply, and then OK.

    The new SAP PartnerLink appears in the visual editor.

    JDeveloper visual editor
    Description of the illustration bpel_25a.gif

  10. From the Process Activities pane on the right, drag a Receive activity to the visual editor and place it in the designated placeholder labeled Drop Activity Here.

  11. Connect the Receive activity to the SAP PartnerLink.

    The Edit Receive dialog box is displayed.

    Edit Receive dialog box
    Description of the illustration bpel_26a.gif

    Perform the following steps:

    1. Specify a name for the Receive Activity, for example, Receive_DEBMAS05.

    2. Click the first icon to the right of the Variable field, then click OK in the Create Variable dialog box that is displayed.

    3. Verify that the Create Instance check box is selected.

  12. Click Apply.

    The Receive dialog box should no longer display any warnings or errors.

  13. Click OK.

    Your completed process looks as follows.

    Completed BPEL process for SAP_DEBMAS05
    Description of the illustration bpel_46.gif

  14. Select Save from the File menu.

Deploying the BPEL Process for the SAP_DEBMAS05 Inbound Service

  1. Right-click your process flow in the Applications - Navigator pane.

  2. Select Deploy, then Your BPEL PM Server connection, and then Deploy to default domain.

Runtime Configuration

Events are generated by activity in an application system. For example, MySAP ERP may generate an event as customer information is updated in the system. For more information on events, see "Configuring an Event Adapter"

Triggering an Event in MySAP ERP

The following topics describe how to trigger an event in MySAP ERP and verify event integration using OracleAS Adapter for MySAP ERP.

To trigger an event in MySAP ERP:

  1. Start the SAP Workbench and log in to the MySAP ERP system.

    SAP Workbench
    Description of the illustration image032.gif

  2. Run the bd12 transaction.

    Send Customers
    Description of the illustration image034.gif

    Enter the following information in the Send Customers window:

    1. In the Customer field, enter a customer number with a range from 1 to 3.

    2. In the Output type field, enter DEBMAS.

    3. In the Logical system field, specify the logical system you are using with MySAP ERP.

  3. Click the check mark icon in the upper left-hand corner.

    Message Type
    Description of the illustration image036.gif

  4. Ensure DEBMAS appears in the Message type column.

  5. Click the Execute button.

    Customer master data is sent to the logical system specified. If a channel in Application Explorer defined the Program ID with the same value, the channel receives this customer master data from MySAP ERP.

Verifying the Results

To verify your results:

  1. Log in to Oracle BPEL Console at

    http://host:port/BPELConsole 
    
  2. Enter the password for your BPEL domain.

  3. Click the Instances tab.

    Recently received run-time events are displayed in the Instances tab.

    Instances tab
    Description of the illustration bpel_36.gif

  4. Click the SAP_DEBMAS05 instance, then click Audit to see the received SAP_DEBMAS05 event message.

    Audit tab
    Description of the illustration bpel_37.gif