Routing Workflow Dynamically

 

Requirement

·       We need to route the workflow according to changes in Bank Data in Supplier Workflow.

·       While updating the supplier if the requester changed bank data then the CR should go to Approver or else it should get auto completed.

Workflow Diagram

                      

Steps

Creation of Change Request

MDGIMG -> General Data -> Process Modelling -> Change Requests -> Create Change Request Type.

 

Defining Workflow Steps

MDGIMG -> General Data -> Process Modelling -> Workflow -> Rule-Based Workflow -> Define Change Request Steps for Rule-Based Workflow

Define Service Name

MDGIMG -> General Data -> Process Modelling -> Workflow -> Rule-Based Workflow -> Define Service Names for Rule-Based Workflow

Configure Rule Based Workflow

MDGIMG -> General Data -> Process Modelling -> Workflow -> Rule-Based Workflow -> Configure Rule-Based Workflow

·       Enter respective change request type.

·       Here we need to create one data object with type Element which we will further use in single value decision table for routing the workflow.

·       For this we will create one data element using SE11 and maintain fixed value as below.

·       We have maintained ‘Y’ and ‘N’ values in fixed value range in domain for decide whether the bank data is changed or not.

 

·       Bind newly created BRF+ Element to the DDIC Data Element which we have created before.

·       In domain values we can check the value range

·       Maintain the element in Triggered function

·       Maintain service name in below area

User Agent Decision table configuration

Non-User Agent Decision table configuration

Single Value Decision table configuration

·       In this we need to add the element into table metadata

 

Table Settings -> Insert Column -> From Context Data Objects -> Add bank field

·       The new column will get added as shown below

 

Implementation of BADI:

MDGIMG -> General Data -> Process Modelling -> Workflow -> Rule-Based Workflow -> Business Add-Ins -> BAdI: Rule Context Preparation for Rule-Based Workflow

Or follow this -> SE18 -> ENH. Spot ‘USMD_SSW_SERVICE_PROCESSOR’ -> BADI Definition ‘USMD_SSW_SERVICE_PROCESSOR’ -> Create new Implementation

 

 

 

 

·       Maintain filter values as service name which we mentioned in BRF+

·       Implementation of BADI Class.

 

Comments

Popular posts from this blog

SAP MDG Process Modelling

MDG Derivation (BADI)

MDG Validation (Using BADI)