Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

sample code on how to populate data in DropDownListbox

Hi all

i am new to the webdynpro for java.

i have one UI element called DropDownListBox and i want to populate some desired values to the dropdown list box.

what are the different ways are there to populate data in DropDownList box.

for example i have city as dropdownlist box and i want to populate some values in drop downlistbox like bangalore,hyderabad,chennai and delhi,

can you pls send the sample code on the same?


Suresh Babu

Former Member
Former Member replied


If you want to retrieve the city names then you can use the standard tables in R/3.

We have countries list in T500T. Like this we have table for the cities also.


You can manually populate a table and bind this table to the list box.

Please check out this link -



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question