Dear Experts,
We are facing cross department reporting Issue in MSS. Manager's unable to see employees who are reporting from other departments in MSS under team view.
We have created the S-S-P evaluation path as shown below to achieve the above requirement.
We have done the below config steps in OADP( Object and Data Provider ).
Step1: In Organizational Chart Visualization created additional Structure MSS_DIR_REPORTS
Step2: Group Organization structure views as shown below.
Step3: Define Organizational Structure Views
Step4: Define Object Selections for MSS_TMV_EE_DIR
Copied the standard rules MSS_BIZ_RULE1 & MSS_BIZ_RULE2 to Zrules.
Step5: Define Rules for Object Selection for above ZRules.
Rule-ZMSS_BIZ_RULE1
Rule - ZMSS_BIZ_RULE2
Below is code we have used in function module ZHR_HRWPC_EVAL_PATH
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.
Still its not reflected other department employees in MSS Team view, Please any body guide to resolve the above issue.
Thanks
Rajendra