SAP MDG · WORKFLOWS

How do I merge parallel workflow approvals in SAP MDG using USMD_SSW_PARA_RESULT_HANDLER?

Use BAdI USMD_SSW_PARA_RESULT_HANDLER and method HANDLE_PARALLEL_RESULT to evaluate the parallel branch results, merge them into one workflow result, and continue the Change Request to the next step. Define the Service Name in V_USMD201C_SSW and use it as the BAdI filter.

Use BAdI USMD_SSW_PARA_RESULT_HANDLER and method HANDLE_PARALLEL_RESULT to evaluate the parallel branch results, merge them into one workflow result, and continue the Change Request to the next step. Define the Service Name in V_USMD201C_SSW and use it as the BAdI filter.

SAP MDG merges parallel approval branches through BAdI USMD_SSW_PARA_RESULT_HANDLER. In method HANDLE_PARALLEL_RESULT, the implementation receives the Change Request number, current step, parallel step action table, and Service Name, then evaluates the branch results, merges them, and returns the next workflow step, workflow action, and messages.

Process flow

  1. Create the Change Request process with parallel workflow branches.
  2. Assign the parallel branches to the required processors.
  3. Complete each parallel work item.
  4. Implement BAdI USMD_SSW_PARA_RESULT_HANDLER.
  5. Implement method HANDLE_PARALLEL_RESULT.
  6. Read the Change Request number, current step, parallel step action table, and Service Name.
  7. Determine whether all required parallel branches are finished.
  8. Merge the branch results into one workflow result and change the generic context if needed. Return the next step, action, and messages if required.
MDGIMG

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

Define the Rule-Based Workflow Service Name that is later used as the BAdI filter.

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 -> Change Requests -> Configure Properties of Change Request Step

Activate Highlighting Indicator for the dialog steps of the Change Request Type.

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 Change Request Steps for Rule-Based Workflow

Maintain the Change Request workflow steps, including the parallel branches and subsequent process steps.

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
SE18

Enhancement Spot Name -> USMD_SSW_SERVICE_PROCESSOR

Display the enhancement spot and create the implementation for USMD_SSW_PARA_RESULT_HANDLER.

V_USMD201C_SSW

Service Name filter value maintenance

Define the Service Name filter used by the parallel-result BAdI implementation.

Referenced tables

ObjectPurpose
V_USMD201C_SSWView used to define the Service Name filter value for the parallel-result BAdI.

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

  • What BAdI merges parallel workflow results?
  • What input does HANDLE_PARALLEL_RESULT receive?
  • Is the parallel-result BAdI filter-dependent?
  • Where is the Service Name filter defined?
  • How do I separate merge logic for multiple services?

Keywords

SAP MDGparallel workflowparallel work itemsmerge workflowRule-Based WorkflowUSMD_SSW_PARA_RESULT_HANDLERHANDLE_PARALLEL_RESULTService NameV_USMD201C_SSWSE18USMD_SSW_SERVICE_PROCESSORworkflow merge