Hook ClassesWhen creating navigation targets in the HR Professional WDA Master Data Application and the Roadmap Application to other infotypes or reports, the generic hook class, CL_HRPAO_PA_CONFIG_HOOK
, is not always sufficient to meet the navigation requirements for specific configuration IDs and/or infotypes. To bridge this gap, the existing hook interface has been enhanced with the following three methods:
IS_RELATED_DATA_NEEDED_FOR_NAV (Hook Class Method)
Used to return information such as whether or not additional data needs to be provided in addition to the infotype record.
MODIFY_NAVIGATION_TARGETS (Hook Class Method)
Used to modify and remove navigation targets defined in the transaction LPD_CUST
, as well as to add new navigation targets.
FINALIZE_TARGET_BEFORE_NAV (Hook Class Method)
Used to adapt the navigation target after the user clicks the navigation target, and before navigation really starts.
When you need a specific hook class implementation, you need to:
Ensure that the hook class for the specific configuration/infotype inherits from the hook class CL_HRPAO_PA_CONFIG_HOOK
Enter both the class and the corresponding infotype record in the view cluster VC_T77PAOMDCF
(Basic UI Configurations
).