<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’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> </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 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'> </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> </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>
> 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>
> ***************************************<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>