05-31-2005 10:13 AM
Hi
I need help while I can not find the ecample of use BAPI SWX_GET_MANAGER. Where I need to loocking for?
Bogdan
05-31-2005 5:28 PM
Hi Bogdan,
I could not find any BAPI but yes a Function Module exist with the name SWX_GET_MANAGER.
Rememeber BAPI name starts with BAPI_*
This is a function module which can used within methods/"role determination FMs", called in workflows / tasks to get the Manager of a user.
e.g. if you will pass the your information , it will select your manager's information from the organisational structure.
This is used to derive the role / manager for approval workflows. e.g Leave Approval.
I hope it's clear.
Thanks,
Ram
Message was edited by: Ram Manohar Tiwari
05-31-2005 10:43 AM
do a where used list and find out how it is used.
my search resulted in this FM being used in one include
"MWS20000081HO01"
Regards
Raja
05-31-2005 11:22 AM
Hi Raja
Would u like to explain mi that more detail? I am unfortunately novice in SAP:(
Thanks
Bogdan
05-31-2005 11:34 AM
the documentation for this FM is not available.
To find out how it is used.
go to transaction se 38
enter program name "MWS20000081HO01" and click display and within that look for this FM where is it used and see how the program uses this FM. That should give you a pointer.
Regards
Raja
05-31-2005 5:28 PM
Hi Bogdan,
I could not find any BAPI but yes a Function Module exist with the name SWX_GET_MANAGER.
Rememeber BAPI name starts with BAPI_*
This is a function module which can used within methods/"role determination FMs", called in workflows / tasks to get the Manager of a user.
e.g. if you will pass the your information , it will select your manager's information from the organisational structure.
This is used to derive the role / manager for approval workflows. e.g Leave Approval.
I hope it's clear.
Thanks,
Ram
Message was edited by: Ram Manohar Tiwari
06-01-2005 12:29 PM
Hi Ram
Thanks for your answer.
I try to use this function
data: wa_actor like swhactor,
it_actor like table of swhactor,
wa_cont like swcont,
it_cont like table of swcont.
clear it_actor.
clear it_cont.
wa_actor-otype = otype. "that is set to US or P
wa_actor-objid = pernr. "that is set to personal number or uname
append wa_actor to it_actor.
CALL FUNCTION 'SWX_GET_MANAGER'
TABLES
ACTOR_TAB = it_actor
AC_CONTAINER = it_cont
* EXCEPTIONS
* NOBODY_FOUND = 1
* OTHERS = 2
.
but the result is always message: 'There is no chief pisition for .' That is possible wrong input but i dont know why should I the parameters senden.
regards
Bogdan
Message was edited by: Bogdan Rokosa
06-01-2005 1:22 PM
I have the solution:)
I have tried parameter via result table send - that was my error
Thanks everybody.
Bogdan
Message was edited by: Bogdan Rokosa
06-01-2005 2:41 PM
Hi Bogdan,
You are getting 'No chief position' because there seems to be no Organization structure. Org structures are defined using transaction <b>PPOMA.</b>
Thanks and Warm Regards.
Pras Durafe