2012 Jul 31 3:31 PM
Hi Experts ,
I have a scenario where I need to fetch more than one record from a drop down list for a column in ALV Module Pool.
I am not able to find checkbox (or any other alternative) along with the drop down values .
This is how the dropdown code looks like :
FORM set_dropdown .
DATA : itab TYPE string OCCURS 0 WITH HEADER LINE .
DATA: lt_dropdown TYPE lvc_t_drop,
ls_dropdown TYPE lvc_s_drop.
SPLIT wa_delivery-bin AT ',' INTO TABLE itab.
LOOP AT itab.
ls_dropdown-handle = '1'.
ls_dropdown-value = itab.
APPEND ls_dropdown TO lt_dropdown.
ENDLOOP.
CALL METHOD o_grid->set_drop_down_table
EXPORTING
it_drop_down = lt_dropdown.
ENDFORM.
2012 Aug 02 1:03 PM
Hi All,
Thanks for your suggestions. Happy to inform that I have been able to do this .However, there is a sloght modification. Instead of List Box drop down , I have use a Pop up with ALV FM REUSE_ALV_POPUP_TO_SELECT.
It really suits the purpose.
2012 Jul 31 7:28 PM
I do not have a way of doing what you want, but I do know that a list box is designed to select only 1 value. You may have to write a customized dialog box with a table control to select multiple values from a list.
2012 Jul 31 8:16 PM
If you're using CL_GUI_ALV_GRID you can "fake" a checkbox by doing the following things:
2012 Aug 02 1:03 PM
Hi All,
Thanks for your suggestions. Happy to inform that I have been able to do this .However, there is a sloght modification. Instead of List Box drop down , I have use a Pop up with ALV FM REUSE_ALV_POPUP_TO_SELECT.
It really suits the purpose.