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 event change dropdown value

Former Member
0 Kudos

Hi there,

i have an editable ALV grid with many fields in a row including one dropdown field. now i want to do some actions DIRECTLY when the drop down value has been changed. this only works when user pushes ENTER, then the data_changed event will be triggered.

now i found a "half working solution" with calling this one:

 CALL METHOD g_grid->register_edit_event
   EXPORTING
     i_event_id = cl_gui_alv_grid=>mc_evt_modified.

This event triggers EVERY "move" in the ALV, even when entering a value in one field and jump to the next with tab-key, etc....

I don't want this behaviour, in ONLY want it when user changes a value in the dropdown. everything else should be handled with pushing enter.

any idea how to do this ?

br Martin

2 REPLIES 2

Sandra_Rossi
Active Contributor
0 Kudos

I don't know. I only see workarounds for that : either use a F4 or a hotspot or a context menu to call the ABAP program immediately. Only the context menu is able to display values below the selected cell.

Former Member
0 Kudos

Hi Sandra,

i also don't find a solution for that. F4 is no option here, as the application is "ready to use" and i can't change it here. It is a simple requirement, but it seems that is not possible to do it 😞

br Martin