hi to all,
i want to make my table control enable & disable at runtime according to some logic.
at first in PBO i was tried to disabled column number 1 with help of this code.
LOOP AT TC_RISK_EX-COLS INTO D_TC_EXC WHERE INDEX = 1.
D_TC_EXC-SCREEN-INPUT = 0.
MODIFY TC_RISK_EX-COLS FROM D_TC_EXC INDEX SY-TABIX.
ENDLOOP.
but after that i was tried to make it enable with help of this code. but it is not working.
LOOP AT TC_RISK_EX-COLS INTO D_TC_EXC WHERE INDEX = 1.
D_TC_EXC-SCREEN-INPUT = 1.
MODIFY TC_RISK_EX-COLS FROM D_TC_EXC INDEX SY-TABIX.
ENDLOOP.
Is there any Solution for these ?