You can use the entries from a context menu that you define in the Menu Painter to construct a context menu on a screen or list using the static method LOAD_GUI_STATUS from the global class CL_CTMENU.
This is the name that you pass to the importing parameter STATUS of the method LOAD_GUI_STATUS.
The maintenance screen for the context menu appears.
The following figure displays an example of a context menu.
You have created a set of functions that can be used as a template for constructing a context menu.
For information about defining the relevant processing logic in ABAP, see Context Menus .