cancel
Showing results for 
Search instead for 
Did you mean: 

How to Catch Add new row Event from the ALV_grid tool bar button.

Former Member
0 Kudos

Hi dear fellow abaper

I need to catch event when the "Add new row" from the alv_grid tool bar.

UI Code should be MC_FC_LOC_INSERT_ROW.

I have tried to register event "User_command " and before_user_command

But I didn't get any succes.

I would like to check if some field from the header part of the dynpro have been selected properly.

If not I want to cancel the insert.

But currently the new line is inserted whatever the check result...

Thanks for your Help.

Cheers

Accepted Solutions (0)

Answers (1)

Answers (1)

uwe_schieferstein
Active Contributor
0 Kudos

Hello Yvon

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

Regards

Uwe