Skip to Content
0
Former Member
Mar 05, 2014 at 12:21 AM

Change Request Email Expressions are Blank for MDG-M Sub-workflow

532 Views

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:

  1. 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.
  2. 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:

Attachments

Pic 1.JPG (35.1 kB)
Pic 3.JPG (28.0 kB)
Pic 4.JPG (27.8 kB)
Pic 5.JPG (55.4 kB)
Pic 5.JPG (49.5 kB)
Pic 6.JPG (32.7 kB)
Pic 7.JPG (23.2 kB)
Pic 8.JPG (38.7 kB)
Pic 9.JPG (34.4 kB)
Pic 9.JPG (31.6 kB)
Pic 9.JPG (51.0 kB)
Pic 10.JPG (38.2 kB)
Pic 10.JPG (50.2 kB)
Pic 10.JPG (34.9 kB)
Pic 10.JPG (76.1 kB)