Skip to Content
0
Former Member
Feb 08, 2007 at 03:04 PM

help in alv display

19 Views

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 don’t now how

thankes

Org units

Ex.

163

271

315

415

LOOP AT org_itab INTO wa_org_itab-objid.

CALL FUNCTION 'RHPH_STRUCTURE_READ'

EXPORTING

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

TABLES

stru_tab = stru_tab

  • EXCEPTIONS

  • 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.

ENDIF.

ENDLOOP.

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.