‎2006 Oct 06 1:40 PM
Hi all
i need a pull down menu in the selection screen based on
following:
lable Value Type comments
SurveyProvider T71JPR06 Pull Down
Menu
in comments he mentioned : All data returned for T71JPR06 must be within the data selection period defined in the report period selection
so how can i get the pull down menu
Thanks,
laxmi.A
‎2006 Oct 06 1:42 PM
Use the FM <b>VRM_SET_VALUES</b> to give the dropdown for a field in selection screen.
Prakash.
‎2006 Oct 06 1:44 PM
Refer the sample programs:
RSDEMO_DROPDOWN_LISTBOX or
DEMO_DROPDOWN_LIST_BOX
‎2006 Oct 06 1:52 PM
hi laxmi check the code below and award points if found helpful
***DATA DECLARATION
DATA : V TYPE VRM_VALUES.
DATA : DROPDOWN LIKE LINE OF V.
INITIALIZATION.
*** Vars for population of dropdown
DROPDOWN-KEY = '1'.
DROPDOWN-TEXT = 'BSE'.
APPEND DROPDOWN TO V.
DROPDOWN-KEY = '2'.
DROPDOWN-TEXT = 'NSE'.
APPEND DROPDOWN TO V.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'EXCH'
VALUES = V
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2.
IF EXCH = 1.
L_EXCH = 'BSE'.
ELSEIF EXCH = 2.
L_EXCH = 'NSE'.
ELSE.
FLAG_END = 'X'.
MESSAGE I000(ZZ) WITH 'Select an exchange from dropdown'.
STOP.
ENDIF.
****SELECTION SCREEN
PARAMETERS: EXCH(3) TYPE C AS LISTBOX VISIBLE LENGTH 10