Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Grid handle toolbar button Insert Row.

Former Member
0 Kudos

Hi,

I have created an editable ALV grid using the class CL_GUI_ALV_GRID. when I press the insert row button on the ALV grid toolbar it inserts a line and it is working fine.

Now I want to catch the ucomm for this button and put my logic.

Here the problem starts, the event user_command is not triggered here, instead my data_changed event is getting triggered.

whereas if I click on other buttons like refresh, or sort, the event is correctly triggered and my method is correctly executing.

is there any way to handle the button insert row, delete row etc.,? Or Am I doing anything fundamentally wrong here?

Thanks and Regards,

Mahesh.

2 REPLIES 2

uwe_schieferstein
Active Contributor
0 Kudos

Hello Mahesh

You need to "redefine" this standard ALV function because USER_COMMAND is NOT triggered for standard functions. For more details see thread:

Regards

Uwe

Former Member
0 Kudos

Hi,

Thanks a lot. I will do that as per your example.Thanks for the info.

Thanks and Regards,

Mahesh.