cancel
Showing results for 
Search instead for 
Did you mean: 

handler standard function of alv

Former Member
0 Kudos

Hi,

Which event handles the standard function such as insert row, delete etc.of an ALV?

Best regards,

ts

Accepted Solutions (0)

Answers (1)

Answers (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi ts,

Unfortunately, the events "ON_STD_FUNCTION_AFTE" or "ON_STD_FUNCTION_BEFO" are also not triggering upon standard functions like insert row, append row, etc

I suggest you the below points


  • Disable the standard funcitons like InsertRow, AppendRow,DeleteRow as below

          lo_mode->if_salv_wd_std_functions~set_edit_append_row_allowed( abap_false )

          lo_mode->if_salv_wd_std_functions~set_edit_insert_row_allowed( abap_false )

          lo_mode->if_salv_wd_std_functions~set_edit_delete_row_allowed( abap_false )

  • Create your own toolbar functions for InsertRow, DeleteRow
  • Now, you can capture the action in event ON_FUNCTION of alv

Hope this helps you.

Regards,

Rama