Is SAP user part of a org.unit?

de Valensart Schoenmaeckers, Patrick deValensartSchoenmaeckers.Patrick at pmintl.ch
Mon Feb 4 06:04:30 EST 2002


Torsten,
 
You can try to use function RH_GET_STRUCTURE.
Here is an example :
 
1. Data declaration :
 
data : user like wfsyst-agent.
data : actor_tab like swhactor occurs 0 with header line.
swc_container rolecont.
 
2. Function call :
 
swc_set_element rolecont 'OTYPE' space.
swc_set_element rolecont 'OBJID' space.
swc_set_element rolecont 'Org_Agent' user. "E.g. if username is TSCHNORP,
user must be filled with USTSCHNORP
call function 'RH_GET_STRUCTURE'
    exporting
         act_wegid       = 'SAP_HOLD'
     tables
          actor_tab       = actor_tab
          ac_container    = rolecont
     exceptions
          nobody_found    = 1
          no_active_plvar = 2
          others          = 3.
 
Actor_tab will return a list of positions on which the user is assigned.
You can also use the same function e.g to find a user assigned to a
position. You have then to use another evaluation path (act_wegid).
Evaluation path are defined via transaction ooaw.
 
I guess this will help.
 
Kind regards,
 
Patrick
 
 
-----Original Message-----
From: Torsten Schnorpfeil [mailto:torsten at processflow.de]
Sent: Monday, February 04, 2002 11:53 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Is SAP user part of a org.unit?
 
 
Hi folks,
 
can anybody give me an advice how to figure out if a SAP User is part of
a org. unit or position? Is there any function module I can use?
 
Any hint is highly appreciated!
 
Regards,
Torsten
 


More information about the SAP-WUG mailing list