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

dropdown list in a module pool screen

Former Member
0 Likes
655

Hi,

There are 2 radio buttons in module pool for 2 Plants.

Now another plant has to be added in the screen. The radio button has to be replaced with a drop down list for these 3 plants.

How can we acheive this?

Thanks,

Kumar.

2 REPLIES 2
Read only

Former Member
0 Likes
477

goto the dynpro, remove the radio buttons, create a text-box and in it´s preferences chance the type to drop-down-list.

Read only

Former Member
0 Likes
477

Hi,

If u want a dropdown for the third plant you enter on the screen, You can use the FM 'VRM_SET_VALUES' to get the dropdown.

Just refer to this sample code to get a dropdown.

TYPE-POOLS: vrm.

PARAMETERS p_werks LIKE mseg-werks AS LISTBOX

VISIBLE LENGTH 20 OBLIGATORY.

DATA: t_werks TYPE vrm_values,

w_line LIKE LINE OF t_werks.

INITIALIZATION.

SELECT werks FROM mseg INTO table t_werks."(w_line-key, w_line-text).

*APPEND w_line TO t_carrid.

*ENDSELECT.

AT SELECTION-SCREEN OUTPUT.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = 'P_werks'

values = t_werks.

*END-OF-SELECTION.

WRITE: / 'Selected Carrid value:', p_werks.

Hope this is helpful.

Edited by: Kalyan Chakravarthi on May 29, 2008 11:55 AM