Manager of user

ritatimmons ritatimmons at swbell.net
Thu Feb 26 12:15:53 EST 2004


format USWF-MGR1 (for example).  Instead of calling SWX_GET_MANAGER
directly, I am calling the role AC00000168.  It is working okay for me.
Org_object has the value USRGRADIG for example and ac_agents returns the
manager in the format USWF-MGR1.
 
 swc_get_element ac_container 'ORG_OBJECT' org_object.
 
* call the rule to find the manager
* Note our rule id is number 90000001 - so the technical id of the
* rule is AC90000001.
* The list of agents will be returned in table ac_agents.
 call function 'RH_GET_ACTORS'
      exporting
           act_object                = 'AC00000168'
      tables
           actor_container           = ac_container
           actor_tab                 = ac_agents
      exceptions
           no_active_plvar           = 1
           no_actor_found            = 2
           exception_of_role_raised  = 3
           no_valid_agent_determined = 4
           others                    = 5.
 if sy-subrc <> 0.
* message....
 endif.
 
Maybe this will help?
 
Regards,
Rita
 
 
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU]On Behalf Of
Rick Sample
Sent: Thursday, February 26, 2004 10:57 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Manager of user
 
 
I just tried the  SWX_GET_MANAGER FM.
I set the AC_CONTAINER as so.
 
AC_CONTAINER 'ORG_AGENT' 'USSAMPLRL'. "ORG_OBJECT.
AC_CONTAINER 'OTYPE' 'US'.      "ORG_TYPE.
AC_CONTAINER 'OBJID' 'SAMPLRL'. "ORG_ID.
 
Still returns a position. Not a UserID.
Am I passing in something wrong?
 
 
 
>>> Patrick.DeValensartSchoenmaeckers at pmintl.com 2.26.2004 9:45:12 AM >>>
Rick,
 
I just tried and SWX_GET_MANAGER returns well a username. If you look at the
code of the FM, you will see that it calls two others
FM's:RH_ACT_LEADING_POSITION to get the manager's position, and then from
there it uses RH_STRUC_GET with evaluation path SAP_TAGT to give you the
corresponding users.
Hope this helps.
 
Patrick
 
-----Original Message-----
From: Rick Sample [mailto:Rick.Sample at gbe.com]
Sent: Thursday, February 26, 2004 4:17 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Manager of user
 
I know of SWX_GET_MANAGER. It return a position.
Then I would have to find the users USRID. Just trying to get it in one
call.
I was just checking to make sure I didn't miss something.
Time to stop what I am doing and role my own *sigh*.
 
We are in 4.6C. Going forward, if anyone knows of a FM that will do this
please let me know so I can document. Or if SWX_GET_MANAGER is
getting deprecated.
 
Thanks!
 
 
 
>>> kjetilk at statoil.com 2.26.2004 8:44:11 AM >>>
There is a role which returns the position of the manager of a user, so in
two calls (find manager position, find position user) you can make it.
Or you could just define your own evaluation path and use that. Maybe that
is the best solution.
--
Kjetil Kilhavn
 
 
 
 
 
                    Rick Sample
                    <Rick.Sample at gbe.com        To:
SAP-WUG at MITVMA.MIT.EDU
                    >                           cc:     (bcc: Kjetil
Kilhavn)
                    Sent by: SAP                Subject:     Manager of user
                    Workflow
                    <Owner-SAP-WUG at MITVM
                    A.MIT.EDU>
 
 
                    26.02.2004 15:32
                    Please respond to
                    "SAP Workflow Users'
                    Group"
 
 
 
 
 
 
Looking for an SAP FM to return a users manager.
Passing in user's name USUSER and returning managers users id USMANAGER.
 
We are on 4.6c
 
 
 
 
-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.
Thank you.
 


More information about the SAP-WUG mailing list