Function documentationDynamic Rendering of the Menu (BAdI HRESS_MENU) Locate this document in the navigation structure

 

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

This graphic is explained in the accompanying text.

Figure 1: BAdI HRESS_MENU Adapting the Menus of Both Role Repositories

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   Advanced Parameters   Application-Related Parameters  .

  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   Personnel Management   Employee Self-Service (Web Dynpro ABAP)   General Settings   ESS Menu for Services   and then either under Menu for SAP Portal Role or   Menu for SAP NetWeaver Business Client for HTML   BAdI: Specify Dynamic Rendering of Services  .