Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

VRM_SET_VALUES for Table control

Former Member
0 Likes
771

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.

2 REPLIES 2
Read only

Former Member
0 Likes
574

Hi,

I have the same problem... How did you solve it?

Thanks!

Read only

lijisusan_mathews
Active Contributor
0 Likes
574

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.