Skip to Content
0
Dec 11, 2006 at 08:23 PM

Cell - Display

24 Views

Hi,

I have table control have 10 columns . My requirement is i need to make the

alternative row cells in display mode.

ie i need to convert the

1st row 3rd column,

3rd row 5th column

5th row 3rd column

7th row 5th column .............like that

I am using the following code to make this happen

loop at tabcntl7-cols into i_cols.

v_tabix1 = sy-tabix.

condense i_cols-screen-name no-gaps.

v_strlen = strlen( i_cols-screen-name ).

search i_cols-screen-name for '-'.

if sy-subrc eq c_0.

v_sstrg = sy-fdpos + c_1.

v_strlen = v_strlen - v_sstrg.

endif.

move i_cols-screen-name+v_sstrg(v_strlen) to v_scrfld.

read table i_yfe047_1 into wa_yfe047_1

with key fieldname = v_scrfld.

if sy-subrc eq c_0.

i_cols-screen-input = c_off.

else.

i_cols-screen-input = c_on.

endif.

modify tabcntl7-cols from i_cols index v_tabix1.

endloop.

But currently system changing all rows to display mode.

Any suggestions?

Thanks

aRs