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
- Create the Change Request process with parallel workflow branches.
- Assign the parallel branches to the required processors.
- Complete each parallel work item.
- Implement BAdI
USMD_SSW_PARA_RESULT_HANDLER. - Implement method
HANDLE_PARALLEL_RESULT. - Read the Change Request number, current step, parallel step action table, and Service Name.
- Determine whether all required parallel branches are finished.
- Merge the branch results into one workflow result and change the generic context if needed. Return the next step, action, and messages if required.
MDGIMGGeneral 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.
MDGIMGGeneral Settings -> Process Modeling -> Change Requests -> Configure Properties of Change Request Step
Activate Highlighting Indicator for the dialog steps of the Change Request Type.
MDGIMGGeneral 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.
SE18Enhancement Spot Name -> USMD_SSW_SERVICE_PROCESSOR
Display the enhancement spot and create the implementation for USMD_SSW_PARA_RESULT_HANDLER.
Service Name filter value maintenance
Define the Service Name filter used by the parallel-result BAdI implementation.
Referenced tables
| Object | Purpose |
|---|---|
V_USMD201C_SSW | View 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_RESULTreceive? - Is the parallel-result BAdI filter-dependent?
- Where is the Service Name filter defined?
- How do I separate merge logic for multiple services?