cancel
Showing results for 
Search instead for 
Did you mean: 

alv table: how to add menu to cell editor?

Former Member
0 Kudos

Hi folks,

I'd like to pimp my ALV table with a context menu for some cell editors. There are text views in it, to which I would like to have dynamic context menus. I tried to find the API in the ALV config class especially the column class, but the only thing I could find was to reset the cell editor.

regards

stefan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

I think you can use Runtime class CL_WD_MENU to have dynamic context menus.

For dynamic programming, same properties, events and aggregations are available as in View Designer. Bear in mind the different spellings.

To work with Menu Item Use Runtime Class: CL_WD_MENU_ITEM

For dynamic programming use Runtime Class: CL_WD_MENU_ACTION_ITEM

Thanks,

Bharath

Former Member
0 Kudos

I know of the classes, but how to use them, I cannot change ALV component, I need to work with API right?

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

This might be because I am running on Web Dynpro 7.01, but when I look at the cell editor API classes (like CL_SALV_WD_UIE_IMAGE or CL_SALV_WD_UIE_TEXT_VIEW) there are SET_MENU and GET_MENU methods. These would seem to be to control the context menu assigned to these UI elements.

Answers (0)