Quantcast
Channel: SCN : Discussion List - SAP Master Data Governance
Viewing all articles
Browse latest Browse all 2047

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

$
0
0

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 processhttp://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:

Pic 1.JPG

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:

Pic 3.JPG

If I run transaction SWI1:

Pic 4.JPG

And display the work item, the expression for the CR ID and CR Description is also blank – on Line 2 and Line 3:

Pic 5.JPG

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:

Pic 5.JPG

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:

Pic 6.JPG

And here is the Single Value Decision Table:

Pic 7.JPG

 

Here is my WS99900002 sub-workflow in SWDD:

Pic 8.JPG

Send Mail Step:

Pic 9.JPG

The Control tab for the Send Mail step:

Pic 9.JPG

Binding for the Send Mail step:

Pic 10.JPG

The Task for the Send Mail step:

Pic 9.JPG

Here is the Workflow End step:

Pic 10.JPG

The Binding for Workflow End step:

Pic 10.JPG

And finallly, the IO_CHANGE_REQUEST container element details:

Pic 10.JPG


Viewing all articles
Browse latest Browse all 2047

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>