How to hide Table control Column?

Pasan Eeriyagama picture Pasan Eeriyagama · Jun 28, 2013 · Viewed 14.5k times · Source

Following code in PBO doesn't work to hide the column completely.

LOOP AT SCREEN.

    IF SCREEN-NAME EQ 'GT_SO-POSNR'
      SCREEN-INPUT = 0.
      SCREEN-ACTIVE = 0.
      SCREEN-INVISIBLE = 1.
      MODIFY SCREEN.
    ENDIF.
ENDLOOP.

But above is disabling the column, not hiding it. Any help how to hide the Column?

Answer

vwegert picture vwegert · Jun 28, 2013

Use the field INVISIBLE of the COLS table in the structure defined by the CONTROLS statement. The whole structure is documented here. There should be a sample program named RSDEMO02 in your system that lets you modify the properties of the table control and examine the results as you do so.