on 09-22-2006 6:23 PM
Hi
Does any one know any function module to get the org unit one level up by giving the current Organizational unit as input. Please reply very urgent.
You can use RH_STRUC_GET or use the following piece of code..
data w_sobid type sobid.
parameters:p_objid like hrp1001-objid
select sobid into w_sobid
up to 1 rows
from HRP1001
where otype = 'O'
and objid = p_objid
and plvar = '01'
and istat = 1
and rsign = 'A'
and relat = '002'
and begda le sy-datum
and endda ge sy-datum.
endselect.
if sy-subrc ne 0.
write: / w_sobid.
endif.
~Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.