cancel
Showing results for 
Search instead for 
Did you mean: 

How to Get Vacant Position in Organization Unit (My Level and 1-Lvl Down)?

Former Member
0 Kudos

Anyone knows how?

Can I use RH_STRUC_GET or RH_STRUC_GET_MULTIPLE_ROOTS for this purpose?

If can, can you provide me code to implement?

Edited by: Shreya Eknath on Feb 25, 2009 9:44 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

To get the vacant positions under your level.

then use this report and pass the RHVOPOS0.

in this report pass the Evaluation Path(Create the Evaluation path occordingly)

and display depth as 1 or 2.

if you are looking for function modules check the same report you will get some function modules.

but even for that use need have evaluation path to resolve (my level and 1 level down)

Former Member
0 Kudos

May I know how the select statement should looks like for getting the vacant position in my org unit and 1 level down of me?

I need to create Select Statement.

Former Member
0 Kudos

You cant do this thru select statement you need to get it thru function module.

Former Member
0 Kudos

hi..you have your position or pernr...

go to IT0001 ..you will get org unit for that in orgeh field..

type : begin of ttt

orgeh type OBJID,

end of ttt.

type : begin of ttt1

orgeh type OBJID,

sobid type sobid,

end of ttt1.

data:

itab type table of ttt,

wa type ttt,

itab1 type table of ttt,

wa1 type ttt,

itab2 type table of ttt1,

wa2 type tt1t.

then

select sobid from hrp1001 into table itab

where plvar = 01

OTYPE = o

OBJID = orgeh(found from 0001)

rsign = b

relat = 002.

this will give you all the org units in the given org unit one level below

now append the base org unit too in the internal table..

wa-orgeh = orgeh(found from 0001).

append wa into itab.

now

select sobid from hrp1001 into table itab1

for all entries in itab

where objid = itab-orgeh

OTYPE = o

where plvar = 01

rsign = b

relat = 003.

this will give you all the position in your org unit and all org unit in one level below.

select objid sobid from hrp1001 into table itab2

for all entries in itab1

where objid = itab1-orgeh

OTYPE = s

where plvar = 01

rsign = a

relat = 008.

this table will fill fill all the position foun above with the holder if abavialble..

so you can loop at itab2 and see which positiin are vacant

Former Member
0 Kudos

Hi,

Check S_AHR_61016509.

Cheers,

DF