‎2006 Apr 21 1:25 PM
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.
‎2006 Apr 21 1:26 PM
Refer these programs:
DEMO_DYNPRO_DROPDOWN_LISTBOX
RSDEMO_DROPDOWN_LISTBOX
Regards,
Ravi
‎2006 Apr 21 1:34 PM
Hi Naddy,
Just check this link..
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/content.htm
Regards,
SP.
‎2006 Apr 21 1:34 PM
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.
‎2006 Apr 21 1:37 PM
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