<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]-->
<title>How to dynamically find the responsible agents..</title>
<style>
<!--
/* Font Definitions */
@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:"Monotype Corsiva";
        panose-1:3 1 1 1 1 2 1 1 1 1;}
/* 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;
        font-family:"Arial","sans-serif";
        color:navy;}
span.EmailStyle20
        {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.25in 1.0in 1.25in;}
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'>Susan & Ramki,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thank you. <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Forgive my ignorance, as I am a workflow developer but not a
very proficient programmer. I can create a method based on the function
module RH_RESOLVE_RESPONSIBILITIES, but how do I feed in the specific
responsibilities? The ACT_OBJECT (the role) would be AC90200018 and the
ACT_PLVAR (the plan version) would be 01. But what would the ACT_OTYPE
and ACT_OBJID be? Are these the responsibilities? I have 3 elements,
the combination of which makes up the responsibility. For example…
one responsibility on the role would be (Geography) NA, (Business) APEC, and
(Domain) HARDGOODS. How do I feed these to ensure that the function
module resolves the proper responsibility?<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thank You for your patience!!<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Sherie<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>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<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>Sue
Doughty<br>
<b>Sent:</b> Tuesday, July 28, 2009 4:01 PM<br>
<b>To:</b> SAP Workflow Users' Group<br>
<b>Subject:</b> RE: How to dynamically find the responsible agents..<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Hi Sherie,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>What I do to get the agents for a rule is to execute a method I
created in the Business object that calls RH_GET_ACTORS. The ACT_OBJECT
is the rule number. Then I read all the entries in the table and keep
only the ‘US’ ones. The result (table) is the input to the
next step which is the decision step. If the deadline passes, then I send
a notification to the output of the method I used to get the users for the
rule.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>*Get Payroll agents based on Rule 90100006 <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>ALL FUNCTION 'RH_GET_ACTORS'
<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'> DESTINATION
destn
<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'> EXPORTING
<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
ACT_OBJECT
= 'AC90100006' <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'> TABLES
<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
ACTOR_CONTAINER =
lt_container <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
ACTOR_TAB
= lt_agents <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'> EXCEPTIONS
<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
NO_ACTIVE_PLVAR =
1 <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
NO_ACTOR_FOUND
= 2 <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'> EXCEPTION_OF_ROLE_RAISED =
3 <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'> NO_VALID_AGENT_DETERMINED =
4 <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>
OTHERS
= 5. <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>Regards,</span><span style='color:navy'><o:p></o:p></span></p>
<p class=MsoNormal><em><b><span style='font-size:18.0pt;font-family:"Monotype Corsiva";
color:green'>Sue T. Doughty</span></b></em><span style='color:navy'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:navy'>SAP Workflow Specialist</span><span style='color:navy'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:navy'>Old Dominion Freight Line, Inc.</span><span style='color:navy'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:navy'>500 Old Dominion Way</span><span style='color:navy'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:navy'>Thomasville, NC 27360</span><span style='color:navy'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:navy'>Phone: (336) 822-5189</span><span style='color:navy'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:navy'>Toll Free (800 ) 432-6335, ext. 5189</span><span style='color:navy'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:navy'>Email: </span><a href="mailto:sue.doughty@odfl.com"><span
style='font-size:7.5pt;font-family:"Arial","sans-serif"'>sue.doughty@odfl.com</span></a><o:p></o:p></p>
</div>
<div>
<div class=MsoNormal align=center style='text-align:center'>
<hr size=2 width="100%" align=center>
</div>
<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>Munday,Sherie
J.<br>
<b>Sent:</b> Tuesday, July 28, 2009 1:51 PM<br>
<b>To:</b> SAP Workflow Users' Group<br>
<b>Subject:</b> How to dynamically find the responsible agents..</span><o:p></o:p></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p><span style='font-family:"Calibri","sans-serif"'>Hi Wuggers Extraordinaire,</span><o:p></o:p></p>
<p><span style='font-family:"Calibri","sans-serif"'>I am</span> <span
style='font-family:"Calibri","sans-serif"'>stuck and can’t seem to find
the answer. I need to find the responsible agents for a step before it
has been acted upon. As a deadline action, we wish to send an outlook
email to all the responsible agents for the step if they have not acted in a
certain amount of time. </span> <span style='font-family:"Calibri","sans-serif"'>The
agents are determined by a</span> <span style='font-family:"Calibri","sans-serif"'>responsibility
role/rule. </span> <span style='font-family:"Calibri","sans-serif"'>So how
do I get access to those userids that workflow has determined are</span> <span
style='font-family:"Calibri","sans-serif"'>responsible agents? If it is
possible to do it with BOT’s , I would prefer that since I am not much of
a programmer. </span> <o:p></o:p></p>
<p><span style='font-family:"Calibri","sans-serif"'>Thanks in advance for all
suggestions!</span><o:p></o:p></p>
<p><span style='font-family:"Calibri","sans-serif"'>Regards,</span><o:p></o:p></p>
<p><span style='font-family:"Calibri","sans-serif"'>Sherie</span><o:p></o:p></p>
</div>
</body>
</html>