# Hiding SAP ABAP table control column

You can use the structure CXTAB_CONTROL that has the following components:

INVISIBLE C(1) Flag (X or blank) for visibility of entire table control.

You can use sample program: RSDEMO02 that allow you to modify properties of table control and view the results.

When you use this Table control INVISIBLE, this changes the content to “xxxxxxxxxxxx” like a hidden password. If you want to hide the complete column including data and header, your code should be like this −

MODULE MODIFY_100 OUTPUT.
DATA wa_tabctrl TYPE cxtab_column .

looping the table control

LOOP AT TABCTRL-COLS INTO WA_TABCTRL.
IF WA_TABCTRL-NAME =  'POSNR'. 

When you get on the desired screen you need to flag the INVISIBLE field for the table control, not the SCREEN table.

WA_TABCTRL-INVISIBLE =  'X'.

Modify the table for table control like this

      MODIFY TABCTRL-COLS FROM WA_TABCTRL.
ENDIF.
ENDLOOP.
ENDMODULE.
Swarali Sree

I love thought experiments.