‎2008 May 29 10:46 AM
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.
‎2008 May 29 10:51 AM
goto the dynpro, remove the radio buttons, create a text-box and in it´s preferences chance the type to drop-down-list.
‎2008 May 29 10:54 AM
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