Hello Workflow Experts,
When a MDG Change Request has been approved and activated, I want to send an email to the original requestor notifying them that their request was approved. To do this, I have followed the steps outlined in the following document titled How To...Master Data Governance for Material: Send an E-Mail notification during the governance process: http://scn.sap.com/docs/DOC-49089
I have created the sub-workflow using SWDD and have successfully added the step to my BRFplus workflow for MDG-M. The email is successfully generated and sent to Outlook from SAP.
However, I am having difficulties in two areas. I am new to SWDD workflows so any advice is greatly appreciated.
Two issues:
- The expressions I am using to display the Change Request Number and the Change Request Description are not returning values to my email – they are blank.
- I want to send the email to the person that created the MDG Change Request but I can’t figure out how to determine the creator (i.e., CR Requestor) of the MDG Change Request and ultimately, their email address. Right now I am testing using my own email address in the workflow Send Mail step.
Issue 1 – Expression values are blank in my Outlook email:
In SWDD, here is my Send Mail sub-workflow step:
Here is the Outlook email that is generated. The CR ID and CR Description should display on line 2 and line 3. However, the expressions are not returning the values:
If I run transaction SWI1:
And display the work item, the expression for the CR ID and CR Description is also blank – on Line 2 and Line 3:
HOWEVER, here is what is bizarre! ...if I click Log to display the log, and then green arrow back to the work item screen, the CR ID and CR Description magically appear in SWI1:
But the values never appear in the generated email.
Issue 2 – How do I dynamically determine the ID and ultimately, the email address, of the person that created the original CR, i.e., the CR requestor?
For testing purposes, I have my email address “hardcoded” as shown in the first screenshot above. However, I would like the email sent to the email address of the requestor, as defined in their parameters (SU0). I am trying to find an expression that can be used to return the email address. I also tried using the Recipient Type of Organizational Object and Expression = &_WF_INITIATOR& but that did not work.
Screenshot Details:
Here are screen shots showing how I have everything setup.
I have added my new sub-workflow Service Name, WS99900002, to the BRFplus workflow of my MDG Change Request. Shown here is the Non-User Agent Decision Table entry:
And here is the Single Value Decision Table:
Here is my WS99900002 sub-workflow in SWDD:
Send Mail Step:
The Control tab for the Send Mail step:
Binding for the Send Mail step:
The Task for the Send Mail step:
Here is the Workflow End step:
The Binding for Workflow End step:
And finallly, the IO_CHANGE_REQUEST container element details: