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 Module Pool Programming

Former Member
0 Likes
501

Hi I am having a screen in module pool programming. One in that screen one input/output element is there and in the attributes i have selected as List box. Now how to populate certain values to the same.

Regards,

Amit

2 REPLIES 2
Read only

Former Member
0 Likes
357

You need this type

TYPE-POOLS: vrm.

DATA: name TYPE vrm_id,

list TYPE vrm_values,

value LIKE LINE OF list.

REFRESH list.

CLEAR list.

name = name_of_your_field.

You need to fill the table with pairs of key/value

value-key = 'key1'.

value-text = 'value1'.

APPEND value TO list.

value-key = 'key2'.

value-text = 'value2'.

APPEND value TO list.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = name

values = list.

Message was edited by: Juan Carlos Delgado

Read only

Former Member
0 Likes
357

Hello Amit,

I 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 -

Please get back if you have need further help on this one. And please close the thread if you have succeeded with your requirement.

Regards,

Anand Mandalika.