SAP MDG · WORKFLOWS
How can SAP MDG send a non-work-item e-mail notification during or after a governance process such as approval or activation?
SAP MDG can send a non-work-item e-mail during governance in three ways: a configuration-only sub-workflow, a BAdI-based synchronous system method using `USMD_SSW_SYSTEM_METHOD_CALLER`, or a copied workflow with a program exit and `Send Mail` step after activation.
SAP MDG can send a non-work-item e-mail during governance in three ways: a configuration-only sub-workflow, a BAdI-based synchronous system method using `USMD_SSW_SYSTEM_METHOD_CALLER`, or a copied workflow with a program exit and `Send Mail` step after activation.
SAP MDG can send e-mails during approval or activation without relying on normal work-item notifications. The guide describes three implementation patterns: a configuration-only sub-workflow, a BAdI-based synchronous system method, and a copied workflow with a program exit plus `Send Mail` after activation.
Process flow
- Identify the workflow point where the e-mail must be sent.
- Choose one of the three approaches: sub-workflow, BAdI system caller, or copied workflow with program exit.
- Configure the CR type and workflow accordingly.
- Run the Change Request through the relevant approval or activation step.
- Check the outbound message in `SOST`.
- Confirm receipt in the mailbox.
Workflow Builder > create sub-workflow > Send Mail step > Event Creator > trigger `SUBWORKFLOW_PROCESSED`
Build the configuration-only sub-workflow notification
MDGIMGGeneral Settings > Process Modeling > Change Requests > Create Change Request Type
Copy `MAT01` to `ZMAT01AM` and configure the CR type
MDGIMGGeneral Settings > Process Modeling > Workflow > Rule-Based Workflow > Define Change Request Steps for Rule-Based Workflow
Copy rule-based workflow steps for `ZMAT01AM`
MDGIMGGeneral Settings > Process Modeling > Workflow > Rule-Based Workflow > Configure Rule-Based Workflow
Maintain `DT_SINGLE_VAL`, `DT_USER_AGT_GRP`, and `DT_NON_USER_AGT_GRP` for the custom CR type
Copied workflow based on `WS75700040` with program exit and `Send Mail` step
Implement the activation-mail workflow variant
Referenced tables
| Object | Purpose |
|---|---|
DT_SINGLE_VAL_MAT01 | Source decision table exported from the standard material CR type before importing to `ZMAT01AM` |
DT_SINGLE_VAL_ZMAT01AM | Adjusted single-value decision table for the custom CR type |
DT_USER_AGT_GRP_MAT01 | Standard user-agent decision table exported as the baseline |
DT_USER_AGT_GRP_ZMAT01AM | Custom user-agent decision table after import |
DT_NON_USER_AGT_GRP_MAT01 | Standard non-user-agent decision table exported as the baseline |
DT_NON_USER_AGT_GRP_ZMAT01AM | Custom non-user-agent decision table after import and mail-service assignment |
The remaining configuration, implementation details, and testing guidance continue from this answer more…
Related questions and keywords
Alternative questions
- How can SAP MDG send an e-mail when a Change Request is approved?
- How do I notify the requestor after material approval?
- How can I send an e-mail when an MDG workflow reaches a certain step?
Possible questions
- What are the options to send e-mail from SAP MDG workflow?
- Can I send an MDG e-mail without ABAP?
- Which approach provides more flexibility?
- How does the sub-workflow approach work?
- Which Process Pattern is used for the BAdI approach?
- What should I verify in SOST after the workflow runs?