Entering content frameObject documentation Workflow Template (SD-SLS-OA) Locate the document in its SAP Library structure

The following two workflow templates are delivered in the standard system for changing master contacts:

Identification code: SD_KK_WF

Long text: Workflow for changing customer contracts

Identification code: SD_GK_WF

Long text: Updates according to master contract

Workflow Template WS20000049

Triggering Event in Workflow Template

When you change the master contract, the changed event for object type BUS 2095 (master contract) is triggered and starts the workflow template. Workflow template WS20000048 starts for all the lower level contracts assigned to the master contract. Workflow template WS20000048 generates a work item for each lower level contract.

Workflow Container and Data Flow

Information on object reference for the master contract to be processed (_EVT_OBJECT), the name of the person who changed the master contract (_EVT_CREATOR), a list of all the lower level contracts that should be changed (CONTRACTLIST), and the values that should be changed according to the referencing procedure (CHANGEDVALUES) must be available in the workflow. This information is available as an event parameter in the container for the triggered event and has to be transferred into the workflow container using data flow.

The following data flow definitions between the triggering event and the workflow container have been defined in the standard system:

Workflow Container

Event Parameter Container

GroupContract

<-- _EVT_CREATOR

CustomerContracts

<-- _EVT_OBJECT

ChangedValues

<-- CONTRACTLIST

 

<-- CHANGEDVALUES

Terminating Events

Workflow template WS20000049 finishes if all the workflows have finished for the lower level contracts (event changed to object type BUS2034). Before this happens, task TS20000233 is triggered (workflow indicator is deleted from table VBAK).

Workflow Template WS20000048 (Change Contract)

Triggering Event

Workflow template WS2000049 triggers workflow template WS2000048 to change all lower level contracts. The workflow template contains the two standard tasks - TS20000140 (change contracts in background processing) and TS20000141 (change contract online). See also: Standard Tasks (SD-SLS-OA)

Workflow Container and Data Flow

The workflow container receives the following information:

Terminating Events

There is a workflow for each lower level contract which finishes once the lower level contract has been changed (changed event for object type BUS2034).

The complete workflow finishes once all the lower level contracts have been changed.

The following graphic shows the schematic flow of the workflow template and its tasks:

This graphic is explained in the accompanying text

Leaving content frame