This blog is ment to show case the MDG parallel workflow and sending Email notification to requestor after approval.it is base on the documentation mention under link  http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30681c36-5884-2e10-85a1-cd9499942e37?QuickLink=index&…and also MDG-M: How To Send an Email Notification to the Requestor at Time of Material Activation. I thanks Rob for  good ducomentation which helps us to trigger the E-mail notification and also my colleguges who help me on this.

Business Scenario:While creation of material the two departments wants to approve the CR at the same time and also trigger the E-mail notification after activation of material.

1.Create the CR type.

Untitled.jpg

Untitled1.png

2.Defining the services

Untitled3.jpg

3.Defining the user and Non-User decision table in BRF+,you have provide the Merge Type B(Badi) and Marge Paramaters as service which we defind in the perivous step.

Untitled4.jpg

Provide the workflow template which is created as per the Rob Docs MDG-M: How To Send an Email Notification to the Requestor at Time of Material Activation. and service names in the non-user decision table.

Untitled5.jpg

4.Define  BADI’s use the Enhamcment spot USMD_SERVICE_PROCESSOR(SE18)

Untitled6.jpg

goto Badi Defination USMD_SSW_PARA_RESULT_HANDLER and Create implemenation

Untitled7.jpg

Provide the Implementation name ans text

Untitled8.jpg

Provide the Badi Name and implementing Class.

Untitled9.jpg

5.Providing the Code,click on the method IF_USMD_PARA_RSLT_HANDLER~HANDLE_PARALLEL_RESULT

Untitled10.jpg

check out the steps you have to provide the same steps in decision tables

Untitled11.jpg

6.Defining the filter types and save

Untitled12.jpg

follow similar method for defining the BADI USMD_SSW_SYSTEM_METHOD_CALLER and check the method

IF-USMD_SSW_SYST_METHOD_CALLER~CALL_SYSTEM_METHOD should be empty.

Untitled13.jpg

7.Create the CR for material

Untitled14.jpg

TETWEEWE.jpg

Untitled15.jpg

8.Check the status of Work flow you can see that the CR is in the two user que they can approve Parallel

Untitled16.jpg

Status of CR after approval from User 1

Untitled18.jpg

Status you can see the the both user has approved the CR and it went to next user

Untitled19.jpg

final approval the status has changed for Final Check Approved.

Untitled20.jpg

check the status of mail in SOST tcode and check the recipient

SOST.jpg

Open up the mail box and check the mail

Untitled21.jpg

we are working on extended Email notification once done will publish it as well.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply