Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent help needed: RH_GET_LEADER is giving dump NO_LEADING_POSITION_FOUND

former_member814779
Discoverer
0 Kudos
268

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

0 REPLIES 0