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

Drop down list for a Parameter

Former Member
0 Likes
585

hi

I have to create a Drop down list for Parameter on selection screen. Please tell me.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
532

Hi use this code

PARAMETER : listbox1 as listbox visible length 10.

and fill this list box using VRM_SET_VALUES function module.

let me know if you have any question.

Regards

kinjal

3 REPLIES 3
Read only

Former Member
0 Likes
532

Try searching in the ABAP-General forum and all will be revealed...

Read only

Former Member
0 Likes
532

Check the following code,

EPORT Zdrop_down .

type-pools:vrm.

PARAMETER : p_int AS LISTBOX VISIBLE LENGTH 30.

DATA : name TYPE vrm_id,

list TYPE vrm_values,

value LIKE LINE OF list.

AT SELECTION-SCREEN OUTPUT.

name = 'P_INT'.

value-key = '1'.

value-text = 'raj'.

APPEND value TO list.

value-key = '2'.

value-text = 'Prabhu'.

APPEND value TO list.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = name

values = list.

CLEAR list.

regards,

Prabhu

reward if it is helpful

Read only

Former Member
0 Likes
533

Hi use this code

PARAMETER : listbox1 as listbox visible length 10.

and fill this list box using VRM_SET_VALUES function module.

let me know if you have any question.

Regards

kinjal