<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:st1="urn:schemas-microsoft-com:office:smarttags" 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 11 (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]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
font-face
        {font-family:"Monotype Corsiva";}
font-face
        {font-family:Kendaia;}
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Monotype Corsiva";
        panose-1:3 1 1 1 1 2 1 1 1 1;}
@font-face
        {font-family:Kendaia;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {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";}
span.emailstyle18
        {font-family:Arial;
        color:navy;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I implemented this as a Check function
module. When I test the actual function module, it raises an exception
when it should. But, after I update SWETYPV with the check function
module and then I create the event, the check function module does not have any
errors and the workflow is started.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Any one have any advice?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>Regards, <o:p></o:p></span></font></p>
<p class=MsoNormal><b><i><font size=5 color=blue face="Monotype Corsiva"><span
style='font-size:18.0pt;font-family:"Monotype Corsiva";color:blue;font-weight:
bold;font-style:italic'>Sue T. Doughty</span></font></i></b><b><i><font size=5
color=blue face=Kendaia><span style='font-size:18.0pt;font-family:Kendaia;
color:blue;font-weight:bold;font-style:italic'> <br>
</span></font></i></b><font size=1 color=navy><span style='font-size:7.5pt;
color:navy'>SAP Workflow Specialist<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=green face="Times New Roman"><span
style='font-size:7.5pt;color:green'>OLD DOMINION FREIGHT LINE, INC.<o:p></o:p></span></font></p>
<p class=MsoNormal><st1:address tabIndex="0"
style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"
w:st="on"><st1:Street w:st="on"><font size=1 color=navy face="Times New Roman"><span
style='font-size:8.0pt;color:navy'>500 Old Dominion Way</span></font></st1:Street><font
size=1 color=navy><span style='font-size:8.0pt;color:navy'>, <st1:City w:st="on">Thomasville</st1:City>,
<st1:State w:st="on">NC</st1:State> <st1:PostalCode w:st="on">27360</st1:PostalCode></span></font></st1:address><font
size=1 color=navy><span style='font-size:8.0pt;color:navy'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face="Times New Roman"><span
style='font-size:7.5pt;color:navy'>Toll Free :(800)432-6335, ext.5189</span></font><font
size=1 color=navy face=Arial><span style='font-size:8.0pt;font-family:Arial;
color:navy'> <br>
</span></font><font size=1 color=navy><span style='font-size:8.0pt;color:navy'>Phone
:(336)822-5189 Fax :(336)822-5149</span></font><font size=1 color=navy
face=Arial><span style='font-size:8.0pt;font-family:Arial;color:navy'> <br>
</span></font><span class=MsoHyperlink><u><font size=1 color=blue><span
style='font-size:8.0pt'><a href="mailto:sue.doughty@odfl.com">sue.doughty@odfl.com</a></span></font><o:p></o:p></u></span></p>
</div>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <b><span style='font-weight:bold'>On Behalf Of
</span></b>Alon Raskin<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, October 19, 2006
10:07 AM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">SAP
Workflow Users' Group</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: Checking for
duplicate WFs for an Applicant object</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div id=idOWAReplyText81541>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'>Hi Sue,</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Use Function Module SAP_WAPI_WORKITEMS_TO_OBJECT. I haven't
used it but I think it will do the trick.</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>To prevent superfluous triggering, you should implement this
in a Check Function Module rather then the workflow itself.</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
</div>
<div id=idSignature32507>
<div>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Alon</span></font><o:p></o:p></p>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabIndex=-1>
</span></font></div>
<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
sap-wug-bounces@mit.edu on behalf of Sue Doughty<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thu 10/19/2006 09:44<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">SAP
Workflow Users' Group</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Checking for duplicate
WFs for an Applicant object</span></font><o:p></o:p></p>
</div>
</div>
<div>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>We are on 4.7, 620.</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>We have a workflow that begins when an
Applicant/application is created (via an event). Our users have a
tendency of creating additional applications (which creates additional
workflows) when they don’t see the first workflow right away. I
want to add a step to the beginning of the Applicant workflow that checks to
see if a workflow has already been started (and is active) for an
applicant. If there is already an active workflow, then I’ll
complete the current workflow.</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I need to create a method that reads all
workflows for the applicant object (like SWI6). Is there a function
module that does this? What is the best way to determine if a duplicate
workflow has been started for an applicant?</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Any help would be greatly appreciated.</span></font><o:p></o:p></p>
<div>
<p><font size=2 color=navy face="Times New Roman"><span style='font-size:10.0pt;
color:navy'>Regards,</span></font><font color=navy face=Arial><span
style='font-family:Arial;color:navy'> </span></font><o:p></o:p></p>
<p class=MsoNormal><b><i><font size=5 color=blue face="Monotype Corsiva"><span
style='font-size:18.0pt;font-family:"Monotype Corsiva";color:blue;font-weight:
bold;font-style:italic'>Sue T. Doughty</span></font></i></b><b><i><font size=5
color=blue face=Kendaia><span style='font-size:18.0pt;font-family:Kendaia;
color:blue;font-weight:bold;font-style:italic'> <br>
</span></font></i></b><font size=1 color=navy><span style='font-size:7.5pt;
color:navy'>SAP Workflow Specialist</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=1 color=green face="Times New Roman"><span
style='font-size:7.5pt;color:green'>OLD DOMINION FREIGHT LINE, INC.</span></font><o:p></o:p></p>
<p class=MsoNormal><st1:address w:st="on"><st1:Street w:st="on"><font size=1
color=navy face="Times New Roman"><span style='font-size:8.0pt;color:navy'>500
Old Dominion Way</span></font></st1:Street><font size=1 color=navy><span
style='font-size:8.0pt;color:navy'>, <st1:City w:st="on">Thomasville</st1:City>,
<st1:State w:st="on">NC</st1:State> <st1:PostalCode w:st="on">27360</st1:PostalCode></span></font></st1:address><o:p></o:p></p>
<p class=MsoNormal><font size=1 color=navy face="Times New Roman"><span
style='font-size:7.5pt;color:navy'>Toll Free :(800)432-6335, ext.5189</span></font><font
size=1 color=navy face=Arial><span style='font-size:8.0pt;font-family:Arial;
color:navy'> <br>
</span></font><font size=1 color=navy><span style='font-size:8.0pt;color:navy'>Phone
:(336)822-5189 Fax :(336)822-5149</span></font><font size=1 color=navy
face=Arial><span style='font-size:8.0pt;font-family:Arial;color:navy'> <br>
</span></font><span class=MsoHyperlink><u><font size=1 color=blue><span
style='font-size:8.0pt'><a href="mailto:sue.doughty@odfl.com">sue.doughty@odfl.com</a></span></font></u></span><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
</div>
</body>
</html>