Master Data Governance for Material: Send a Mail Notification During the Governance Process

This scenario addresses if the customer requires to notify a person via email (for example the requestor) when the workflow is in a certain step or completed. This How To Guide describes possible solution to send out email notification from the Rules Based Workflow. Download the Document

PUBLICHow-To Send an E-mail Notification During theGovernance ProcessApplicable Releases:From MDG 7.0 and from SAP S/4HANA 1511Version 2.1September 2024
© 2024 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material. 2 / 73Document HistoryDocument Version Description1.0 First official release of this guide1.1 Small corrections1.2 Small corrections2.0 Adapt current template, elaborate step-by-step description(January 2021)2.1 Add option based on a new workflow (September 2024)
© 2024 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material. 3 / 73Table of contents1. Introduction ........................................................................................................................................................... 42. Email notification using a sub-workflow................................................................................................... 42.1. Create a sub-workflow....................................................................................................................................................................... 42.2. Create a new change request type and configure change request steps ............................................... 152.3. Configure rule-based workflow for the new change request type ................................................................ 182.4. Try-out ......................................................................................................................................................................................................... 293. Email notification using BAdI System Caller Method...................................................................... 323.1. Create a service name in IMG.................................................................................................................................................... 323.2. Create a BAdI implementation for BAdI ‘Rule-Based Workflow Call System Method’.............. 343.3. Create a new change request type and configure change request steps ............................................... 423.4. Configure rule-based workflow for the new change request type ................................................................ 423.5. Try-out ......................................................................................................................................................................................................... 484. Email notification using a new workflow ............................................................................................... 514.1. Create a new workflow ................................................................................................................................................................... 514.2. Modify the workflow container................................................................................................................................................. 524.3. Modify the activation step ........................................................................................................................................................... 564.4. Implementation of IF_SWF_IFS_WORKITEM_EXIT~EVENT_RAISED ......................................................... 634.5. Add an email notification .............................................................................................................................................................. 674.6. Define change request step numbers ................................................................................................................................ 704.7. Create a new change request type and configure change request steps ............................................... 715. Additional Information .................................................................................................................................. 735.1. Further Reading ................................................................................................................................................................................... 735.1.1. Information on SAP MDG on SAP S/4HANA ......................................................................................................................................735.1.2. SAP Roadmap Explorer ....................................................................................................................................................................................735.1.3. Related Information .............................................................................................................................................................................................735.2. SAP Notes ................................................................................................................................................................................................ 73
© 2024 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material. 4 / 731. IntroductionSAP Master Data Governance (MDG) provides business processes to find, create, change, and mark masterdata for deletion. It supports the governance of master data in a central hub and the distribution to connectedoperational and business intelligence systems.The processes are workflow-driven and can include several approval and revision phases, and thecollaboration of all users participating in the master data maintenance.MDG offers change request (CR)-based processing of master data with integrated workflow, staging, approval,activation, and distribution.This guide addresses the situation that it is required to notify a person via email (for example the requestor)when the workflow is in a certain step or completed. Two solutions are described. The first one is viaconfiguration only whereas the second one also incorporates coding which provides more flexibility in the waythe email notification is formatted as well as the contained information. Both solutions are based on the rule-based workflow.This guide is not meant describe how to enable notification for work items. Rather, this guide is for non-workitem notifications.2. Email notification using a sub-workflowThe goal of the approach described in this chapter is to send an email notification for an approved materialcreation. To achieve this only configuration is used (no source code). A new sub-workflow as well as a newchange request type and a rule-based workflow are configured.Chapter 2.1 describes the creation of a new sub-workflow which includes a step for sending an email. Tobring this sub-workflow into action it shall be incorporated in a rule-based workflow. In this document, for anon-disruptive approach, a new change request type is created and configured (chapter 2.2). Theconfiguration of a rule-based workflow for this new change request type is described in chapter 2.3. To omitstarting from scratch the SAP-delivered change request type MAT01 (Create Material) is copied and adjusted.In chapter 2.4the whole configuration is tested.2.1. Create a sub-workflowThis chapter describes the creation of a new sub-workflow which includes a step for sending an email. Thecreation starts from scratch and will end with a new (sub-)workflow. All the described steps are configurationonly. You might need a customizing request and/or task at hand to save and activate the objects.
© 2024 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material. 5 / 73Step Explanation Screenshot1 Start the Workflow Builder(transaction SWDD). TheWorkflow Builder is alreadyin edit mode of a newworkflow.2 Double-click on the alreadyexisting workflow stepnamed Undefined in thegraphical model.Alternatively, navigate to thecorresponding step in thenavigation area, open thecontext menu and selectChange.3 In pop-up Step Selectionchose Send Mail andcontinue.