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

Table Control Fields Hide

Former Member
0 Likes
485

Hello Everybody,

Can someone tell me how can we hide and unhide table control fields.

I have written the following code, but its not working -

TC_0201 is the table control.

LOOP AT TC_0201-COLS INTO COLS.
    IF SY-TABIX = 1.
      COLS-SCREEN-INVISIBLE = 1.
      COLS-SCREEN-INPUT = 0.
      COLS-SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY TC_0201-COLS FROM COLS INDEX SY-TABIX.
  ENDLOOP.

Please help me with this.

Thanks,

Sneha Singh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
440

Hi

Try to set the field INVISIBLE of structure COLS and not substructure SCREEN

LOOP AT TC_0201-COLS INTO COLS.
    IF SY-TABIX = 1.
       COLS-INVISIBLE = 'X'.
       COLS-SCREEN-INPUT = 0.
    ENDIF.
    MODIFY TC_0201-COLS FROM COLS INDEX SY-TABIX.
  ENDLOOP.

Max

2 REPLIES 2
Read only

Former Member
0 Likes
441

Hi

Try to set the field INVISIBLE of structure COLS and not substructure SCREEN

LOOP AT TC_0201-COLS INTO COLS.
    IF SY-TABIX = 1.
       COLS-INVISIBLE = 'X'.
       COLS-SCREEN-INPUT = 0.
    ENDIF.
    MODIFY TC_0201-COLS FROM COLS INDEX SY-TABIX.
  ENDLOOP.

Max

Read only

0 Likes
440

Max, thank you once again. I appreciate the help.