Saturday, 28 September 2013

Organizational Structure in a Tree Structure!

Function Module to display the organizational structure in a tree structure.

CALL FUNCTION 'RH_ORG_STRUCTURE_SHOW'
       EXPORTING
         act_plvar                    = '01'
         act_otype                   = 'O'
         act_objid                    =  
'50000001''
         act_begda                  = sy-datum
         act_endda                  = '99991231'
       EXCEPTIONS
         org_unit_not_valid       = 1
         plvar_not_found          = 2
         wegid_not_found        = 3
         structure_error           = 4
         OTHERS                   = 5.
     IF sy-subrc <> 0.
       EXIT.
     ENDIF.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.