on 08-26-2011 3:16 PM
hello gurus,
My requirement is when a Manager logs in thru MSS he can only view the direct reportess & their details. Say a Department may have 1 head & 2 Managers. So each manager can view only the direct reportees when he logs in the MSS.
Currently the reporting display is possible only if i assign A/012 relationship & this wud display all reportees under this dept.
Reading the threads i assumed changing the evaluation path will help but am confused as how to do it. In SPRO under OADP there are steps to be maintained Eg - Define Rules for Object Selection. When i go to this step which std entry do i copy & wht evaluation path can i use to get the desired result.
Pls help me.
rgds,
First assign your SAP User name to a Chief position of an org unit.
Then execute function module RH_STRUC_GET.
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
act_otype = 'O'
act_objid = OrgUnit ID of your org unit
act_wegid = u2018MSSDIRECu2019
act_int_flag = 'X'
act_plvar = u201801u2019 Active plan version
act_begda = sy-datum
act_endda = sy-datum
act_tdepth = 0
act_tflag = 'X'
act_vflag = 'X'
authority_check = 'X'
buffer_mode = ' '
TABLES
result_tab = result_tab
EXCEPTIONS
no_plvar_found = 1
no_entry_found = 2
OTHERS = 3.
You will be getting all the direct reports by filtering the object type u2018Pu2019 from the output result table. Hope this helps. Remember you will get the details of the Orgunit only if you are the manager of that particular Orgunit. If you want to test different orgunit then you have to assign you as the manager of that org unit first by assigning you SAP user name to the Infotype 0105.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use function module HRCM_OWN_ORGUNIT_EMPL_GET.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
each iview has a evalaution attached to it, so settings are available in OADP and you can modify accordingly
You can see the steps here and modify accordingly, which can be done easily
https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=190743879
and there are some delivered function ,modules. which can be used to
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi siddharth,
thnk u so much for the reply
i have already gone thru this link & with its help made the changes.
My requirement is when a Manager logs in MSS he can only view the direct reportees under him
currently my observation is that the reporting structure is visible only if the Manager is assigned A/012 relationship. If i remove this relationship then there is no display of reporting structure.
i copied the standard entries & modified acc to my requirements.
(A) Object Selection Rule : - Z_MSS_TMV_RULE1 (Evaluation Path - SAP_MANG)
Z_MSS_TMV_RULE5 (Evaluation Path - MSSDIREC)
(B) Selection Rule :- ZMSS_TMV_EE_DIR
Rule for Root Object = Z_MSS_TMV_RULE1
Rule for Target Object = Z_MSS_TMV_RULE5
(C) Organizational Structure Views :- ZMSS_TMV_EE_DIR
Obj Sel = ZMSS_TMV_EE_DIR
Grp of Data Views = MSS_TMV_EE
(D) Group Organisational Structure Views :- Z_MSS_TMV_EE
Org Struct View = ZMSS_TMV_EE_DIR
I have copied the Std entry MSS_TMV_EE for the above config
1) Can u suggest what more i need to add to the config to get the desired result
2) Where & which FUNTION MODULE to use
3) Which other evaluation path can i use to get the desired output?? (i tried changing the evalution path for Target Object & no data was displayed)
3) Is is mandatory to assign A 012 relationship to the Manager?? Because i only want direct reportees & if i assign A012 then all the subordinates in the Org Unit will be dispalyed where as i only want direct reportees tobe displayed.
all help is highly appreciated. Pls help me resolve this
rgds,
SAP_MANG, is the correct one, and it indeed shows direct reportees
SAP_MANG, MSSDIREC
You may test the HRWPC_RFC_GET_OBJECTS in R/3 to check the results.
MSS_LTV_RULE1: evaluation path SAP_MANG >>> This has to be customised
accordingly using T77aw
MSS_LTV_RULE2: SBESX
MSS_LTV_RULE5: MSSDIREC
MSS_LEA_RULE1: SAP_MANG
MSS_LEA_RULE2: SBESX
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.