<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>Trying to find top-level org unit</TITLE>
</HEAD>
<BODY>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">I've got an org structure like =
this:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Org unit 50000000 (top-level)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">|__Org unit 50000001</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">|__Org unit 50000002</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">|__Org unit 50000003</FONT>
</P>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">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?&nbsp; Is there a database select statement to one of the =
HRP* tables or a function module that will give me the info?</FONT></P>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Brad</FONT>
</P>
 
</BODY>
</HTML>