Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

MSS team view, managers who do not hold chief position

Hi,

  Is it possible to provide MSS team view access for managers who do not hold chief position ? I have gone through few blogs and found that it is possible but a lot of work around. Can any one please give me the steps what all need to be done.

The reporting hierarchy is as follows:  Employees  --> supervisor (A005 relationship) --> reporting manager (A002) --> department head (A012). For some of the employees in the first level do not have access to computers, so their respective supervisors will be creating leave and other request  on behalf them, the supervisors and even the reporting managers who do not have chief position should be able to access MSS team view and making use of on behalf application they should be able to create requests on behalf their subordinate employees.

Request anyone to please give me the feasibility and the steps for achieving this. Your help will be greatly appreciated.

Regards

Vipul

Former Member
Former Member replied

Issue
To Get the MSS team view, for managers who do not hold chief position (A012) i.e., to get the direct employees reporting to the Manager (B002) and for HOD (A012) as well.

Solution
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’

Create as shown below

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 Objet 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 screenshot 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 (for up to Level1) or 3 (for 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

FUNCTION Z_HRWPC_EVAL_PATH. *"---------------------------------------------------------------------- *"*"Local Interface: *"  IMPORTING *"     VALUE(DEPTH) LIKE  TWPC_V-DEPTH DEFAULT 0 *"     VALUE(EVPATH) LIKE  TWPC_V-EVPATH OPTIONAL *"     VALUE(PLVAR) LIKE  OBJEC-PLVAR *"     VALUE(BEGDA) LIKE  OBJEC-BEGDA DEFAULT SY-DATUM *"     VALUE(ENDDA) LIKE  OBJEC-ENDDA DEFAULT SY-DATUM *"     VALUE(LEVEL) LIKE  HRWPC_S_KEYSTRUC-LEVEL DEFAULT 1 *"  TABLES *"      ROOT_OBJECTS STRUCTURE  HRROOTOB *"      ROOT_OBJEC STRUCTURE  OBJEC OPTIONAL *"      ROOT_STRUC STRUCTURE  STRUC OPTIONAL *"      PARAMVALUES STRUCTURE  HRWPC_S_OADP_PARAMVALUE OPTIONAL *"      RESULT_OBJEC STRUCTURE  OBJEC *"      RESULT_STRUC STRUCTURE  STRUC *"  EXCEPTIONS *"      NO_OBJECTS_FOUND *"----------------------------------------------------------------------   data: ls_tab       type swhactor,         result_tab   TYPE TABLE OF swhactor,         ls_pathroots TYPE HRROOTOB. READ TABLE root_objects INTO ls_pathroots INDEX 1.   if sy-subrc = 0.         call function 'RH_STRUC_GET'           exporting             act_otype      = ls_pathroots-otype             act_objid      = ls_pathroots-objid             act_plvar      = plvar             act_wegid      = evpath             act_begda      = sy-datum             act_endda      = sy-datum             act_tdepth     = depth           tables             result_tab     = result_tab[]             result_objec   = result_objec[]             result_struc   = result_struc[]           exceptions             no_plvar_found = 1             no_entry_found = 2             others         = 3.         if result_tab is not initial.           loop at result_tab into ls_tab.               root_objects-otype = ls_tab-otype.               root_objects-objid = ls_tab-objid.             append root_objects.           endloop.         endif.       endif. endfunction.

We are not going to Change “Rule for Target Objects” it should be ‘MSS_TMV_RULE5’ – Direct Reports.

OUTPUT

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 this is useful reward points

6 View this answer in context
Not what you were looking for? View more on this topic or Ask a question