hr select with unknown end for organizations.
I want to relation between organizations for doing rfc. that means, otype = 'O' objid ='54545' rsign = 'B' (is rsign important? i think not) and sclas = 'O' in hrp1001 table. for example.
objid ='54545'. sobid = '66666'
objid ='54545' sobid = '44444'
objid ='54545' sobid = '55555'
after that again select for sobid.
objid = '66666' sobid = '9999'.
again objid = '9999' sobid = '111'. and so on. until sy-subrc ne 0.
RFC like a tree for organizational structure.
/ \ \
C D L
how i can select or/and fill itab. please help me.
note: sorry for my english.