2023 Mar 16 10:55 AM
CALL FUNCTION 'RH_GET_LEADER'
EXPORTING
plvar = '01'
keydate = sy-datum
* OTYPE = 'S'
objid = 'STIEBEL'
* GET_LEADER_TAB = ' '
* CONSIDER_VAC_POS = ' '
IMPORTING
leader_type = leader_type
leader_id = leader_id
multiple = multiple.
* TABLES
* leader_tab = lt_hrrootob
* EXCEPTIONS
* NO_LEADER_FOUND = 1
* NO_LEADING_POSITION_FOUND = 2
* OTHERS = 3
Requirement: I opened tcode ppose and went to Organization Unit search. For the person Gerd Stiebel in this example, I want to find his leader (Leiter as per screenshot). Here the leader is Jacqueline, as shown in the screenshot.
I am using the FM RH_GET_LEADER for this requirement, but I am facing a dump. I'd like to know if there's anything wrong with what I'm doing. Suggest to me a solution for this requirement. Have a nice day. 🙂
Regards
Abid Ali