Page tree
Skip to end of metadata
Go to start of metadata

TITLE : How to create static context menu  in Webdynpro ABAP
Company:     Cognizant
Created on:    25/11/2011
Author(s) Bio: Chinnaiya Pandian

What is CONTEXT MENU?

From Wiki Source

A context menu (also called contextual, shortcut, and popup or pop-up menu) is a menu in a graphical user interface (GUI) that appears upon user interaction, such as a right mouse click or middle click mouse operation.

Is CONTEXT MENU option  available in WDA?

Yes, we can create our own Context Menu either statically or dynamically. In this blog we going to see how to create it statically (design time)  

How context menu look like in WDA?
Below screen shot is the Proof :) :)


Let’s create it and check.
Creating a Static Context menu

In Layout tab of your view you can see the 2 transparent containers available by standard, to create your own context menus, Right click on the context menu transparent container and choose create context menu  


Now you can add your actions under the Context menu, choose menu action UI element to assign your action code as shown in below screen shot


Now look at the properties of the Menu Action item, here you can create your action and assign to the menu item,


 In this application I have used scarr table ,In the FILL TABLE action I am  populating  few records  to the table and  clearing the table entries when refresh menu item is clicked.

Go for Testing Now

1 Clicking on the Fill table Menu item


2. Clicking on the refresh menu Item