Show TOC

Function documentationDynamic Rendering of the Menu (BAdI HRESS_MENU)

 

The HRESS_MENU Business Add-In allows you to dynamically change the properties of the services in the ESS menu (enabled/disabled, visible/invisible, application parameters etc.) based on your business requirements.

Features

The HRESS_MENU BAdI is used to dynamically adapt the menus from both role repositories for ESS (WDA):

  1. The Report Launchpad for the SAP Portal Role ESS (WDA):

    When the launchpad-based menu is rendered, it calls the associated feeder class. In the standard delivery, the feeder class CL_HRESS_LPD_MENU is called by default.

    • Feeder class CL_HRESS_LPD_MENU calls the BAdI implementations of HRESS_MENU with filter value 'COUNTRY_FILTER'.

    • Feeder class CL_HRESS_LPD_MENU calls the BAdI implementations of HRESS_MENU with filter value 'Application Alias' that can be maintained for each application in the menu maintenance (transaction LPD_CUST under Start of the navigation path Advanced Parameters Next navigation step Application-Related Parameters End of the navigation path.

  2. SAP NetWeaver Role Maintenance for ESS (WDA) in NWBC:

    When the PFCG based menu is rendered, it checks for the implementations of HRESS_NWBC_MENU_EXT. In the standard delivery, the BAdI implementation HRESS_NWBC_MENU_EXT exists. This implementation has Role Name as a filter value. When a role that has been specified in the filter is launched, the BAdI implementation proceeds as follows:

    • The BAdI implementation HRESS_NWBC_MENU_EXT calls the BAdI implementations of HRESS_MENU with the COUNTRY_FILTER filter value.

    • The BAdI implementation HRESS_NWBC_MENU_EXT calls the BAdI implementations of HRESS_MENU with the Application Alias filter value that can be maintained for each application in the menu maintenance (transaction PFCG under Other Node Details.

In the standard delivery, the HRESS_COUNTRY_FILTER implementation is active and is called by default in both the exits. This implementation checks the COUNTRYGROUPING parameter in the application and if the user accessing the menu belongs to a different country (has a different MOLGA), it sets the application to invisible. With this standard implementation, country-specific services are only visible to employees belonging to the respective countries.

More Information

Also see the documentation of the HRESS_MENU BAdI in the backend system (by calling up the BAdI in the BAdI Builder (transaction SE18) or in the SAP Customizing Implementation Guide under Start of the navigation path Personnel Management Next navigation step Employee Self-Service (Web Dynpro ABAP) Next navigation step General Settings Next navigation step ESS Menu for Services End of the navigation path and then either under Menu for SAP Portal Role or Start of the navigation path Menu for SAP NetWeaver Business Client for HTML Next navigation step BAdI: Specify Dynamic Rendering of Services End of the navigation path.