Application Development 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: 

Dropdown listbox in dialog programming

former_member194747
Participant
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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^

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

former_member194747
Participant
0 Kudos

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.