on 03-02-2009 11:27 AM
Dear All,
Is there any way of getting immediate manager name in the org. hierarchy? Can you please suggest any FM or table from where we can derive the immediate manager?
Best wishes,
Atanu
Check out the Business Object BUS4101. Test it by giving an userid in the Instance and see the runtime values of the BO.
you might find some useful information in the various attributes of the business object.
Regards,
PR.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Sorry for the wrong link.
The foll sample code should help:
DATA : ls_ac_container type swcont,
lt_ac_container TYPE TABLE OF swcont,
lt_approver TYPE TABLE OF swhactor.
lv_creator TYPE swp_agent.
CONCATENATE 'US' <User Id> INTO lv_creator.
clear ls_ac_container.
MOVE : 'ORG_OBJECT' TO ls_ac_container-element ,
'000000' TO ls_ac_container-tab_index ,
'014' TO ls_ac_container-elemlength ,
'C' TO ls_ac_container-type ,
lv_creator TO ls_ac_container-value .
APPEND ls_ac_container to lt_ac_container.
REFRESH lt_approver.
CALL FUNCTION 'SWX_GET_MANAGER'
TABLES
actor_tab = lt_approver
ac_container = lt_ac_container
EXCEPTIONS
nobody_found = 1
OTHERS = 2.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.