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

how to change TableControl-COLS data

Former Member
0 Likes
446

Hi ,expert ,

I create a screen to show day1~day31 data .

and I want to disabled field day31 base month days.

I know i can set

TC-cols[31]-INVISIBLE = 'X' .

The field day31 will be disappeared .

but I don't know how to change data in deep structure .

some cane tell me how to do it ?

thanks for your help .

Hi ,expert ,

I create a screen to show day1~day31 data .

and I want to disabled field day31 base month days.

I know i can set

TC-cols[31]-INVISIBLE = 'X' .

The field day31 will be disappeared .

but I don't know how to change data in deep structure .

some cane tell me how to do it ?

thanks for your help .

1 REPLY 1
Read only

Former Member
0 Likes
414

share...

DATA: I_COLS LIKE LINE OF TC_PLAN-COLS.

LOOP AT TC_PLAN-COLS INTO I_COLS .

CASE W_LAST .

WHEN 31 .

I_COLS-INVISIBLE = '' .

WHEN 30 .

IF I_COLS-SCREEN-NAME = 'I_PLAN_QTY-DD31' .

I_COLS-INVISIBLE = 'X' .

ENDIF.

WHEN 29 .

IF I_COLS-SCREEN-NAME = 'I_PLAN_QTY-DD31' OR I_COLS-SCREEN-NAME = 'I_PLAN_QTY-DD30' .

I_COLS-INVISIBLE = 'X' .

ENDIF.

WHEN 28 .

IF I_COLS-SCREEN-NAME = 'I_PLAN_QTY-DD31' OR I_COLS-SCREEN-NAME = 'I_PLAN_QTY-DD30' OR I_COLS-SCREEN-NAME = 'I_PLAN_QTY-DD29'.

I_COLS-INVISIBLE = 'X' .

ENDIF.

ENDCASE .

MODIFY TC_PLAN-COLS FROM I_COLS INDEX SY-TABIX.

ENDLOOP .