Skip to Content
0

ALV grid event change dropdown value

Oct 25, 2016 at 09:37 AM

166

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Sandra Rossi Oct 25, 2016 at 12:13 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Martin Svik Oct 25, 2016 at 01:07 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded