2009 Sep 29 5:54 PM
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.
2009 Sep 29 6:01 PM
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
Max, thank you once again. I appreciate the help.
2009 Sep 29 6:01 PM
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
2009 Sep 29 6:29 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |