Toggle option in ALV FM Reuse...
I am using FM REUSE_ALV_GRID_DISPLAY for alv in my program. I have added a toggle button (Change <-> Display) using menu painter. But i have no idea how to implement it. Initially grid is in edit mode set in field catalog. (ex: ls_filedcatalog-edit = 'X'). My requirement is that i want to switch the grid in to display mode on clicking upon toggle button, and back to edit mode on the next click.
i wrote a user command for the button.
Can you please help me how can achieve this functionality>