<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>> From: sap-wug-request@mit.edu<br>> Subject: SAP-WUG Digest, Vol 66, Issue 65<br>> To: sap-wug@mit.edu<br>> Date: Mon, 24 May 2010 10:48:22 -0400<br>> <br>> Send SAP-WUG mailing list submissions to<br>>         sap-wug@mit.edu<br>> <br>> To subscribe or unsubscribe via the World Wide Web, visit<br>>         http://mailman.mit.edu/mailman/listinfo/sap-wug<br>> or, via email, send a message with subject or body 'help' to<br>>         sap-wug-request@mit.edu<br>> <br>> You can reach the person managing the list at<br>>         sap-wug-owner@mit.edu<br>> <br>> When replying, please edit your Subject line so it is more specific<br>> than "Re: Contents of SAP-WUG digest..."<br>> <br>> <br>> Today's Topics:<br>> <br>> 1. RE: Check if WF Instance Exists for a Certain Key (Alon Raskin)<br>> 2. Re: Check if WF Instance Exists for a Certain Key (Ali Husain)<br>> 3. RE: Help required in designing a workflow template<br>> (Griffiths, Mark)<br>> <br>> <br>> ----------------------------------------------------------------------<br>> <br>> Message: 1<br>> Date: Mon, 24 May 2010 08:34:18 -0400<br>> From: Alon Raskin <araskin@go3i.com><br>> Subject: RE: Check if WF Instance Exists for a Certain Key<br>> To: "SAP Workflow Users' Group" <sap-wug@mit.edu><br>> Message-ID:<br>>         <7DEF3CA60BA28D4484A482714C1AFA6D03A08EA4D8@3IExchange01.3I-Consulting.loc><br>>         <br>> Content-Type: text/plain; charset="us-ascii"<br>> <br>> What release of SAP are you building this in? Are you using the 'old' persistence schema or the 'new' XML persistence approach?<br>> <br>> Regards,<br>> <br>> Alon Raskin<br>> e: araskin@go3i.com<mailto:araskin@3i-consulting.com><br>> <br>> From: sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] On Behalf Of Ali Husain<br>> Sent: Monday, May 24, 2010 3:13 AM<br>> To: SAP WUG<br>> Subject: Check if WF Instance Exists for a Certain Key<br>> <br>> <br>> Hello WF Experts,<br>> <br>> 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>> <br>> Thanks a lot for your help.<br>> Ali<br>> ________________________________<br>> The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. Get busy.<http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5><br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20100524/299141b0/attachment-0001.htm<br>> <br>> ------------------------------<br>> <br>> Message: 2<br>> Date: Mon, 24 May 2010 13:09:36 +0000<br>> From: Ali Husain <mr_mago40@hotmail.com><br>> Subject: Re: Check if WF Instance Exists for a Certain Key<br>> To: SAP WUG <sap-wug@mit.edu><br>> Message-ID: <BAY130-W12CB6A1E6D81DD12B659348FE70@phx.gbl><br>> Content-Type: text/plain; charset="iso-8859-1"<br>> <br>> <br>> <br>> Hey Pavan,<br>> <br>> That's a very neat FM. Thanks a lot for the help.<br>> Ali<br>> <br>> <br>> > Message: 3<br>> > Date: Mon, 24 May 2010 13:48:46 +0530<br>> > From: Pavan Chand <bpawanchand@gmail.com><br>> > Subject: Re: Check if WF Instance Exists for a Certain Key<br>> > To: "SAP Workflow Users' Group" <sap-wug@mit.edu><br>> > Message-ID:<br>> >         <AANLkTimBtn1Fw1zN8Rx0bg1zXEDJONjK7uhNuFKElAUp@mail.gmail.com><br>> > Content-Type: text/plain; charset="iso-8859-1"<br>> > <br>> > Hi,<br>> > <br>> > You can check it by using the FM SAP_WAPI_WORKITEMS_TO_OBJECT<br>> > <br>> > On Mon, May 24, 2010 at 1:42 PM, Ali Husain <mr_mago40@hotmail.com> wrote:<br>> > <br>> > ><br>> > > Hello WF Experts,<br>> > ><br>> > > I'm triggering an event from an ABAP program for a certain key in the<br>> > > Business Object using the the FM 'SAP_WAPI_CREATE_EVENT'. Is there a way<br>> > > to check in my ABAP program if a WF has already been triggered for this key?<br>> > > The reason for this is that i don't want to re-trigger the WF again for the<br>> > > same key if it has already been triggered.<br>> > ><br>> > > Thanks a lot for your help.<br>> > > Ali<br>> <br>>                                            <br>> _________________________________________________________________<br>> The New Busy is not the old busy. Search, chat and e-mail from your inbox.<br>> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3<br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20100524/c399eaf2/attachment-0001.htm<br>> <br>> ------------------------------<br>> <br>> Message: 3<br>> Date: Mon, 24 May 2010 16:48:18 +0200<br>> From: "Griffiths, Mark" <mark.griffiths@sap.com><br>> Subject: RE: Help required in designing a workflow template<br>> To: "SAP Workflow Users' Group" <sap-wug@mit.edu><br>> Message-ID:<br>>         <C6A64D82E3A5D24B949315CFBC1FA1AD07A1B51389@DEWDFECCR01.wdf.sap.corp><br>> Content-Type: text/plain; charset="us-ascii"<br>> <br>> 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>> <br>> This technique is covered in the BIT601 training.<br>> <br>> Hope this helps,<br>> <br>> Regards,<br>> <br>> Mark<br>> <br>> From: sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] On Behalf Of Mamtha Bhanam<br>> Sent: 24 May 2010 12:49<br>> To: sap-wug@mit.edu<br>> Subject: Help required in designing a workflow template<br>> <br>> Hi All,<br>> <br>> 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>> <br>> Company Code<br>> <br>> Step<br>> <br>> Flag<br>> <br>> Agent1<br>> <br>> Agent2<br>> <br>> Agent3<br>> <br>> Agent4<br>> <br>> Agent5<br>> <br>> Agent6<br>> <br>> 0001<br>> <br>> 1<br>> <br>> X<br>> <br>> USDZ5233<br>> <br>> USDZ5454<br>> <br>> USDZ5687<br>> <br>> USDZ5702<br>> <br>> USDZ5988<br>> <br>> USDZ5103<br>> <br>> 0001<br>> <br>> 2<br>> <br>> <br>> <br>> USDZ5***<br>> <br>> USDZ5***<br>> <br>> USDZ5***<br>> <br>> USDZ5***<br>> <br>> USDZ5***<br>> <br>> USDZ5***<br>> <br>> BP01<br>> <br>> 1<br>> <br>> X<br>> <br>> US******<br>> <br>> US******<br>> <br>> US******<br>> <br>> US******<br>> <br>> US******<br>> <br>> US******<br>> <br>> BP01<br>> <br>> 2<br>> <br>> <br>> <br>> US******<br>> <br>> US******<br>> <br>> US******<br>> <br>> US******<br>> <br>> US******<br>> <br>> US******<br>> <br>> Bp01<br>> <br>> 3<br>> <br>> X<br>> <br>> US******<br>> <br>> US******<br>> <br>> US******<br>> <br>> US******<br>> <br>> US******<br>> <br>> US******<br>> <br>> <br>> My ideas in achieving this requirement are:<br>> <br>> 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>> 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>> 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>> <br>> I request your inputs in achieving this requirement.Thanks in advance.<br>> <br>> With Regards,<br>> Mamtha<br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20100524/1016d6db/attachment.htm<br>> <br>> ------------------------------<br>> <br>> _______________________________________________<br>> SAP-WUG mailing list<br>> SAP-WUG@mit.edu<br>> http://mailman.mit.edu/mailman/listinfo/sap-wug<br>> <br>> <br>> End of SAP-WUG Digest, Vol 66, Issue 65<br>> ***************************************<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>