‎2005 Jan 24 12:56 PM
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
‎2005 Jan 24 1:03 PM
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
‎2005 Jan 24 1:48 PM
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.