How to dynamically find the responsible agents..

Munday,Sherie J. MUNDAYSJ at airproducts.com
Wed Jul 29 08:55:52 EDT 2009


Ramki,
Thank you.  That did it.  The ACTOR_CONTAINER holds the responsible
elements.  I was missing that piece.  It is working great now!!
Regards,
Sherie


-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Ramki Maley
Sent: Tuesday, July 28, 2009 5:25 PM
To: SAP Workflow Users' Group
Subject: Re: How to dynamically find the responsible agents..

Sherie,

You only need to pass the ACT_OBJECT & ACTOR_CONTAINER parameters to the

FM. As mentioned by Sue, you would get back the agents in ACTOR_TAB 
table. you can comment out all other parameters. Create the method 
container exactly same as your rule container and you can then possibly 
pass the method container directly to the function module. You would do 
the WF to task binding for the new task same as the rule binding of the 
actual step that uses the rule.

Cheers,
Ramki


Munday,Sherie J. wrote:
> 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
> 
> 
>
------------------------------------------------------------------------
> 
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug




More information about the SAP-WUG mailing list