Skip to Content


Dec 31, 2016 at 09:00 AM


avatar image


I have to create a context menu on a cell in ALV. I use CL_SALV_TABLE.

On right mouse click, there is a standard context menu, but I need my own functions in this context menu.

Is this possible? I've searched a long time in the community, but I can't find the solution.

Many thanks in advance


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Sandra Rossi Dec 31, 2016 at 08:32 PM

This is not possible natively in SALV, but you may retrieve the CL_GUI_ALV_GRID instance, and operate on it. For instance, see SCN blog posts Power of ABAP Objects: Overcome the Restrictions of SALV Model, by Naimesh Patel, on 2008/11/24, and SALV and PEPPER : Editing individual columns in the SALV, by Paul Hardy, on 2015/08/07.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hello Sandra

Thanks for the interesting links, but I can't see, how I can solve my problem? Or is my thinking to short?

Thanks Daniel


SALV is based on CL_GUI_ALV_GRID. The context menu is available in CL_GUI_ALV_GRID, but it's not exposed by SALV. There are the same limitations for making an ALV editable, drop down cells, scroll to a given row, ...

The two blog posts are about making an ALV editable, but you can just adapt their code to make available the context menu + have a look at the demo program BCALV_GRID_06 for the context menu.

avatar image
Former Member Jan 03, 2017 at 04:59 PM


Check this link

By context menu you mean F4?

You have some methods in column class, you can check if u have what you want..

For example: column->has_f4( abap_true ).

Best Regards,

Filipe Sardinha

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hello Filipe

Thanks for your link

By context menu I mean "right mouse click"

Best regards