Skip to Content

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

Listbox problem in Table control

Hi all,

I've a table control, that I fill with data from a table.

When the UI field in the table contains "SINGLE01", "SINGLE02", ... I will need to add a listbox to the tablecontrol.

01 for first listbox, 02 for second listbox, ...

It works but when I have more listboxes in 1 tablecontrol, I have 1 problem.

All the values (from Listbox 1, 2 and ...) will be visible in all listboxes.

I fill the listbox with FM CALL FUNCTION 'VRM_SET_VALUES'

Listbox field: ITAB_SINGLE_TEL-VALUE

I my example: I have 2 listboxes.

Reduction and promo, but all values are visible in the first listbox and in the second listbox.

[Example|http://www.verreydt.eu/listbox.jpg]

How can I make sure that I have only the values from listbox 1 (in table with UI field SINGLE01) in the first listbox and only the values from listbox 2 (in table with UI field SINGLE02) in the second listbox.

Remark: I don't know how many listboxes I will have when I create/start the program, It depends how many data is available in the table.

Kind regards,

Hans

Former Member
Not what you were looking for? View more on this topic or Ask a question