Skip to Content

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

To make TABLE CONTROL fields INVISBLE based on condition.

Hello Experts,

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.

Regards.

replied

PBO:

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

MODIF TABLE_CONCTROL-COLS

FROM COLS

TRANSPORTING INVISIBLE

endif.

endloop.

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