SAP MDG · COMMUNITY

How to merge parallel workflow items in SAP MDG Rule-Based Workflow

Use BAdI USMD_SSW_PARA_RESULT_HANDLER and method HANDLE_PARALLEL_RESULT to collect the parallel branch results, evaluate completion, merge them into one result, and return the next workflow step, action, and messages.

Use BAdI USMD_SSW_PARA_RESULT_HANDLER and method HANDLE_PARALLEL_RESULT to collect the parallel branch results, evaluate completion, merge them into one result, and return the next workflow step, action, and messages.

SAP MDG Rule-Based Workflow can merge parallel approval branches by using BAdI `USMD_SSW_PARA_RESULT_HANDLER`. The key logic sits in method `HANDLE_PARALLEL_RESULT`, which receives the Change Request number, current step, parallel step action table, and Service Name so you can evaluate the branch results, merge them, and return the next workflow step, action, and messages.

Process flow

  1. Create a Change Request Type with parallel workflow branches.
  2. Define Rule-Based Workflow steps in MDGIMG.
  3. Activate highlighting for dialog steps.
  4. Define the Rule-Based Workflow Service Name.
  5. Configure the Single Value, User Agent, and Non User Agent BRFplus tables.
  6. Implement BAdI USMD_SSW_PARA_RESULT_HANDLER.
  7. Implement method HANDLE_PARALLEL_RESULT.
  8. Filter the implementation by SERVICE_NAME in V_USMD201C_SSW context usage as described by the guide. 7. Use the Change Request number, current step, and parallel step action table to evaluate the branch results. 8. Merge the results into a
MDGIMG

General Settings -> Process Modeling -> Change Requests -> Change Requests

Copy a similar Change Request Type such as MATL01 and create the workflow-enabled CR type.

Structure
MDGIMG
Master Data Governance
Classic Mode in SAP MDG
Central Governance
Process Modeling
Change Requests
MDGIMG

General Settings -> Process Modeling -> Workflow -> Rule-Based Workflow -> Configure Rule-Based Workflow -> Define Change Request Steps for Rule-Based Workflow

Maintain the steps required for the parallel branches and the subsequent workflow flow.

Structure
MDGIMG
Master Data Governance
Classic Mode in SAP MDG
Central Governance
Process Modeling
Workflow
Rule-Based Workflow
Define Change Request Steps for Rule-Based Workflow
MDGIMG

General Settings -> Process Modeling -> Change Requests -> Configure Properties of Change Request Step

Activate the Highlighting Indicator for dialog steps in the Change Request UI.

Structure
MDGIMG
Master Data Governance
Classic Mode in SAP MDG
Central Governance
Process Modeling
Change Requests
Configure Properties of Change Request Step
MDGIMG

General Settings -> Process Modeling -> Workflow -> Rule-Based Workflow -> Configure Rule-Based Workflow -> Define Service Names for Rule-Based Workflow

Create the Service Name used for filter-dependent parallel workflow processing.

Structure
MDGIMG
Master Data Governance
Classic Mode in SAP MDG
Central Governance
Process Modeling
Workflow
Rule-Based Workflow
Define Service Names for Rule-Based Workflow
MDGIMG

General Settings -> Process Modeling -> Workflow -> Rule-Based Workflow -> Configure Rule-Based Workflow

Configure the Single Value Decision Table, User Agent Table, and Non User Agent Table for the workflow.

Structure
MDGIMG
Master Data Governance
Classic Mode in SAP MDG
Central Governance
Process Modeling
Workflow
Rule-Based Workflow
Configure Rule-Based Workflow
SE18

Enhancement Spot Name -> USMD_SSW_SERVICE_PROCESSOR

Create and activate the BAdI implementation for USMD_SSW_PARA_RESULT_HANDLER and review enhancement spot element definitions.

Referenced tables

ObjectPurpose
V_USMD201C_SSWStores the Service Name filter value for the BAdI implementation.

The remaining configuration, implementation details, and testing guidance continue from this answer more…

Related questions and keywords

Alternative questions

  • How can I create parallel workflow tasks in SAP MDG?
  • How do I merge two parallel approval work items?
  • How does MDG handle parallel approvers?

Possible questions

  • Which BAdI merges parallel workflow results?
  • What is USMD_SSW_PARA_RESULT_HANDLER?
  • What input does HANDLE_PARALLEL_RESULT receive?
  • Can the BAdI access Change Request data?
  • What does the parallel-result BAdI return?

Keywords

SAP MDGparallel workflowparallel work itemsmerge workflowRule-Based WorkflowUSMD_SSW_PARA_RESULT_HANDLERHANDLE_PARALLEL_RESULTService NameV_USMD201C_SSWSE18MDGIMGSWI6