<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<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 
<style type="text/css">
SPAN {
font-family: "Courier New";
font-size: 12pt;
color: #000000;
background: #FFFFFF;
}
</style>
<span>SAP_WAPI_WORKITEMS_TO_OBJECT</span> 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 "Re: Contents of SAP-WUG digest..."<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: "SAP Workflow Users' Group" &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="us-ascii"<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="iso-8859-1"<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: "SAP Workflow Users' Group" &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="iso-8859-1"<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: "Griffiths, Mark" &lt;mark.griffiths@sap.com&gt;<br>&gt; Subject: RE: Help required in designing a workflow template<br>&gt; To: "SAP Workflow Users' Group" &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="us-ascii"<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; ***************************************<br>                                               <br /><hr />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></body>
</html>