Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

make column invisible in table control

Hello,

I need to make certain rows in a table control invisble on a certain condition.

I've tried to LOOP AT SCREEN at the table control loop using the screen-invisible = 1 and screen-active = 0, but it only disables the column and does not make it disapear.

Help anyone?

Former Member
Former Member replied

Hi

In PBO

LOOP AT ITAB.
module disable_column.
endloop.

in program

module disable_column.
" You can your conditions here like if  itab-field = 'ABC' Etc
LOOP AT tc-cols INTO cols." WHERE selected = 'X'.
    IF cols-selected = 'X'.
      cols-invisible = 1.
      MODIFY  tc-cols FROM cols INDEX sy-tabix.
    ELSE.
      CLEAR cols-selected.
      cols-invisible = 0.
      MODIFY tc-cols FROM cols INDEX sy-tabix.
    ENDIF.
  ENDLOOP.
endmodule

Also check this thread.

Module Pool table controle row level prob

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question