03-19-2009 10:31 AM
Hi Experts,
I want fetch HRP1001-SOBID based on relation between Organization Unit (O) and Business Reporting Unit (ZB) for org.unit.
Here i am using one FM : RH_STRUC_GET .
but any one tell how can i get exactly plz help me.
03-19-2009 10:49 AM
Hi,
Try this FM RH_READ_INFTY_1001 .
MOVE p_objid TO objects-objid.
MOVE 'O' TO objects-otype. ---> or 'ZB' as per your requirement
MOVE '01' TO objects-plvar.
APPEND objects.
In case you want both you can add ZB also
MOVE p_objid TO objects-objid.
MOVE 'ZB' TO objects-otype.
MOVE '01' TO objects-plvar.
APPEND objects.
CALL FUNCTION 'RH_READ_INFTY_1001'
EXPORTING
authority = ' '
with_stru_auth = ' '
istat = '1'
subty = l_subty -> no subtype pass blank
begda = p_begda
endda = p_endda
adata = ' '
TABLES
i1001 = i1001
objects = objects
EXCEPTIONS
nothing_found = 1
wrong_condition = 2
OTHERS = 3.
Edited by: Avinash Kodarapu on Mar 19, 2009 4:20 PM
03-19-2009 10:50 AM
Hi,
For the above requirement, its better to try with select query
select single sobid from hrp1001 into {internal table} where {ur condtion}
Can you please eleberate ur question?
Regards
Arani Bhaskar