Visibility Control in MSS Short Profile (WD: HRTMC_SHORT_PROFILE, Config ID: SAP_MSS_GENERAL_PROFILE)
Our customer (on EHP minus 1) decided on a multi country implementation of MSS Add-on 1.0 with a unique requirement that a single portal role has to be assigned to Managers (irrespective of country) and a single role for employees across the globe
In this scenario, we try to set visibility of fields available in MSS Short Profile based on parameters defined by the customer. For eg: Job Code of Blue collar workers should be not visible to managers in Nordics.
Standard Code hides fields with no values in it, we decided to leverage the existing functionality. First Step would be in enabling the Hide checkbox for the fields you require visibility control in V_T77TMCDRCNFFLD_GRP
In WD Component: HRTMC_SHORT_PROFILE, View: V_MAIN and Method: WDDOMODIFYVIEW, enhancements needs to done to standard source.
Placing a break as shown:
For any field, for eg: SAP_PA_BIRTHDATE, clear the value of the field from LS_FIELD_VALUE.
Field is hidden as shown in HRTMC_SHORT_PROFILE.