How to dynamically find the responsible agents..

Munday,Sherie J. MUNDAYSJ at airproducts.com
Tue Jul 28 16:20:42 EDT 2009


Susan & Ramki,

Thank you.  

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?

Thank You for your patience!!

Sherie

 

 

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Sue Doughty
Sent: Tuesday, July 28, 2009 4:01 PM
To: SAP Workflow Users' Group
Subject: RE: How to dynamically find the responsible agents..

 

Hi Sherie,

 

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.

 

*Get Payroll agents based on Rule 90100006    

ALL FUNCTION 'RH_GET_ACTORS'                 

 DESTINATION destn                           

 EXPORTING                                   

   ACT_OBJECT                = 'AC90100006'  

 TABLES                                      

   ACTOR_CONTAINER           = lt_container  

   ACTOR_TAB                 = lt_agents     

 EXCEPTIONS                                  

   NO_ACTIVE_PLVAR           = 1             

   NO_ACTOR_FOUND            = 2             

   EXCEPTION_OF_ROLE_RAISED  = 3             

   NO_VALID_AGENT_DETERMINED = 4             

   OTHERS                    = 5.            

 

Regards,

Sue T. Doughty

SAP Workflow Specialist

Old Dominion Freight Line, Inc.

500 Old Dominion Way

Thomasville, NC 27360

Phone:  (336) 822-5189

Toll Free (800 ) 432-6335, ext. 5189

Email:  sue.doughty at odfl.com <mailto:sue.doughty at odfl.com> 

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Munday,Sherie J.
Sent: Tuesday, July 28, 2009 1:51 PM
To: SAP Workflow Users' Group
Subject: How to dynamically find the responsible agents..

 

Hi Wuggers Extraordinaire,

I am 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.
The agents are determined by a responsibility role/rule.  So how do I
get access to those userids that workflow has determined are responsible
agents?  If it is possible to do it with BOT's , I would prefer that
since I am not much of a programmer.  

Thanks in advance for all suggestions!

Regards,

Sherie

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20090728/a7229774/attachment.htm


More information about the SAP-WUG mailing list