Application Development and Automation 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: 
Read only

need an fm for popup with a dropdown list

Former Member
0 Likes
8,294

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
4,910

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

8 REPLIES 8
Read only

Former Member
0 Likes
4,910

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

Read only

Former Member
0 Likes
4,911

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

Read only

0 Likes
4,910

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

Read only

0 Likes
4,910

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,

Read only

0 Likes
4,910

Hi,

Finally i used the old solution to solve, calling a custom screen..

Thanks,

Shweta

Read only

0 Likes
4,910

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.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
4,910

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.

Read only

Former Member
0 Likes
4,910

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.