Skip to Content
Technical Articles
Author's profile photo Arijit Dutta

MDG-S: MDG rule-based workflow

Introduction:

This blog post will describe in detail how to trigger email using using Rule Base Workflow(WS60800086)

Requirement:

  • Bank data in vendor master data when changed (Account no., IBAN, A/C holder name, etc), or deleted, an email notification to be triggered to the vendor
  • Email available in the general section of vendor (LFA1) to be used to send the notification.
  • Email to be triggered to the SPU owners.

Solution:

For this requirement, I have enhanced the existing sub-workflow WS90100004 using transaction SWDD and the step already defined where BRFplus workflow (WS60800086) to call the sub-workflow. I did not pursue the BADI approach. Set up is already there I just enhance the existing subworkflow WS90100004

Steps to be followed:

Tcode: MDGIMG

Based on the CR type check the decision table

Single Value Decision Table

1

Non-User Agent Decision Table

 

Sub-workflow WS90100004 Overview

Enhance Subworkflow WS90100004

  • This  WS90100004 workflow has 2 steps added:
    • Check for CR Status –  Condition steps: Check the status of the CR if status equal = ‘AM’ (changed by vendor MD team) then trigger email to Vendor and SPU owners
    • NOTIFICATION OF BANK ACCOUNT CHANGE – Activity steps: All the ABAP logic ( (Email recipient and email content) placed here in the class /BPMDG/SU_CL_BANK_CHANG_NOTIF and method SEND_NOTIF_BANK_ACCOUNT_CHANGE.
    • Workflow End

 

 

Created 1 Workflow containers: CR_STATUS

 

I hope this blog was useful for those of you trying to get email notification configured for MDG.

Assigned Tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Sandra Rossi
      Sandra Rossi

      You are saying that you enhanced WS90100004. Anything prefixed between 900 and 999 is custom. Could you explain how it's to be created? Thank you!

      NB: link to official documentation Configure Workflow Tasks | SAP Help Portal

      (at Home > SAP S/4HANA > Master Data Governance > How to Get Master Data Governance Running > Configuring Master Data Governance for Material > Set Up the Rule-Based Workflow)

      Author's profile photo Martin Boonstra
      Martin Boonstra

      Nice example of a use case that MDG suits perfectly given it's workflow based processes.

      On the solution;why not use the BAdI: Calling of System Method for Rule-Based Workflow instead?

      That way you will be upgrade and future proof in case SAP will deliver any workflow fixes/changes.

      Author's profile photo Arijit Dutta
      Arijit Dutta
      Blog Post Author

      As I mentioned subworkflow WS90100004 was already assigned to condition alias 'EMA' in Non-User Agent Decision Table.