WG: Trying to find top-level org unit

Knuth, Bernhard bernhard.knuth at sap.com
Wed Jan 17 01:57:38 EST 2001


Sorry, I was not reading your question well enough.  In order to find =
the
top-level org.id use evaluation path 'A002'.  If it raises =
'NO_ENTRY_FOUND'
you can be sure that no A002 ('reports_to'-relationship) is found.=20
=20
Some customers use other relationships than A/B002 for building the
org.-structure.  Make sure to use an appropriate evaluation path in =
this
case.  A002 searches the structure upwards, ORGEH goes downwards. =
Training
course HR530 gives all technical details of handling org.-structures.
=20
Regards,
Bernhard
=20
P.S.: RH_GET_STRUCTURE is based on RH_STRUC_GET.  I think it is a bit =
easier
to use.
=20
 -----Urspr=FCngliche Nachricht-----
Von: Knuth, Bernhard=20
Gesendet: Mittwoch, 17. Januar 2001 07:20
An: 'SAP Workflow Users' Group'
Betreff: AW: Trying to find top-level org unit
 
 
Brad,
=20
try RH_STRUC_GET with ACT_OTYPE =3D 'O', ACT_OBJID =3D '50000000', and =
ACT_WEGID
=3D 'ORGEH' (evaluation path in org. management).  You will find the =
LEVEL in
RESULT_STRUC.
=20
You should always use function modules accessing HRP* instead of a =
SELECT.
You will find them in RHDB starting with RH_READ_INFTY*.
=20
Regards,
Bernhard Knuth
BPT Consulting and Integration
SAP Walldorf
=20
-----Urspr=FCngliche Nachricht-----
Von: Rakesh Dube [mailto:rakesh_dube at pacific.net.sg]
Gesendet: Mittwoch, 17. Januar 2001 03:11
An: SAP-WUG at MITVMA.MIT.EDU
Betreff: Re: Trying to find top-level org unit
 
 
Hi Brad,=20
U have to write  recursive function module to find out the top-level =
org
unit.=20
 
Tables  which is using the relationship is HRP1000 and HRP1001=20
 
 
HRP1000 is for creating the structure and HRP1001 is for relationship =
to the
object=20
 
 
If u need any further detail let me know=20
Thanks=20
Rakesh=20
 =20
 =20
 
 
"Schroeter, Brad" wrote:=20
 
 
 =20
 
I've got an org structure like this:=20
Org unit 50000000 (top-level)=20
|__Org unit 50000001=20
|__Org unit 50000002=20
|__Org unit 50000003=20
 
 
Let's say I'm currently using org unit 50000000, I'm in a custom method =
and
I want to find if it's the top-level?  Is there a database select =
statement
to one of the HRP* tables or a function module that will give me the =
info?=20
 
 
Thanks,=20
Brad
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20010117/22e75411/attachment.htm


More information about the SAP-WUG mailing list