Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
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.
3. Rules for Navigation Objects should be assigned to MSS_BIZ_RULE2 and need to Customize
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 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
http://scn.sap.com/community/erp/hcm/employee-self-service/blog/2013/10/14/function-module-to-getsubordinates-of-a-manager
Thanks for Reading this post ends here. Any comments or suggestions are most welcome.
6131 Views Tags: teamcalendar, mss_team_error
52 Comments
Thanks Mohsin Syed for sharing the information, it helps us. Keep coming up with more blogs.
Like (0)
hi syed ,
Awesomee. really ..waiting from so many days this scenario ....finally you made this ...really
apprecaite your hard work .we expect more blogs from you in coming days.
Like (0)
Hi Mohsin,
Excellent work, most awaited document in ESS & MSS Space and most of the customers
requirement. Thanks a lot. Keep rocking.
Like (0)
Hi Mohsin,
This is an amazing guide! I need to implement this same thing right now, but am struggling.
I have set up everything as the guide states and have tested both the custom function module
and the function module referenced by Dhiraj Pednekar and get the results expected in R3 for
a manager not set up as a chief.
When I log into MSS as that manager, I do not see any of my direct reports in any of the views.
Do you have any idea what I might have missed or where I could look?
Thank you!
Like (0)
Mohsin Syed Mar 18, 2014 6:50 AM (in response to Mike Wolfe)
Mike,
Sorry for late reply, I saw your comment on the posted date but I was busy and I went
on leave and came back today. If you have implemented same as per the guide it
should work, have you correctly restricted the objects at the "Define rule for object
selection'. At what version your system is let me know.
Regards,
Mohsin.
Like (0)
Mike Wolfe Mar 18, 2014 1:55 PM (in response to Mohsin Syed)
Mohsin,
Thank you for the reply. We are on ECC 6, support pack level 66.
I have checked all of the config and it matches your guide.
MSS_BIZ_RULE1 has the SAP_US_S eval path and is restricted by position
MSS_BIZ_RULE2 has the custom S-S-P eval path with a depth of 2 and the
custom function module Z_HRWPC_EVAL_PATH. This is also restricted by
position.
MSS_TMV_EE_DIR has a root of MSS_BIZ_RULE1, navigation of
MSS_BIZ_RULE2, & a target of MSS_TMV_RULE5.
Thanks again for your help!
Mike
Like (0)
Mohsin Syed Mar 19, 2014 8:15 AM (in response to Mike Wolfe)
Hi Mike,
If you have done the same as you mentioned it should work, but It
seems some authorization problem is there please check that the
managers who are not chief has authorizations to access the TEAM
VIEW page and also check whether is there any refresh problem.
Regards,
Mohsin.
Like (0)
Mike Wolfe Mar 19, 2014 3:13 PM (in response to Mohsin Syed)
Hi Mike,
After Deactivating MSS_TMV_EE_DIR you are still able
to see the team for Manager who is chief, I think that
is because of Cache Validity and it would remain for
one day.
Regards,
Mohsin.
Like (0)
Hi Mohsin,
I really appreciate your help with
troubleshooting my issue. MSS_TMV_EE_DIR
has been deactivated for over a day and the
cache validity is also set to -1. If I understand
the cache validity correctly, -1 would ensure
that the system rereads the data each time a
user access the webdynpro or refreshes.
It still appears to work for the Chief
manager, even though MSS_TMV_EE_DIR has
been disabled. Do you know of a function
module I could set a breakpoint in to see
what evaluation path our team calendar is
referencing? I think this may help me
determine what is not linking to
MSS_TMV_EE.
EDIT:
I was able to hit a breakpoint in function
module HRWPC_RFC_RD_DATES_GETLIST.
This seems to be checking the function
HRWPC_READ_TWPC_V_T. This table
V_TWPC_V seems to be a different
configuration point than what your guide
shows. DO you have any idea of where the
connection point may be to the configuration
in your guide?
Thank you!
Mike
Like (0)
Mohsin Syed Mar 21, 2014 7:29 AM (in
response to Mike Wolfe)
Hi Mike,
Mohsin,
I was able to debug
yesetrday and found that
the configuration being
called is not entirely the
same as your guide. The
view that was originally
being referenced was A_ALL
and A_DIR. These were
found on table TWPC_V, but
do not exist in the config
section of the guide you
wrote.
Setting up the view for
these seems similar,
though. I am able to call a
custom view Z_DIR that
references SAP_US_S for the
Eval Path for Root Objects
and S-S-P for the Eval Path
Objects(with the custom
function module
referenced).
When I debug I do get to
both SAP_US_S and S-S-P
eval paths. Inside the
custom function module,
OTYPE = US and OBJID = my
user name. Upon exiting the
RH_STRUC_GET, result_tab
is empty so root_objects is
Hi Mike,
o
Mike Wolfe Mar 27, 2014 12:18
PM (in response to Mohsin
Syed)
Hi Mike,
Its good that you achieved
your requirement
, it
would be better that you
can post your problem and
the solution with some
explanation using
screenshots so that it would
be helpful to others and the
code which you
implemented, that would be
a great contribution from
your end to others.
Regards,
Mohsin.
Like (0)
-Check 'Delete
Duplicates'
-Created new view Z_RPT_D
Eval Path for Root
Objects: SAP_US_S
Function Module for Root
Objects:
Z_HRWPC_ROOT_OBJ
Evaluation Path Objects:
S-S-P
Function Module Object
Set: Z_HRWPC_EVAL_PATH
Initial Evaluation Depth:
0
Column Group: RPT_EMPL
-Check 'Delete
Duplicates'
-Check 'Excl. Managers'
Table: V_TWPC_VG
-Removed A_DIR from
ATTEND viewgroup
-Removed RPT_PD from
REPORTING viewgroup
Table: V_TWPC_VG_C
*"--------------------------------------------------------------------*"*"Local Interface:
*" IMPORTING
*"
REFERENCE(USER)
LIKE SY-UNAME
*"
REFERENCE(BEGDA)
LIKE OBJEC-BEGDA
*"
REFERENCE(ENDDA)
LIKE OBJEC-ENDDA
*"
REFERENCE(EVALPATH)
LIKE GDSTR-WEGID
OPTIONAL
*"
REFERENCE(DEPTH)
LIKE GDSTR-DEPTH
DEFAULT 0
*" TABLES
*"
PARAMVALUES
STRUCTURE
HRWPC_S_OADP_PARAMVAL
UE OPTIONAL
*"
PATHROOTS
STRUCTURE HRROOTOB
*" EXCEPTIONS
*"
NO_OBJECTS_FOUND
*"--------------------------------------------------------------------"-- Declare Variables
data:
result_tab
swhactor,
ls_tab
ls_pathroots
ob,
typetable of
typeswhactor,
typehrroot
lwa_obj
typetable of
HRWPC_S_KEYOBJEC,
lwa_test
S_KEYOBJEC,
typeHRWPC_
lv_pernr
pernr,
typepa0001-
lwa_0001
1.
typepa000
if sy-subrc = 0.
select single pernr
from pa0105
into lv_pernr
where subty = '0001'
and endda >= sydatum
and begda <= sydatum
and usrid = sy-uname.
select single *
from pa0001
into lwa_0001
where pernr = lv_pernr
and endda >= sydatum
and begda <= sydatum.
pathroots-otype = 'US'.
pathroots-objid = syuname.
append pathroots.
pathroots-otype = 'P'.
pathrootsobjid =lwa_0001-pernr.
append pathroots.
pathroots-otype = 'S'.
pathrootsobjid =lwa_0001-plans.
append pathroots.
endif.
ENDFUNCTION.
FUNCTIONZ_HRWPC_EVA
L_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 SYDATUM
*"
VALUE(ENDDA) LIKE
OBJEC-ENDDA DEFAULT SYDATUM
*"
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_PARAMVAL
UE OPTIONAL
*"
RESULT_OBJEC
STRUCTURE OBJEC
*"
RESULT_STRUC
STRUCTURE STRUC
*" EXCEPTIONS
*"
NO_OBJECTS_FOUND
*"--------------------------------------------------------------------DATA:
BEGIN OFlt_subordinates
OCCURS0,
pernr LIKE pa0001pernr,
begda LIKE pa0001begda,
endda LIKE pa0001endda,
plans LIKE pa0001plans,
ename LIKE pa0001ename,
END OFlt_subordinates.
DATA:
posno LIKE hrp1001sobid,
sobid LIKE hrp1001-objid.
DATA:
BEGIN OF lt_plansOCCUR
S 0,
endda LIKE pa0001endda,
plans LIKE pa0001plans,
END OF lt_plans.
DATA:
BEGIN OFlt_subordinates
_posOCCURS 0,
endda LIKE pa0001endda,
sobid LIKE hrp1001sobid,
objid LIKE hrp1001objid,
END OFlt_subordinates_p
os.
DATA:
BEGIN OF lt_pernrsOCCU
RS 0,
lt_subordinates_posobjid =lt_subordinates_possobid.
SELECT SINGLEsobid
INTO posno
FROM hrp1001
WHERE otype = 'S'
AND objid =lt_subor
dinates_pos-objid
AND plvar = 'C1'
AND rsign = 'A'
AND relat = '008'
AND sclas = 'P'
AND begda <= sydatum
AND endda >= sydatum.
IF sy-subrc = 0.
lt_pernrspernr =posno.
APPEND lt_pernrs.
CLEAR posno.
ENDIF.
ENDLOOP.
IF lt_pernrs[] IS NOTINIT
IAL.
DELETE ADJACENTDUP
LICATES FROMlt_pernrs.
SELECT pernr begda
endda plans ename
FROM pa0001
INTO TABLElt_subordi
nates
FOR ALL ENTRIESIN lt
_pernrs
WHERE pernr =lt_per
nrs-pernr
AND begda <= sydatum
AND endda >= sydatum.
SORTlt_subordinates B
Y pernr endda DESCENDING.
DELETE ADJACENTDUP
LICATES FROMlt_subordinate
sCOMPARING pernr.
LOOP ATlt_subordinate
s.
result_strucseqnr =sy-tabix.
result_struc-level =1.
result_strucotype ='P'.
result_strucobjid =lt_subordinatespernr..
APPENDresult_struc.
result_objecplvar ='C1'.
result_objecotype ='P'.
result_objecobjid =lt_subordinatespernr.
result_objecbegda= lt_subordinatesbegda.
result_objecendda= lt_subordinatesendda.
result_objecstext =lt_subordinatesename.
result_objec-istat =1.
result_objecrealo =lt_subordinatespernr.
APPENDresult_objec.
ENDLOOP.
ELSE.
RAISEno_objects_found
.
ENDIF.
ELSE.
RAISEno_objects_found.
ENDIF.
ELSE.
RAISEno_objects_found.
ENDIF.
ENDFUNCTION.
Like (0)
Thanks Mike...
Regards,
Mohsin.
Like (0)
regrds
Thomas
Like (0)
Thanks to all
Like (0)
hi mohsin Syed,
you have mentioned to assign Restricted object type 'S' position to
rule MSS_BIZ_RULE1 ,where as standard already have restricted object type 'P' Person. why is
this change.and Do i need to remove the restricted object type 'P'?
thanks
Thomas
Like (0)
Mohsin Syed Mar 20, 2014 11:42 AM (in response to Thomas Devassy)
Hi Thomas,
Yes, remove the Object type 'P' in MSS_BIZ_RULE1 and assign it to 'S' because we
need to fetch the Position of the Manager and just assign it to next rule
MSS_BIZ_RULE2 where we need to fetch 'S-S-P' i.e., nothing but based on position we
are retrieving the reportees of that manager.
Regards,
Mohsin.
Like (1)
Hi,
Good Document.
Like (0)
o
Mohsin Syed Mar 24, 2014 12:30 PM (in response to praneeth kumar m)
Thanks Praneeth.
Like (0)
Mohsin Syed Mar 24, 2014 12:31 PM (in response to Pradyp Parakala)
Thanks Pradyp..
Like (0)
hi mohsin,
i have done the changes mentioned in the document.
but i am getting position number(30004401) of that employee in the screen and MSS
application is not able to recognize.
(
MSS_BIZ_RULE1 is the SAP_US_S and is restricted by position
MSS_BIZ_RULE2 is the S-S-P with a depth of 2 and the custom function module
ZHRWPC_EVAL_PATH. This is also restricted by position.
Like (0)
Mohsin Syed Mar 27, 2014 11:32 AM (in response to Thomas Devassy)
Hi Thomas,
What is the version of your sap system and ESS/MSS. Are you using NWBC.
Regards,
Mohsin.
Like (0)
Thomas Devassy Mar 29, 2014 11:45 AM (in response to Mohsin Syed)
i am using portal.
Hi Mohsin,
I have implemented all the config steps , however I am getting the same
errors asThomas Devassy mentioned in his reply.
i am getting position number of that employee in the screen and MSS
application is not able to recognize.
Thanks
Pradeep
Like (0)
Hi Mohsin,
o
Mohsin Syed Apr 3, 2014 12:11 PM (in response to Rajesh Kumar)
Hi Rajesh,
I didn't check for Travel management I think this would be done if you have already
Org structure maintained correctly with all required relationships.
Try with this guide which I have shown using NWBC portal else let me know, then I will
help what ever I can.
Regards,
Mohsin.
Like (0)
Barin DESAI Apr 8, 2014 3:44 PM
Hi DESAI,
Thanks,
No S to S wont work for Drop down that appears as Direct Reportees this has the
standard config which will use 'SAP_MANG' as its evaluation path.
Regards,
Mohsin.
Like (1)
Mohsin,
I am trying to implement this for the Talent Information iView and I would say I am partially
getting the correct results. I did your above configuration, but assigned it to a
ZMSS_TMV_EE_DIR.
When a chief view, object selection = MSS_TMV_EE_DIR, their direct reports all show up within
1 window.
When the non-chief view, object selection = ZMSS_TMV_EE_DIR, their direct reports flow into
an organizational structure to the left of the window and the manager has to select each
position to view the employee in that position.
Any thoughts on how to prevent this view of showing employees in the org unit by position?
Like (0)
Thanks Namsheed,
Why not it works with NWBC as well, when I was working on NWBC then I faced the
same issue then I have resolved by these steps which I captured as document and
posted for community to help others.
If it helps you then surely it will help your collegues, go ahead with sharing this link.
Make sure everybody reward points
Regards,
Mohsin.
Like (1)
Hi Mohsin,
I have done everything exactly like you told. But still I am not getting the
employee list in Manager's MSS Team.
How can check where I am wrong.
It will be a huge help if I could resolve it.
Thanks in advance,
Namsheed.
Like (0)
Hi Namsheed,
As I suggested at last step of my document you can use the function
module and pass the relevent input parameters and check whether
you are getting the result or not, If you are getting the result in output
then it should have to give you employee list as a team for that
manager in NWBC.
Function Module to get subordinates of a manager
Function Module: HRWPC_RFC_OADP_GET_OBJECTS
Input Parameters.
Regards,
Mohsin.
Like (1)
Hi Mohsin,
Hi Namsheed,
Can you please check the OADP config that you Org
strucuture is linked to which structure you may be
referring to 'MSS_TMV_EE' I think you have to change
this to 'MSS_TMV_EE' for the above configuration
which you have made using my configuration guide.
Regards,
Mohsin.
Like (1)
Dear Mohsin,
Both you mentioned as MSS_TMV_EE.
Also can you mentioned the path for
checking the OADP config to check org
structure is linked with MSS_TMV_EE .?
Thanks,
Namsheed.
Like (0)
HI Namsheed,
That was actually typo mistake, the
path you can go and check is
whether you are using MSS_TMV_EE
is check
IN SPRO->PersonnelManagement>Employee SelfService(Webdynpro)->Service
Specific Settings->WorkingTime>TeamCalendar->Select Employees.
check that for you Rule Group
whether the Column 'Group of
Organizational Views' is filled with
'MSS_TMV_EE'.
Regards,
Mohsin.
Like (1)
Hi Mohsin,
Hi Namsheed,
As suggested by Jwala
please post your queries in
discussion threads, hope
you have already a thread
open. So it would be useful
to others to have a look for
a solution and to get the
reward points for the
contributors.
As per my understanding if
you have implemented all
the steps through my
Document. Then you need
to do as it is then only you
will see the output.
When you are able to create
a object type 'S' in
MSS_BIZ_RULE1 you can be
able to delete as well. If it is
SAP entry also you can
delete it, do that.
And you need to change the
'Group of organization view'
to MSS_TMV_EE in the above
screenshot at the last record
if your rule group is
'99999999'.
Regards,
Mohsin.
Like (1)
o
Namsheed K S Sep 8, 2014 2:47
PM (in response to Mohsin
Syed)
Dear Mohsin,
Thanks a lot
Hi Namsheed,
that I
didn't get
. May be you
can give rating to the blog.
Regards,
Mohsin.
Like (1)
Hi Mohsin,
In PRD system, only for the
chief , all the employees
are coming in direct
reportees. eventhough only
2 direct reportees are there.
What could be the reason
for that.?
Thanks,
Namsheed.
Like (0)
Hello Mohsin,
how are you,hope your fine... I need some help. In my organization , there are more than 120
employees in same org unit. there are 12 supervisor in org who are approving the leaves but
unable to see the team in mss. without making chief position within the same department . If i
do this configuration than what is the impact on other structure which are working fine.
Like (0)
Hi,
o
o