Skip to Content
0
Former Member
Dec 04, 2008 at 04:16 PM

How to set column attributes in table control?

619 Views

I have the following requirement to build a table by using table control:

if content of col 1 = 'Y', enable input for col 2 for that line only.

if content of col 1 = 'N', disable input for col 2 for that line only.

So the input attribute for col 2 in each line can be different.

How can I achieve this?

I have tried using loop at screen or loop at tablecontrol-cols into wa_cols statements,

but these will change the entire column attributes to either on or off, and not on individual line.

Instead of changing the COLUMN attributes, I think I should change the CELL attributes.

What is the syntax for that, is there something like tablecontrol-field?

Thanks for any help in advance.