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

pull down menu

Former Member
0 Likes
536

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

3 REPLIES 3
Read only

Former Member
0 Likes
447

Use the FM <b>VRM_SET_VALUES</b> to give the dropdown for a field in selection screen.

Prakash.

Read only

Former Member
0 Likes
447

Refer the sample programs:

RSDEMO_DROPDOWN_LISTBOX or

DEMO_DROPDOWN_LIST_BOX

Read only

rahulkavuri
Active Contributor
0 Likes
447

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