SAP MDG · WORKFLOWS
How do I implement flexible user determination in SAP MDG Rule-Based Workflow with BAdI USMD_SSW_DYNAMIC_AGENT_SELECT?
Use BAdI USMD_SSW_DYNAMIC_AGENT_SELECT in enhancement spot USMD_SSW_SERVICE_PROCESSOR to determine or adjust MDG workflow agents at runtime. Maintain the Service Name in V_USMD201C_SSW, reference that same service in the Single Value Decision Table of USMD_SSW_RULE, and implement IF_USMD_SSW_DYNAMIC_AGT_SELECT~GET_DYNAMIC_AGENTS to fill CT_USER_AGENT_GROUP with AGENT_GROUP and STEP_TYPE as needed.
Use BAdI USMD_SSW_DYNAMIC_AGENT_SELECT in enhancement spot USMD_SSW_SERVICE_PROCESSOR to determine or adjust MDG workflow agents at runtime. Maintain the Service Name in V_USMD201C_SSW, reference that same service in the Single Value Decision Table of USMD_SSW_RULE, and implement IF_USMD_SSW_DYNAMIC_AGT_SELECT~GET_DYNAMIC_AGENTS to fill CT_USER_AGENT_GROUP with AGENT_GROUP and STEP_TYPE as needed.
SAP MDG Rule-Based Workflow can determine processors dynamically through BAdI `USMD_SSW_DYNAMIC_AGENT_SELECT`. The workflow calls `IF_USMD_SSW_DYNAMIC_AGT_SELECT~GET_DYNAMIC_AGENTS` when a transition in `USMD_SSW_RULE` carries a dynamic agent selection service, and your implementation can read the Change Request, apply customer-specific mapping, and populate `CT_USER_AGENT_GROUP` with the intended users or agent groups.
Process flow
- Configure the Change Request type for Rule-Based Workflow.
- Define the Service Name for the dynamic agent service.
- Maintain the Service Name in
V_USMD201C_SSW. - Maintain the workflow in
USMD_SSW_RULE. - Set the dynamic service in the Single Value Decision Table.
- Keep the User Agent Decision Table for static fallback only where needed.
- Create the enhancement implementation in
USMD_SSW_SERVICE_PROCESSOR. - Create the BAdI implementation for
USMD_SSW_DYNAMIC_AGENT_SELECTin SE18 and assign the filter value.','Implement IF_USMD_SSW_DYNAMIC_AGT_SELECT~GET_DYNAMIC_AGENTS with service-name gating and agent build logic.','Maintain the customer Z-m
Process Definition of Rule-Based Workflow
Configure the Single Value Decision Table and User Agent Decision Table for workflow routing and dynamic agent selection.
SE18Enhancement Spot USMD_SSW_SERVICE_PROCESSOR
Create and activate the BAdI implementation and assign the Service Name filter.
SWI6Workflow log display
Verify that the workflow step called the dynamic agent selection and created the expected work items.
Service Name maintenance view
Maintain the Service Name used by the workflow and the filter-dependent BAdI implementation.
Referenced tables
| Object | Purpose |
|---|---|
V_USMD201C_SSW | Maintains the Service Name for dynamic agent selection. |
CT_USER_AGENT_GROUP | Holds the user-agent group entries returned by GET_DYNAMIC_AGENTS. |
The remaining configuration, implementation details, and testing guidance continue from this answer more…
Related questions and keywords
Alternative questions
- How does dynamic agent selection work in SAP MDG Rule-Based Workflow?
- Which BAdI is used for flexible user determination in MDG workflow?
- How do I fill CT_USER_AGENT_GROUP in
USMD_SSW_DYNAMIC_AGENT_SELECT?
Possible questions
- What is the purpose of BAdI
USMD_SSW_DYNAMIC_AGENT_SELECT? - Which method is used for dynamic agent determination in SAP MDG?
- What input parameters are passed to GET_DYNAMIC_AGENTS?
- Why is the Service Name passed to the BAdI?
- Where is the Service Name filter value maintained?
- Which transaction is used to configure Rule-Based Workflow?
- Which BRF+ tables are involved in the configuration?
- What is the role of the User Agent Decision Table?
- When is CT_USER_AGENT_GROUP empty?
- What must be filled when CT_USER_AGENT_GROUP is empty?
- Which example enhancement implementation is referenced by the guide?
- Which transaction is used to check workflow processing?