‎2012 Feb 07 11:25 AM
Hi,
In my requirement i need to provide a pop-up with a drop-down list. I have an internal table with some values and these internal table value must be populated as drop down list in the pop-up.
The pop-up must allow user to select some value from the drop-down provided.
I could achieve it by calling a screen with an input field (as list box).
But i wanted to know if there is any function module providing the same functionality. i already tried with 'POPUP_GET_VALUES' but it didnt full-fill my requirement.
Thank you,
Swetha
‎2012 Feb 07 11:43 AM
try this:
POPUP_TO_DECIDE_LIST
this would give u a list of radiobuttons, for more please do search in se37 itself you'll get more.
IHC_FXNET_POPUP_PICK_FROM_LIST <--- this may suit ur requirement better
Edited by: Kartik Tarla on Feb 7, 2012 5:17 PM
‎2012 Feb 07 11:40 AM
Hi,
Once try this function module 'reuse_alv_popup_to_select'. or create a screen and maintain dropdown lis and write logic in pai and pbo or if your are working with selection-screen parameters, make parameters as list box, press f1 on list box, you will get sap-help
Edited by: Parupelly on Feb 7, 2012 5:17 PM
‎2012 Feb 07 11:43 AM
try this:
POPUP_TO_DECIDE_LIST
this would give u a list of radiobuttons, for more please do search in se37 itself you'll get more.
IHC_FXNET_POPUP_PICK_FROM_LIST <--- this may suit ur requirement better
Edited by: Kartik Tarla on Feb 7, 2012 5:17 PM
‎2012 Feb 07 12:43 PM
Hi Kartik,
IHC_FXNET_POPUP_PICK_FROM_LIST
This FM is displaying a pop up with all the values in a list and is providing choose button.
But i need to display all the values in a drop down list which allows user to select single value from them.
Thank you,
Shweta
‎2012 Feb 07 7:11 PM
Hi Shweta,
IHC_FXNET_POPUP_PICK_FROM_LIST could be considered as an alternate but you are right it doesnt give you a list box,
you could try this: BSP_WD_WB_POPUP_DECIDE_LIST but again no list. bjut a better interface than previous, if you want exactly list box then you could call a custom screen, may be a ZfM which you could reuse too.
Regards,
‎2012 Mar 08 9:44 AM
Hi,
Finally i used the old solution to solve, calling a custom screen..
Thanks,
Shweta
‎2012 Apr 10 1:50 PM
But i wanted to know if there is an Function Module that provides a pop-up with drop-down.
i could achieve a pop-up with list of all the values i need, but i wanted a drop-down list instead.
Thanks all,
Swetha.
‎2012 Feb 07 11:52 AM
Hi,
IMO there is no such function readily available. If you are very much worried about calling a screen with coordinates , then popup an ALV with single selection.
Are the lis box values directly coming from db tables or are you manually populating it. Anyways list box allows you to select single entry. Instead of all this work around , just display that field with f4 help and select the value.
‎2012 Feb 07 1:10 PM
Hi,
data : o_grid type ref to cl_gui_alv_grid.
DATA : lt_drop type lvc_t_drop,
ls_drop type lvc_s_drop.
loop the internal table which is having values.
loop at itab into wa.
clear ls_drop.
ls_drop-handle = '25'.
ls_drop-value = wa-fieldname.
append ls_drop to lt_drop.
endloop.
CALL METHOD o_grid->set_drop_down_table
EXPORTING
it_drop_down = lt_drop.
Above call method should be performed before display.
Regards,
Aditya.