on 02-25-2009 1:44 AM
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
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi,
Check S_AHR_61016509.
Cheers,
DF
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.