<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:9.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Courier New";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoPlainText><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Thank you Rina and Kjetil for your suggestions</span>.&nbsp; <span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>After thinking about what you said, I came up with this idea that worked pretty easily:<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoPlainText><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>First I defined an Index field of type SWC_INDEX in the local container of the block step.<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoPlainText><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>I modified the binding between the workflow and the block step to pass the PARFOREACH_INDEX to this new INDEX field:<o:p></o:p></span></p><p class=MsoPlainText><img width=758 height=117 id="Picture_x0020_1" src="cid:image003.png@01CF2EFE.137B1CC0"><o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>I then modified the binding of the User Decision step within the block to pass the WI_RESULT back to the original <span style='text-transform:uppercase'>Table_of_Approvers.User_decision</span> field indexed by the new INDEX in the block&#8217;s local container:<o:p></o:p></span></p><p class=MsoPlainText><img width=764 height=118 id="Picture_x0020_3" src="cid:image002.png@01CF2EFC.C8EC4F40"><o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>This allowed me to capture the user decision back in the original multiline element without having to define a new table or changing the order of the original table:<o:p></o:p></span></p><p class=MsoPlainText><img width=379 height=166 id="Picture_x0020_5" src="cid:image004.png@01CF2EFD.8C7846D0"><o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Thank you again for helping me to &#8220;think outside the container&#8221;!!<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoPlainText><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Loren <o:p></o:p></span></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>-----Original Message-----<br>From: sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] On Behalf Of Kjetil Kilhavn<br>Sent: Thursday, February 20, 2014 8:55 AM<br>To: SAP Workflow Users' Group<br>Subject: Re: Dynamic Parallel Processing Question</p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>Onsdag 19. februar 2014 09.32.15 skrev Bratzler, Loren:<o:p></o:p></p><p class=MsoPlainText>&gt; I have a question about Dynamic Parallel Processing.&nbsp; I am wondering <o:p></o:p></p><p class=MsoPlainText>&gt; if it is possible to pass results back to the multi-line element in <o:p></o:p></p><p class=MsoPlainText>&gt; the main workflow container from the LINE element in the individual parallel tasks?<o:p></o:p></p><p class=MsoPlainText>You can change the assignment type from ASSIGN VALUE to APPEND TO TABLE in the binding from the parallell task back to the workflow container, that should do the trick I believe. <o:p></o:p></p><p class=MsoPlainText>I think the easiest solution would be to create another table container element and append to that - depending on how you plan on using this.<o:p></o:p></p><p class=MsoPlainText>In a separate step (after processing of the parallell task was complete you could then replace the contents of the original table with the content of the return values table.<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt; Here is my test example:<o:p></o:p></p><p class=MsoPlainText>&gt; <o:p></o:p></p><p class=MsoPlainText>&gt; I created a simple test workflow with a Dynamic Parallel Block (this <o:p></o:p></p><p class=MsoPlainText>&gt; is the only step in the test workflow): <o:p></o:p></p><p class=MsoPlainText>&gt; <a href="mailto:[cid:image005.jpg@01CF2D55.799EBCF0]"><span style='color:windowtext;text-decoration:none'>[cid:image005.jpg@01CF2D55.799EBCF0]</span></a><o:p></o:p></p><p class=MsoPlainText>&gt; <o:p></o:p></p><p class=MsoPlainText>&gt; <o:p></o:p></p><p class=MsoPlainText>&gt; The Parallel Block is designated as ParForEach because I want the <o:p></o:p></p><p class=MsoPlainText>&gt; approval tasks to go to all approvers at the same time:<o:p></o:p></p><p class=MsoPlainText>&gt; <a href="mailto:[cid:image002.png@01CF2D4E.28612D70]"><span style='color:windowtext;text-decoration:none'>[cid:image002.png@01CF2D4E.28612D70]</span></a><o:p></o:p></p><p class=MsoPlainText>&gt; <o:p></o:p></p><p class=MsoPlainText>&gt; The Parallel Processing for the block is based on the multi-line <o:p></o:p></p><p class=MsoPlainText>&gt; element<o:p></o:p></p><p class=MsoPlainText>&gt; TABLE_OF_APPROVERS: <a href="mailto:[cid:image003.png@01CF2D4E.28612D70]"><span style='color:windowtext;text-decoration:none'>[cid:image003.png@01CF2D4E.28612D70]</span></a><o:p></o:p></p><p class=MsoPlainText>&gt; <o:p></o:p></p><p class=MsoPlainText>&gt; The TABLE_OF_APPROVERS element is a structure that has an Agent, an <o:p></o:p></p><p class=MsoPlainText>&gt; Item Number, and a Result field: <a href="mailto:[cid:image004.png@01CF2D4E.28612D70]"><span style='color:windowtext;text-decoration:none'>[cid:image004.png@01CF2D4E.28612D70]</span></a><o:p></o:p></p><p class=MsoPlainText>&gt; <o:p></o:p></p><p class=MsoPlainText>&gt; I have set up the binding to pass the indexed multiline element of the <o:p></o:p></p><p class=MsoPlainText>&gt; workflow container to the LINE element in the step container.&nbsp; I also <o:p></o:p></p><p class=MsoPlainText>&gt; set up a return binding to pass the LINE element back to the indexed <o:p></o:p></p><p class=MsoPlainText>&gt; multiline element.&nbsp; This was what I was hoping would allow me to <o:p></o:p></p><p class=MsoPlainText>&gt; update the multiline element in the workflow container but it does not appear to be working:<o:p></o:p></p><p class=MsoPlainText>&gt; <a href="mailto:[cid:image007.png@01CF2D4F.14A88B10]"><span style='color:windowtext;text-decoration:none'>[cid:image007.png@01CF2D4F.14A88B10]</span></a><o:p></o:p></p><p class=MsoPlainText>&gt; <o:p></o:p></p><p class=MsoPlainText>&gt; For the User Decision step within the block, I have defined the Agent <o:p></o:p></p><p class=MsoPlainText>&gt; to be the Approver from the LINE element: <o:p></o:p></p><p class=MsoPlainText>&gt; <a href="mailto:[cid:image008.png@01CF2D51.56F1ECD0]"><span style='color:windowtext;text-decoration:none'>[cid:image008.png@01CF2D51.56F1ECD0]</span></a><o:p></o:p></p><p class=MsoPlainText>&gt; <o:p></o:p></p><p class=MsoPlainText>&gt; And in the binding for the User Decision step, I am passing back <o:p></o:p></p><p class=MsoPlainText>&gt; _WI_RESULT to the User Decision field on the LINE element:<o:p></o:p></p><p class=MsoPlainText>&gt; <a href="mailto:[cid:image009.png@01CF2D51.56F1ECD0]"><span style='color:windowtext;text-decoration:none'>[cid:image009.png@01CF2D51.56F1ECD0]</span></a><o:p></o:p></p><p class=MsoPlainText>&gt; <o:p></o:p></p><p class=MsoPlainText>&gt; When I test this in SWUS, I define two entries in the <o:p></o:p></p><p class=MsoPlainText>&gt; TABLE_OF_APPROVERS multiline element: <o:p></o:p></p><p class=MsoPlainText>&gt; <a href="mailto:[cid:image010.png@01CF2D52.3E14C330]"><span style='color:windowtext;text-decoration:none'>[cid:image010.png@01CF2D52.3E14C330]</span></a><o:p></o:p></p><p class=MsoPlainText>&gt; <o:p></o:p></p><p class=MsoPlainText>&gt; The workflow runs and correctly creates two approval tasks as <o:p></o:p></p><p class=MsoPlainText>&gt; expected.&nbsp; One user Rejects and the other user Approves:<o:p></o:p></p><p class=MsoPlainText>&gt; <a href="mailto:[cid:image011.png@01CF2D52.3E14C330]"><span style='color:windowtext;text-decoration:none'>[cid:image011.png@01CF2D52.3E14C330]</span></a><o:p></o:p></p><p class=MsoPlainText>&gt; <o:p></o:p></p><p class=MsoPlainText>&gt; If I look at the containers for the individual Parallel Block steps, I <o:p></o:p></p><p class=MsoPlainText>&gt; can see that the LINE elements are getting updated with the User Decision:<o:p></o:p></p><p class=MsoPlainText>&gt; <a href="mailto:[cid:image012.png@01CF2D53.999D6BC0]"><span style='color:windowtext;text-decoration:none'>[cid:image012.png@01CF2D53.999D6BC0]</span></a><o:p></o:p></p><p class=MsoPlainText>&gt; <o:p></o:p></p><p class=MsoPlainText>&gt; <a href="mailto:[cid:image013.png@01CF2D53.999D6BC0]"><span style='color:windowtext;text-decoration:none'>[cid:image013.png@01CF2D53.999D6BC0]</span></a><o:p></o:p></p><p class=MsoPlainText>&gt; <o:p></o:p></p><p class=MsoPlainText>&gt; But when I look at the main workflow container, the multiline element <o:p></o:p></p><p class=MsoPlainText>&gt; did not get updated with the User Decisions:<o:p></o:p></p><p class=MsoPlainText>&gt; <a href="mailto:[cid:image014.png@01CF2D54.5689D4D0]"><span style='color:windowtext;text-decoration:none'>[cid:image014.png@01CF2D54.5689D4D0]</span></a><o:p></o:p></p><p class=MsoPlainText>&gt; <o:p></o:p></p><p class=MsoPlainText>&gt; So is it possible to do what I am trying to do here?&nbsp; Can I pass <o:p></o:p></p><p class=MsoPlainText>&gt; results from the individual parallel steps back to the multiline <o:p></o:p></p><p class=MsoPlainText>&gt; container element in the main workflow?<o:p></o:p></p><p class=MsoPlainText>&gt; <o:p></o:p></p><p class=MsoPlainText>&gt; <o:p></o:p></p><p class=MsoPlainText>&gt; Loren Bratzler<o:p></o:p></p><p class=MsoPlainText>&gt; Norfolk Southern Corporation<o:p></o:p></p><p class=MsoPlainText>&gt; Email: <a href="mailto:loren.bratzler@nscorp.com%3cmailto:loren.bratzler@nscorp.com"><span style='color:windowtext;text-decoration:none'>loren.bratzler@nscorp.com&lt;mailto:loren.bratzler@nscorp.com</span></a>&gt;<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>--<o:p></o:p></p><p class=MsoPlainText>Kjetil Kilhavn / Vettug AS (<a href="http://www.vettug.no"><span style='color:windowtext;text-decoration:none'>http://www.vettug.no</span></a>) _______________________________________________<o:p></o:p></p><p class=MsoPlainText>SAP-WUG mailing list<o:p></o:p></p><p class=MsoPlainText><a href="mailto:SAP-WUG@mit.edu"><span style='color:windowtext;text-decoration:none'>SAP-WUG@mit.edu</span></a><o:p></o:p></p><p class=MsoPlainText><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug"><span style='color:windowtext;text-decoration:none'>http://mailman.mit.edu/mailman/listinfo/sap-wug</span></a><o:p></o:p></p></div></body></html>