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

Regarding drop down box values

Former Member
0 Likes
405

Hi,

I need to enter values into drop down list box where these values are not coming from database. Please do the need.

Thanks & Regards,

Lakshmi

2 REPLIES 2
Read only

former_member196299
Active Contributor
0 Likes
368

hi ,

Code your program with the following logic :

here is few info about vrm_values :

type-pools : vrm.

types:

*-- Single Value in Value Set

begin of vrm_value,

key(40) type c,

text(80) type c,

end of vrm_value,

*-- Table of Values

vrm_values type vrm_value occurs 0 .

vrm_values is one of the parameters of type vrm_value in VRM_SET_VALUES function module .

<b>Use VRM_SET_VALUES is the function module to get input help .</b>

fill the values to be displayed in an itab and pass the values to the FM parameter VALUES .

module create_drop_down_box_material output.

select matnr from mara

into table l_tab_mara_matnr

where matkl = 'ZPMBMAT'.

if not l_tab_mara_matnr[] is initial.

select maktx from makt

into l_tab_collect_maktx_frm_db-material_descr

for all entries in l_tab_mara_matnr

where matnr = l_tab_mara_matnr-material_no.

append l_tab_collect_maktx_frm_db.

endselect.

endif.

loop at l_tab_collect_maktx_frm_db into l_wa_collect_maktx_frm_db.

l_wa_mat_descr-key = l_wa_collect_maktx_frm_db-material_descr.

append l_wa_mat_descr to l_tab_mat_descr.

endloop.

name = 'ZCOT_PPT_DTLS-MATERIAL_DESCR'.

call function 'VRM_SET_VALUES'

exporting

id = name

values = l_tab_mat_descr

exceptions

id_illegal_name = 1

others = 2.

free: l_tab_mat_descr,l_tab_collect_maktx_frm_db.

endmodule. " create_drop_down_box_material OUTPUT

Regards,

Ranjita

Read only

Former Member
0 Likes
368

refer this site.