Hallow I doing a alv report that display org. unit. for that I use function
That bring all the unit below and the level of the org. unit .my problem is that I wont to display the org.unit below write side the father
For that I can use the level but I dont now how
LOOP AT org_itab INTO wa_org_itab-objid.
CALL FUNCTION 'RHPH_STRUCTURE_READ'
plvar = '01'
otype = 'O'
objid = wa_org_itab-objid
wegid = 'ORGEH'
begda = sy-datum
endda = sy-datum
PUP_INFO = 'X'
WITH_STEXT = 'X'
TDEPTH = 0
stru_tab = stru_tab
CATALOGUE_PROBLEM = 1
ROOT_NOT_FOUND = 2
WEGID_NOT_FOUND = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
MOVE wa_stru_tab-objid TO wa_t_itab-org_unit.
The biggest problem is that I wont to do it in alv (maybe take the field of org unit and make it bigger and move the org.unit in field accordingly. to the level )
Thanks for your suggestion.