SAP MDG · COMMUNITY

How to send non-work-item e-mail notifications from an SAP MDG governance process?

SAP MDG can send non-work-item e-mails during or after governance using one of three guide-supported options: a configuration-only sub-workflow, a BAdI-based system caller, or a copied workflow with a program exit and Send Mail step.

SAP MDG can send non-work-item e-mails during or after governance using one of three guide-supported options: a configuration-only sub-workflow, a BAdI-based system caller, or a copied workflow with a program exit and Send Mail step.

SAP MDG can send e-mail notifications during governance without relying on normal workflow work-item notifications. The guide supports three patterns: a configuration-only sub-workflow, a BAdI-based system caller using `USMD_SSW_SYSTEM_METHOD_CALLER`, and a copied workflow that sends mail after activation via a program exit.

Process flow

  1. Identify the workflow point where the e-mail should be sent.
  2. Choose one of the three guide-supported approaches: sub-workflow, BAdI System Caller Method, or new workflow.
  3. Configure the Change Request and workflow rules for the selected approach.
  4. Activate the workflow objects and decision tables.
  5. Process a Change Request through the approval or activation step.
  6. Check the outbound mail in `SOST`.
  7. Verify the e-mail reached the intended recipient.
SWDD

Workflow Builder > create sub-workflow > add Send Mail step > add Workflow Container element `CHANGE_REQUEST` > add Event Creator > trigger `SUBWORKFLOW_PROCESSED`

Build the configuration-only sub-workflow for non-work-item e-mail notification.

MDGIMG

General Settings > Process Modeling > Change Requests > Create Change Request Type

Copy `MAT01` to `ZMAT01AM` for the mail-notification scenario.

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

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

Copy the MAT01 workflow-step customizing to the custom Change Request type.

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 > Workflow > Rule-Based Workflow > Configure Rule-Based Workflow

Export/import the BRFplus decision tables and assign the correct process pattern and service name for the chosen approach.

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

BAdI `USMD_SSW_SYSTEM_METHOD_CALLER`

Implement the system-caller logic for the coding-based notification approach.

SE24

Create class `ZCL_EMAIL_NOTIFICATION_WF_EXIT` and implement `IF_SWF_IFS_WORKITEM_EXIT` / `EVENT_RAISED`

Implement the workflow exit used by the copied-workflow approach.

Referenced tables

ObjectPurpose
DT_SINGLE_VAL_MAT01Export the standard MAT01 single-value decision rules and adapt them for the custom Change Request type.
DT_USER_AGT_GRP_MAT01Export the standard MAT01 user-agent group rules and import them into the custom Change Request type.
DT_NON_USER_AGT_GRP_MAT01Export the standard MAT01 non-user-agent group rules and adjust them for the mail sub-workflow or system-caller pattern.

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?
  • Can a Rule-Based Workflow call another workflow to send mail?
  • How do I send an e-mail after Change Request activation?

Keywords

SAP MDGe-mail notificationgovernance processChange Requestapprovalactivationnon-work-item notificationsub-workflowUSMD_SSW_SYSTEM_METHOD_CALLERnew workflowprogram exitSend MailRule-Based WorkflowMaterial Approval MailSWDDWorkflow BuilderUndefinedRecipientsE-Mail Address