Rule using function module SWX_GET_MANAGER

Paul Batey paul.batey at intelligroup.com.au
Thu Apr 22 18:52:07 EDT 2004


If you create a rule similar to 168 but in addition to passing in the
initiator, pass in a parameter to specify the number of levels you wish
to go up the food chain then you get who you want.  Use a workflow
container element to specify the number of levels, starting at 1.
Therefore using your 168 copy the approver of the first step will be
WF_INITIATOR's manager.  Increment your counter, then step two will go
to WF_INITIATORS's manager's manager.
 
Alternatively to make things easier:
 
Pass back WI_ACTUAL_AGENT from the first approval task to the workflow
container, then pass this element into the standard 168 rule for the
second approval.  However, if WI_ACTUAL_AGENT is a substitute for the
initiator's real manager, you might not get the right result.
 
Cheers,
 
Paul
 
 
 
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU] On Behalf Of
Jim D Hill
Sent: Friday, 23 April 2004 3:55 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Rule using function module SWX_GET_MANAGER
 
My problem is putting the results into a container after the rule runs.
The
rule
only allows imports correct ?  I need a way to hold onto that agent to
use
later
on in the workflow.
 
JdH
 
 
 
 
Paul Batey <paul.batey at intelligroup.com.au>@MITVMA.MIT.EDU> on
04/21/2004
08:35:45 PM
 
Please respond to "SAP Workflow Users' Group" <SAP-WUG at MITVMA.MIT.EDU>
 
Sent by:    SAP Workflow <Owner-SAP-WUG at MITVMA.MIT.EDU>
 
 
To:    SAP-WUG at MITVMA.MIT.EDU
cc:
bcc:
Subject:    Re: Rule using function module SWX_GET_MANAGER
 
 
I would suggest creating your own rule FM.  In addition to the imports
for the org objects, add another container element for levels up.  Then
in your function loop the call to SWX_GET_MANAGER "levels" times.  This
would get rid of the need for nasty background steps.
 
Cheers,
 
Paul
 
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU] On Behalf Of
Jim D Hill
Sent: Thursday, 22 April 2004 1:36 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Rule using function module SWX_GET_MANAGER
 
The problem I am having is moving the manager from the rule back to the
work flow.
Since we are not using version 6.X or above I cant move the manager back
in
the _rule_result
container.
 
Thanks,
Jim
 
 
 
 
 
Michael Pokraka <workflow at quirky.me.uk>@MITVMA.MIT.EDU> on 04/21/2004
10:01:41 AM
 
Please respond to "SAP Workflow Users' Group" <SAP-WUG at MITVMA.MIT.EDU>
 
Sent by:    SAP Workflow <Owner-SAP-WUG at MITVMA.MIT.EDU>
 
 
To:    SAP-WUG at MITVMA.MIT.EDU
cc:
bcc:
Subject:    Re: Rule using function module SWX_GET_MANAGER
 
 
Hi Jim,
Really depends on the manager you're looking for. You can either bind
the
actual agent from your first approval back to the workflow and feed that
into the next rule, or you can evaluate them independently.
Option 1 is simple and takes substitution/multiple recipients into
account.
Option 2 requires a custom method (FM RH_GET_ACTORS) and two background
steps.
Cheers
Mike
 
Jim D Hill wrote:
> I am using the rule 00000168 which takes a user and finds his or her
> manager.
> using the function module SWX_GET_MANAGER.  This workflow is a 2 step
> approval process and I need to find not only the initiator manager but
his
> managers
> manager. So I need to pass the first manager back to the workflow
before
> going to the
> next approval step. Can anyone tell me if this is possible ?
>
>
> thanks,
> Jim
>
 >
 
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.638 / Virus Database: 409 - Release Date: 21/03/2004
 
 
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.638 / Virus Database: 409 - Release Date: 21/03/2004
 
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.638 / Virus Database: 409 - Release Date: 21/03/2004
 
 
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.638 / Virus Database: 409 - Release Date: 21/03/2004
 


More information about the SAP-WUG mailing list