Code: Alles auswählen.
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
act_otype = 'P '
act_objid = p0001-pernr
act_wegid = 'P-S-O'
act_plvar = '01'
act_begda = stichtag
act_endda = stichtag
act_tflag = space
act_vflag = space
authority_check = space
TABLES
result_tab = result_tab
EXCEPTIONS
no_plvar_found = 1
no_entry_found = 2
OTHERS = 3.
IF sy-subrc = 0.
LOOP AT result_tab WHERE otype = 'O'.
WRITE: / 'Org-Einheit ist', result_tab-objid.
ENDLOOP.
ENDIF.