‎2007 May 29 11:39 AM
Hi,
We are currently using VRM_SET_VALUES function module to control the listbox values inside a table control. However, we would like to have different listbox values for different rows on the table control.
For example:
Row 1/Field1 will have the following listbox values: A/B/C/D
Row 2/Field1 will have the following listbox values: E/F/G/H
However, since a the fields in a table control will have the same fieldname, regardless of what Row the field is in, once you pass the field name to VRM_SET_VALUES, all fields will have the same listbox values.
field_id = tcontrol-field1.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = field_id -
> The field on the table control
VALUES = values_itab
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2
What will happen above is all the tcontrol-field1 fields (regardless of row) will have the same listbox values.
Is there a way to control the listbox values per row ? Is there another FM available ?
Thanks.
‎2011 Jul 15 9:58 AM
‎2011 Jul 15 10:18 AM
Would you try using F4 help instead of list box..
In that case, you can use f4_int_help_value_request in teh POV module for that field. In taht case, you can read the line number and populate the corresponding values.