<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: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 12 (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:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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;}
@font-face
        {font-family:Verdana;
        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:12.0pt;
        font-family:"Times New Roman","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
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</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=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Ali,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><br>
Sounds like Pavan&#8217;s suggestion was the best one.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><br>
Regards,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:navy'>Alon Raskin</span></b><span style='font-size:10.0pt;font-family:
"Verdana","sans-serif";color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:navy'>e:</span></b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:navy'> <b><a href="mailto:araskin@3i-consulting.com"
title="mailto:araskin@3i-consulting.com&#13;&#10;blocked::mailto:araskin@3i-consulting.com">araskin@go3i.com</a></b></span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:navy'>&nbsp;</span></b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#1F497D'><o:p></o:p></span></p>

</div>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <b>On Behalf Of </b>Ali
Husain<br>
<b>Sent:</b> Tuesday, May 25, 2010 1:50 AM<br>
<b>To:</b> SAP WUG<br>
<b>Subject:</b> RE: Check if WF Instance Exists for a Certain Key<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'><br>
Hello Alon,<br>
<br>
We are using Release 7.0. I'm not sure which schema we are using but we have
not changed the default setting. The FM </span><span style='font-family:"Courier New";
color:black;background:white'>SAP_WAPI_WORKITEMS_TO_OBJECT</span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> which was
suggested by Pavan works nicely for this. Are there other ways of achieving
this?<br>
<br>
Thanks.<br>
Ali<br>
<br>
&gt; From: sap-wug-request@mit.edu<br>
&gt; Subject: SAP-WUG Digest, Vol 66, Issue 65<br>
&gt; To: sap-wug@mit.edu<br>
&gt; Date: Mon, 24 May 2010 10:48:22 -0400<br>
&gt; <br>
&gt; Send SAP-WUG mailing list submissions to<br>
&gt; sap-wug@mit.edu<br>
&gt; <br>
&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>
&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
&gt; or, via email, send a message with subject or body 'help' to<br>
&gt; sap-wug-request@mit.edu<br>
&gt; <br>
&gt; You can reach the person managing the list at<br>
&gt; sap-wug-owner@mit.edu<br>
&gt; <br>
&gt; When replying, please edit your Subject line so it is more specific<br>
&gt; than &quot;Re: Contents of SAP-WUG digest...&quot;<br>
&gt; <br>
&gt; <br>
&gt; Today's Topics:<br>
&gt; <br>
&gt; 1. RE: Check if WF Instance Exists for a Certain Key (Alon Raskin)<br>
&gt; 2. Re: Check if WF Instance Exists for a Certain Key (Ali Husain)<br>
&gt; 3. RE: Help required in designing a workflow template<br>
&gt; (Griffiths, Mark)<br>
&gt; <br>
&gt; <br>
&gt; ----------------------------------------------------------------------<br>
&gt; <br>
&gt; Message: 1<br>
&gt; Date: Mon, 24 May 2010 08:34:18 -0400<br>
&gt; From: Alon Raskin &lt;araskin@go3i.com&gt;<br>
&gt; Subject: RE: Check if WF Instance Exists for a Certain Key<br>
&gt; To: &quot;SAP Workflow Users' Group&quot; &lt;sap-wug@mit.edu&gt;<br>
&gt; Message-ID:<br>
&gt;
&lt;7DEF3CA60BA28D4484A482714C1AFA6D03A08EA4D8@3IExchange01.3I-Consulting.loc&gt;<br>
&gt; <br>
&gt; Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
&gt; <br>
&gt; What release of SAP are you building this in? Are you using the 'old'
persistence schema or the 'new' XML persistence approach?<br>
&gt; <br>
&gt; Regards,<br>
&gt; <br>
&gt; Alon Raskin<br>
&gt; e: araskin@go3i.com&lt;mailto:araskin@3i-consulting.com&gt;<br>
&gt; <br>
&gt; From: sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] On Behalf
Of Ali Husain<br>
&gt; Sent: Monday, May 24, 2010 3:13 AM<br>
&gt; To: SAP WUG<br>
&gt; Subject: Check if WF Instance Exists for a Certain Key<br>
&gt; <br>
&gt; <br>
&gt; Hello WF Experts,<br>
&gt; <br>
&gt; I'm triggering an event from an ABAP program for a certain key in the
Business Object using the the FM 'SAP_WAPI_CREATE_EVENT'. Is there a way to
check in my ABAP program if a WF has already been triggered for this key? The
reason for this is that i don't want to re-trigger the WF again for the same
key if it has already been triggered.<br>
&gt; <br>
&gt; Thanks a lot for your help.<br>
&gt; Ali<br>
&gt; ________________________________<br>
&gt; The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with
Hotmail. Get
busy.&lt;http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&amp;ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5&gt;<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL:
http://mailman.mit.edu/pipermail/sap-wug/attachments/20100524/299141b0/attachment-0001.htm<br>
&gt; <br>
&gt; ------------------------------<br>
&gt; <br>
&gt; Message: 2<br>
&gt; Date: Mon, 24 May 2010 13:09:36 +0000<br>
&gt; From: Ali Husain &lt;mr_mago40@hotmail.com&gt;<br>
&gt; Subject: Re: Check if WF Instance Exists for a Certain Key<br>
&gt; To: SAP WUG &lt;sap-wug@mit.edu&gt;<br>
&gt; Message-ID: &lt;BAY130-W12CB6A1E6D81DD12B659348FE70@phx.gbl&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; Hey Pavan,<br>
&gt; <br>
&gt; That's a very neat FM. Thanks a lot for the help.<br>
&gt; Ali<br>
&gt; <br>
&gt; <br>
&gt; &gt; Message: 3<br>
&gt; &gt; Date: Mon, 24 May 2010 13:48:46 +0530<br>
&gt; &gt; From: Pavan Chand &lt;bpawanchand@gmail.com&gt;<br>
&gt; &gt; Subject: Re: Check if WF Instance Exists for a Certain Key<br>
&gt; &gt; To: &quot;SAP Workflow Users' Group&quot; &lt;sap-wug@mit.edu&gt;<br>
&gt; &gt; Message-ID:<br>
&gt; &gt; &lt;AANLkTimBtn1Fw1zN8Rx0bg1zXEDJONjK7uhNuFKElAUp@mail.gmail.com&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt; &gt; <br>
&gt; &gt; Hi,<br>
&gt; &gt; <br>
&gt; &gt; You can check it by using the FM SAP_WAPI_WORKITEMS_TO_OBJECT<br>
&gt; &gt; <br>
&gt; &gt; On Mon, May 24, 2010 at 1:42 PM, Ali Husain
&lt;mr_mago40@hotmail.com&gt; wrote:<br>
&gt; &gt; <br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Hello WF Experts,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I'm triggering an event from an ABAP program for a certain key
in the<br>
&gt; &gt; &gt; Business Object using the the FM 'SAP_WAPI_CREATE_EVENT'. Is
there a way<br>
&gt; &gt; &gt; to check in my ABAP program if a WF has already been triggered
for this key?<br>
&gt; &gt; &gt; The reason for this is that i don't want to re-trigger the WF
again for the<br>
&gt; &gt; &gt; same key if it has already been triggered.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thanks a lot for your help.<br>
&gt; &gt; &gt; Ali<br>
&gt; <br>
&gt; <br>
&gt; _________________________________________________________________<br>
&gt; The New Busy is not the old busy. Search, chat and e-mail from your inbox.<br>
&gt; http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL:
http://mailman.mit.edu/pipermail/sap-wug/attachments/20100524/c399eaf2/attachment-0001.htm<br>
&gt; <br>
&gt; ------------------------------<br>
&gt; <br>
&gt; Message: 3<br>
&gt; Date: Mon, 24 May 2010 16:48:18 +0200<br>
&gt; From: &quot;Griffiths, Mark&quot; &lt;mark.griffiths@sap.com&gt;<br>
&gt; Subject: RE: Help required in designing a workflow template<br>
&gt; To: &quot;SAP Workflow Users' Group&quot; &lt;sap-wug@mit.edu&gt;<br>
&gt; Message-ID:<br>
&gt;
&lt;C6A64D82E3A5D24B949315CFBC1FA1AD07A1B51389@DEWDFECCR01.wdf.sap.corp&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
&gt; <br>
&gt; The technique you want to use is called Dynamic parallel processing. It
allows you to dynamically create a separate step or subflow for each entry in a
multiline container element. You enter the multiline element in the last (?
Other?) tab on a step in the 'Dynamic parallel' section. You then change your
bindings to bind with index.<br>
&gt; <br>
&gt; This technique is covered in the BIT601 training.<br>
&gt; <br>
&gt; Hope this helps,<br>
&gt; <br>
&gt; Regards,<br>
&gt; <br>
&gt; Mark<br>
&gt; <br>
&gt; From: sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] On Behalf
Of Mamtha Bhanam<br>
&gt; Sent: 24 May 2010 12:49<br>
&gt; To: sap-wug@mit.edu<br>
&gt; Subject: Help required in designing a workflow template<br>
&gt; <br>
&gt; Hi All,<br>
&gt; <br>
&gt; I need to design a workflow template where in the approvers list and steps
are sent to a import parameter of a class based on the import values I need to
trigger a workflow.In the import struucture there are 9 fields COMPANY
CODE,STEP,FLAG and AGENT1 to AGENT6.In the below table if the field FLAG is X
mean the WF should complete only after all the decissions are completed not as
hirarchy .In other words all the agents should take a decission,anyone can take
decission anytime and Workitem text should be unique for all the agents.In the
workitem text Agent name and id should be displayed.If the Flag is not X one
decission is enough to complete the workflow here also workitem text should be
unique.<br>
&gt; <br>
&gt; Company Code<br>
&gt; <br>
&gt; Step<br>
&gt; <br>
&gt; Flag<br>
&gt; <br>
&gt; Agent1<br>
&gt; <br>
&gt; Agent2<br>
&gt; <br>
&gt; Agent3<br>
&gt; <br>
&gt; Agent4<br>
&gt; <br>
&gt; Agent5<br>
&gt; <br>
&gt; Agent6<br>
&gt; <br>
&gt; 0001<br>
&gt; <br>
&gt; 1<br>
&gt; <br>
&gt; X<br>
&gt; <br>
&gt; USDZ5233<br>
&gt; <br>
&gt; USDZ5454<br>
&gt; <br>
&gt; USDZ5687<br>
&gt; <br>
&gt; USDZ5702<br>
&gt; <br>
&gt; USDZ5988<br>
&gt; <br>
&gt; USDZ5103<br>
&gt; <br>
&gt; 0001<br>
&gt; <br>
&gt; 2<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; USDZ5***<br>
&gt; <br>
&gt; USDZ5***<br>
&gt; <br>
&gt; USDZ5***<br>
&gt; <br>
&gt; USDZ5***<br>
&gt; <br>
&gt; USDZ5***<br>
&gt; <br>
&gt; USDZ5***<br>
&gt; <br>
&gt; BP01<br>
&gt; <br>
&gt; 1<br>
&gt; <br>
&gt; X<br>
&gt; <br>
&gt; US******<br>
&gt; <br>
&gt; US******<br>
&gt; <br>
&gt; US******<br>
&gt; <br>
&gt; US******<br>
&gt; <br>
&gt; US******<br>
&gt; <br>
&gt; US******<br>
&gt; <br>
&gt; BP01<br>
&gt; <br>
&gt; 2<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; US******<br>
&gt; <br>
&gt; US******<br>
&gt; <br>
&gt; US******<br>
&gt; <br>
&gt; US******<br>
&gt; <br>
&gt; US******<br>
&gt; <br>
&gt; US******<br>
&gt; <br>
&gt; Bp01<br>
&gt; <br>
&gt; 3<br>
&gt; <br>
&gt; X<br>
&gt; <br>
&gt; US******<br>
&gt; <br>
&gt; US******<br>
&gt; <br>
&gt; US******<br>
&gt; <br>
&gt; US******<br>
&gt; <br>
&gt; US******<br>
&gt; <br>
&gt; US******<br>
&gt; <br>
&gt; <br>
&gt; My ideas in achieving this requirement are:<br>
&gt; <br>
&gt; 1) If flag = X. Create step fork with multiple branches and put the fork
inside the loop.Create a variable counter and pass the value of the agents
list.If 4 Agents set the counter to 4 and loop until the value is
reached.Please correct me if my design is wrong.<br>
&gt; 2) If flag is not equal to X. This should be a normal approval process if
1 takes the decission the workitem will be disappeared from the others inbox.I
need assistance in Workitem text handling.How to send unique text???<br>
&gt; 3) For agent assigment I have created a multiline element AGENTS with
char14 datatype and calling this structure choosing EXPRESSION option under
Agent assigment for decission task.Please correct me if I am wrong.<br>
&gt; <br>
&gt; I request your inputs in achieving this requirement.Thanks in advance.<br>
&gt; <br>
&gt; With Regards,<br>
&gt; Mamtha<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL:
http://mailman.mit.edu/pipermail/sap-wug/attachments/20100524/1016d6db/attachment.htm<br>
&gt; <br>
&gt; ------------------------------<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; SAP-WUG mailing list<br>
&gt; SAP-WUG@mit.edu<br>
&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
&gt; <br>
&gt; <br>
&gt; End of SAP-WUG Digest, Vol 66, Issue 65<br>
&gt; ***************************************<o:p></o:p></span></p>

<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Hotmail
is redefining busy with tools for the New Busy. Get more from your inbox. <a
href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2"
target="_new">See how.</a><o:p></o:p></span></p>

</div>

</body>

</html>