2010 Feb 11 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?
2010 Feb 11 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.
endmoduleAlso check this thread.
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?
2010 Feb 11 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.
endmoduleAlso check this thread.
2010 Feb 11 10:42 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |