02-11-2010 10:16 AM
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?
02-11-2010 10:36 AM
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.
02-11-2010 10:36 AM
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.
02-11-2010 10:42 AM