‎2010 Nov 23 1:21 PM
Hello Freinds,
I have the requirement as, I have drop down list in screen painter and want to fill the values in that list using database table.
So using foreign key table I have updated the values in the list.
But now client wants me to fill the dropdown list with ID as well as description..
Please suggest me how to achieve this.
Thanks and Regards
Nishad
‎2010 Nov 23 1:22 PM
I have used ID as list value earlier using foreign key..
But how to add description in that..
‎2010 Nov 23 1:29 PM
Hi,
You the FM 'F4IF_INT_TABLE_VALUE_REQUEST' and try.
Fill the internal table with the key and description and pass the same to above FM.
You will get sample code by searching the forum.
Thanks.
Anversha
‎2010 Nov 24 12:50 PM
HI,
Use the Function module VRM_SET_VALUES to fill the list box with values which you want.
Hope this will help you.
Regards,
Kiran
‎2010 Dec 02 11:05 AM
Hi Nishad
As Kiran Mentioned, Use VRM_SET_VALUES FM to fill your drop down list and concatenate the description and value in 'value field of VRM_set_value fm table.
search on VRM_SET_VALUES, you will find the code.
thanks
Lalit Gupta
‎2010 Dec 03 9:15 AM
Hi,
Check the following link:
http://wiki.sdn.sap.com/wiki/display/Snippets/Abap-Create+Listbox
Regards,
Bhaskar