IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Access external services with adapters > Configure and using adapters > IBM WebSphere Adapters > SAP Software > Configure the module for deployment > Performing prerequisite tasks specific to an interface > Implementing event-detection mechanisms

Implementing business workflows

Business workflow is a set or sequence of logically related business operations. The processing logic within a workflow detects events. The business workflow event-detection mechanism relies on the SAP Business Object Repository (BOR), which contains the directory of objects along with their related attributes, methods, and events.

This procedure is for the Advanced event processing interface only.

If you are not using the Advanced event processing interface, skip this procedure.

To implement business workflow for event detection:


Procedure

  1. Determine which SAP business object represents the functionality that you need. Check if the events trigger, start, or end a workflow.

    You can use the Business Object Builder (transaction SWO1) to search for the appropriate business object.

  2. Create a subtype of this SAP business object.

    A subtype inherits the properties of the supertype and can be customized for use.

  3. Activate the events (such as CREATED, CHANGED, and DELETED) for the business object by customizing the subtype.


Example

The following example of SAP sales quote can be used to implement an event trigger using business workflow:

  1. Search the BOR for the appropriate sales quote business object. A search can be done using the short description field and the string '*quot*'. BUS2031 (Customer Quotes) is one of the business objects returned.
  2. Upon further investigation of BUS2031, it is determined that the key field is CustomerQuotation.SalesDocument (VBAK-VBELN).

  3. A subtype for BUS2031 is created using the following entries:

    • Object type—ZMYQUOTE
    • Event—SAP4_SalesQuote
    • Name—SAP4 Sales Quote
    • Description—Example of an SAP 4 Sales Quote Subtype
    • Program—ZMYSALESQUOTE

    • Application—V

  4. The event detection mechanism is activated by adding an entry to the Event Linkage table (transaction SWE3). The create event is activated using the following entries:

    • Object type—ZMYQUOTE
    • Event—SAP4_SalesQuote
    • Receiver FM— /CWLD/ADD_TO_QUEUE_DUMMY_AEP
    • Receiver type FM— /CWLD/ADD_TO_QUEUE_WF_AEP

The Receiver and Receiver type function modules (FM) point to /CWLD/ADD_TO_QUEUE_AEP. The DUMMY function module is used only because sometimes the SAP application requires that both fields be populated. The WF function module translates the SAP standard interface to the one used by /CWLD/ADD_TO_QUEUE_AEP.

The business workflow event-detection mechanism is created and active. It is set up to detect all SAP Customer Quotes that are created.


What to do next

Configure the adapter for Advanced event processing.

Implementing event-detection mechanisms