cancel
Showing results for 
Search instead for 
Did you mean: 

Higher level Org Chief........

Former Member
0 Kudos

Hello everyone,

My requirement goes like this----

Suppose for an organization, Org. Chief is not maintained, next higher level Org.unit Chief should be fetched.

EX: 10000002 Org.Unit Reports to 10000001 Org.Unit

i.e 'O' 10000002 A002 'O' 10000001

There is no org.chief for 10000002 Org.unit i.e

'O' 10000002 B012 does not exist and there exists a relationship such that

'O' 10000001 B012 'S' 30000015.

Now when i execute that function module with Object type as 'O' and org.Unit as 1000002 with relationship B012, it should get me 'S' 30000015.

Is there any function module which will help me in getting the required?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Check the FM - 'RH_STRUC_GET '

Pass the evaluation Path to this function Module.

Regards,

Manoj.

Answers (3)

Answers (3)

Former Member
0 Kudos

thanx all for your replies....

Former Member
0 Kudos

yes manoj for example when call the function with objid as 10000002 and relation as B012, i am getting an error as Relation O 10000002 B012 does not exist...

i can get the higher org unit and then b012 for it, thats not a problem if i go by logic in coding.

What i want is to know that whether is there any function module that will directly give the next higher related object ID?

suresh_datti
Active Contributor
0 Kudos

You can use the function module RH_STRUC_GET with the eval path O-S-P & start with highest Org Unit in the structure.. the result will get you the entire structure all the way down with the Positions & Holders..

~Suresh

Former Member
0 Kudos

Thanks for that Manoj but it did not work.

Former Member
0 Kudos

Hi Satya,

what error you are getting?

Regards,

Manoj.