Business workflow

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.

To implement business workflow for event detection:

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--SAP_SalesQuote

    Name--SAP Sales Quote

    Description--Example of an SAP 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--SAP_SalesQuote

    Receiver FM--Y_XR_ADD_TO_QUEUE_DUMMY

    Receiver type FM--Y_XR_ADD_TO_QUEUE_WF

Note:
The Receiver and Receiver type function modules (FM) both point to Y_XR_ADD_TO_QUEUE. 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 Y_XR_ADD_TO_QUEUE.

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

Copyright IBM Corp. 1997, 2003