Friday, 6 October 2023

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

SAP ABAP Certification, SAP ABAP Guides, SAP ABAP Tutorial and Materials, SAP ABAP Prep

SAP ABAP Certification, SAP ABAP Guides, SAP ABAP Tutorial and Materials, SAP ABAP Prep

Based on the CR type check the decision table

SAP ABAP Certification, SAP ABAP Guides, SAP ABAP Tutorial and Materials, SAP ABAP Prep

Single Value Decision Table

SAP ABAP Certification, SAP ABAP Guides, SAP ABAP Tutorial and Materials, SAP ABAP Prep

Non-User Agent Decision Table

SAP ABAP Certification, SAP ABAP Guides, SAP ABAP Tutorial and Materials, SAP ABAP Prep

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

SAP ABAP Certification, SAP ABAP Guides, SAP ABAP Tutorial and Materials, SAP ABAP Prep

SAP ABAP Certification, SAP ABAP Guides, SAP ABAP Tutorial and Materials, SAP ABAP Prep

SAP ABAP Certification, SAP ABAP Guides, SAP ABAP Tutorial and Materials, SAP ABAP Prep

SAP ABAP Certification, SAP ABAP Guides, SAP ABAP Tutorial and Materials, SAP ABAP Prep

SAP ABAP Certification, SAP ABAP Guides, SAP ABAP Tutorial and Materials, SAP ABAP Prep

SAP ABAP Certification, SAP ABAP Guides, SAP ABAP Tutorial and Materials, SAP ABAP Prep

Created 1 Workflow containers: CR_STATUS

SAP ABAP Certification, SAP ABAP Guides, SAP ABAP Tutorial and Materials, SAP ABAP Prep

No comments:

Post a Comment