Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to create drop down menu in my report

hi all

i have a list of options which i have to display as a drop down menu

pls guide me to do

thanks in advance

Tags:
Former Member
Former Member replied

hi,

try this...

parameters: p_mode as listbox visible length 10.

AT SELECTION-SCREEN OUTPUT.

PERFORM fill_dropdown_list USING 'p_mode'(001).

FORM fill_dropdown_list USING value(f_parameter).

TYPE-POOLS: vrm. " For parameter drop down lists

DATA: name TYPE vrm_id,

list TYPE vrm_values,

value LIKE LINE OF list.

name = f_parameter.

value-key = 'C'.

value-text = 'Fist'.

APPEND value TO list.

value-key = 'F'.

value-text = 'Second'.

APPEND value TO list.

value-key = 'H'.

value-text = 'Third'.

APPEND value TO list.

value-key = 'D'.

value-text = 'Forth'.

APPEND value TO list.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = name

values = list.

ENDFORM. " fill_dropdown_list

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question