Manager Self-Service (MSS) – MSS team view, managers who do not hold chief position
Problem Description: I have gone through so many discussions regarding MSS team view access for those managers who do not hold chief position, I thought to give a glance on this that we can get this by doing some configuration changes and with custom Function Module.
Usually, managers can have access to employees not only from his Organization but different organization. The standard Evaluation path is an example to do so, but usually it doesn’t meet the requirements so as to enable different possibilities you can use the benefits of OADP.
You can use your custom evaluation paths and FM to get the employees according to the relationship.
To achieve the solution go with the below steps.
1. Create custom evaluation path ‘S-S-P’
Go to -> SM30 -> Enter ‘T77AW’ table and click on Maintain -> Click on ‘New Entries’
2. Check the IMG step
Integration with Other mySAP.com Components -> Business Packages/Functional Packages -> Manager Self-Service (mySap ERP) -> Object and Data Provider -> Organizational Structure Views -> Group Organizational Structure Views.
MSS_TMV_EE is assigned to MSS_TMV_EE_DIR and MSS_TMV_EE_ALL as shown below
And then these Organizational Views are defined at IMG step: “Define Organizational Structure Views” as shown below
Open the Object Selection view of MSS_TMV_EE_DIR, as we need to customize this Org View, you will find as shown below.
Then you can check the rules for Object Selection: IMG Object Provider -> Define Rules for Object selection: Object Selection Rule: MSS_TMV_RULE1
EVALPATH is “SAP_MANG” – Org. Units Managed by persons or users.
This will get only the Org Unit. This won’t serve our requirement so we need to customize. In the step 1 you can see the Custom Evaluation Path ‘S-S-P’ which would be useful for our requirement as this will give you all the positions of employees who are reporting directly to the Manager.
In the above screen Rules for Root Objects should be changed to MSS_BIZ_RULE1 as this will get the position and personnel number of a user. The Restrict Object type for this should be ‘S’ – Position.
EVALPATH is ‘SAP_US_S’ – Positions and Personnel Number of a User.
After Customizing Object Selection looks like below.
MSS_BIZ_RULE1 looks like below
3. Rules for Navigation Objects should be assigned to ‘MSS_BIZ_RULE2’ and need to Customize
Assign our custom
Evaluation path: ‘S-S-P’
Depth of Structure: 2 (up to Level 1) or 3 (up to Level 2)
Function Module: Z_HRWPC_EVAL_PATH
We have to create the Z function module for Object Set. So we will copy the standard FM “HRWPC_EVAL_PATH” (Function module for Object Set) into Z FM “Z_HRWPC_EVAL_PATH” to set all the Positions retrieved through ‘S-S-P’ evaluation path to the OBJECT.
The Restrict Object type for this should be ‘S’ – Position.
4. Z_HRWPC_EVAL_PATH Function Module Source Code is as below
We are not going to Change “Rule for Target Objects” it should be ‘MSS_TMV_RULE5’ – Direct Reports.
Login into Portal with Reporting Manager Credentials. You will see the output as shown below where he can able to see his Direct Reportees with his Absence Details.
Login into Portal with HOD Credentials. You will see the output as shown below.
If you don’t have an access to login into Portal with HOD are Manager. The alternate way to check the Output or Result is Use the Function Module HRWPC_RFC_OADP_GET_OBJECTS through SE37 Tcode and execute as per the suggestions given by Dhiraj Pednekar in the below link
Thanks for Reading this post ends here. Any comments or suggestions are most welcome.