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

list box in Screen in module pool program.

Former Member
0 Likes
522

Hi,

i want to get a list box in Screen in module pool program.

Please send me the sample coding like POH evant and Function module,which we use to pass the ITAB.

Regards,

Naddy.

4 REPLIES 4
Read only

Former Member
0 Likes
503

Refer these programs:

DEMO_DYNPRO_DROPDOWN_LISTBOX

RSDEMO_DROPDOWN_LISTBOX

Regards,

Ravi

Read only

Former Member
0 Likes
503
Read only

Former Member
0 Likes
503

Hello!

Use standard function module VRM_SET_VALUES for this purpose. It has to be called at PBO and you have to pass a table to it, which contains internal values (like keys which the user shall not see) and the external values, which shall be displayed in the listbox.

Read only

vinod_gunaware2
Active Contributor
0 Likes
503

think this topic is best explained in the SAP Documentation. Here's the link - http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/content.htm

There was also a discussion on this topic sometime back in this forum, which you might find interesting -

report z.

type-pools: vrm.

data: it_val type vrm_values,

w_line like line of it_val.

parameters p_bukrs like t001-bukrs as listbox

visible length 25 obligatory.

initialization.

select bukrs butxt from t001 into (w_line-key, w_line-text).

append w_line to it_val.

check p_bukrs is initial.

p_bukrs = w_line-key.

endselect.

at selection-screen output.

call function 'VRM_SET_VALUES'

exporting

id = 'P_BUKRS'

values = it_val.

end-of-selection.

write: / 'Company Code:', p_bukrs.

regards

vinod