11-14-2007 3:43 AM
Hi gurus,
I want to display drop down listbox with 5 entries in dialog programing.
Can anyone provide the solution for this .
Points will be rewarded to useful answers.
Thanks.
11-14-2007 3:47 AM
hi
good
go through this link,hope this will help you to solve your problem
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/content.htm
thanks
mrutyun^
11-14-2007 3:57 AM
hi,
data: p_int type LISTBOX .
*For list box
DATA:i_natio TYPE vrm_values,
w_natio LIKE LINE OF i_natio.
MODULE fill_table_control OUTPUT.
clear i_natio.
refresh i_natio.
w_natio-key = '1'.
w_natio-text = 'ARE1'.
APPEND w_natio TO i_natio.
w_natio-key = '2'.
w_natio-text = 'ARE3'.
APPEND w_natio TO i_natio.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'WA_TABLECTRL-J_1IFRMTYP1'
values = i_natio
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
regards,
paras
11-14-2007 4:00 AM
TYPE-POOLS vrm.
DATA: name TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list.
clear list.
REFRESH LIST.
value-key = '1'.
value-text = 'Append'.
append value to list.
value-key = '2'.
value-text = 'Replace All'.
append value to list.
value-key = '3'.
value-text = 'Replace-Division'.
append value to list.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'UPLOADACTION'
VALUES = list.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
This will create a listbox on screen with name 'UPLOADACTION', whose values will be 1, 2 3 and display values will be 'APppend' , 'Replace All', and 'Replace-division' respectively.
Reward if useful.
11-14-2007 4:45 AM
I created a list box in screen painter.how to add contents to the drop down listbox?
FM given by you is not working in my case.can you help me to provide the solution.
Thanks.