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: 

Drop Down in ALV Flashes and Disappears.

Former Member
0 Kudos

Hi All,

I have a strange issue going on. In an ALV (built on CL_GUI_ALV_GRID) I have got an editable field with a drop down option.Now lets say I have 10 rows in an ALV. I chose an entry from the drop down in one of the rows (this happens OK) and immediately after that I go on a click on drop down for any other row. What happens is that the drop down for the new row that I am in flashes and disappears. Now if I click for the drop down again the drop down appears. Basically whenever an entry is selected in one of the rows, drop down function immediately after that does not work. I have a feeling that it has something to do with the data _changed event but I am not sure how to handle that event.

I saw a similar thread [ALV Menu Flash|; but could not figure it out.

Any suggestions ?

Thanks

Anuj

1 REPLY 1

former_member226225
Contributor
0 Kudos

Hi,

Let us see the code and check it

Make the necessary changes at the fieldcatalog

clear ls_fcat.

ls_fcat-fieldname = 'COURSE'.

ls_fcat-col_pos = 5.

ls_fcat-coltext = 'Course'.

ls_fcat-outputlen = 10.

ls_fcat-DRDN_HNDL = 25.

ls_fcat-edit = 'X'.

APPEND ls_fcat to lt_fcat.

and in the class cl_gui_alv_grid we have one method SET_DROP_DOWN_TABLE

and it is having one parameter called iT_DROPDOWN of type LVC_T_DROP

generate the internal table and call the method set_drop_down_table

clear ls_drop.

ls_drop-handle = '25'.

ls_drop-value = 'ABAP'.

append ls_drop to lt_drop.

clear ls_drop.

ls_drop-handle = '25'.

ls_drop-value = 'CRM'.

append ls_drop to lt_drop.

clear ls_drop.

ls_drop-handle = '25'.

ls_drop-value = 'WEBDYNPRO'.

append ls_drop to lt_drop.

CALL METHOD o_grid->set_drop_down_table

EXPORTING

it_drop_down = lt_drop.

Thanks & Regards.

Raghunadh.K