Example: sapgui_tree_open_header_context_menu

The following example uses sapgui_tree_open_header_context_menu to open a context sensitive menu.

sapgui_tree_press_header("Column2", 
    "usr/cntlTREE_CONTAINER/shellcont/shell", 
    "Column2", LAST ); 
sapgui_tree_open_header_context_menu("Header Context Menu", 
    "usr/cntlTREE_CONTAINER/shellcont/shell, // Tree ID
    "Column2", // Header Name
    LAST );