Trying to find top-level org unit
Dart, Jocelyn
jocelyn.dart at sap.com
Wed Jan 17 01:04:10 EST 2001
Hi Brad/Rakesh,
One option would be to use function module RH_GET_STRUCTURE and the
evaluation path that's used
to determine the next-level-up org structure. If you don't find a
next-level-up, you've hit the top.
A bit neater than working out the table calls yourself - especially if you
don't do a lot of HR coding.
Try talking to an HR programmer as they may have other helpful function
modules to suggest.
Regards,
Jocelyn Dart
Consultant (BBP, Ecommerce, Internet Transaction Server, Workflow)
SAP Australia
Email jocelyn.dart at sap.com <mailto:jocelyn.dart at sap.com>
Tel: +61 412 390 267
Fax: +61 2 9935 4880
-----Original Message-----
From: Rakesh Dube [mailto:rakesh_dube at pacific.net.sg]
Sent: Wednesday, 17 January 2001 1:11 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Trying to find top-level org unit
Hi Brad,
U have to write recursive function module to find out the top-level org
unit.
Tables which is using the relationship is HRP1000 and HRP1001
HRP1000 is for creating the structure and HRP1001 is for relationship to the
object
If u need any further detail let me know
Thanks
Rakesh
"Schroeter, Brad" wrote:
I've got an org structure like this:
Org unit 50000000 (top-level)
|__Org unit 50000001
|__Org unit 50000002
|__Org unit 50000003
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?
Thanks,
Brad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20010117/dadab64b/attachment.htm
More information about the SAP-WUG
mailing list