By Joyjit Ghosh, IBM India


























How SAP calls the routine ON_CTMENU_REQUEST:<?XML:NAMESPACE PREFIX = O />

Whenever user presses right mouse button or shift + F10 key combinations sap triggers system event and calls the method DISPATCH_SYSTEM_EVENTS of class CL_GUI_CFW. Within it, it calls the method DISPATCH of class LCL_DYNPRO_PROXY (defined within the class pool of CL_GUI_CFW).

Adding custom context menu in classical list

Adding custom context menu in classical list

From this method (DISPATCH) it calls the routine ON_CTMENU_REQUEST which is defined in our program.

Adding custom context menu in classical list

Adding custom context menu in classical list

Output:

Basic list:

Adding custom context menu in classical list

Detail list:

Adding custom context menu in classical list

相关文章: