I want to display a Combo Box on the selection screen. I have copied the standard code which is available on website and most of the discussions forms. The code is like this:
DATA: NAME TYPE VRM_ID,
LIST TYPE VRM_VALUES,
VALUE LIKE LINE OF LIST.
PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
AT SELECTION-SCREEN OUTPUT.
NAME = 'PS_PARM'.
VALUE-KEY = '1'.
VALUE-TEXT = 'LINE 1'.
APPEND VALUE TO LIST. VALUE-KEY = '2'.
VALUE-TEXT = 'LINE 2'.
APPEND VALUE TO LIST.
CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
WRITE: / 'PARAMETER:', PS_PARM.
This code is working fine in SAP version 4.6C.
But at the client side we have version 4.5B. When I copied the code in this version, it simply showed me the plane text box with no drop down option.
Can anybody pl. tell me whether it is version problem or some parameters we need to set. In anycase pl. let me know what to do to achieve the required functionality in 4.5B.
Thanks in advance,