To make TABLE CONTROL fields INVISBLE based on condition.
My problem is with the fields of table control in Module Pool. I have 7 fields designed in SE51 for the table control. The display of these 7 fields on the table control varies based on certain conditions written in PBO modules.
For one condition in the PBO module, I should have only 4 fields to be displayed in the table control. The remaining 3 should NOT be VISIBLE on the table control.
I can make them inactive (VISIBLE) but cannot make them INVISIBLE. In SCREEN structure INVISIBLE field is there. But it is not working.
Please suggest me a way to make the table control fields invisible for a condition specified.
DATA COLS LIKE LINE OF TABLE_CONTROL-COLS.
loop at TABLE_CONCTROL-COLS into COLS.
if COLS-SCREEN-NAME = 'HIDE FIELD'.
COLS-INVISIBLE = 'X'. "HIDE THIS COLUMN