Skip to Content
avatar image
Former Member

alv table: how to add menu to cell editor?

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Oct 07, 2008 at 12:11 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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.