‎2011 Nov 25 3:30 AM
Hi
I want to hide one column in table control, which is created using wizard.
In dynpro layout, i can see in the attributes of that field, invisible attribute is disabled. i cant check it invisble.
Can you tell me how to enable it?
regards
Chandra
‎2011 Nov 25 4:10 AM
Hi princeck.
The invisible option will be enabled only for GUI elements like text box,radio button,push button etc.
To make a column in a table control invisible, you have to write the business logic in PBO (loop at screen...endloop) of that screen.
‎2011 Nov 25 4:10 AM
Hi princeck.
The invisible option will be enabled only for GUI elements like text box,radio button,push button etc.
To make a column in a table control invisible, you have to write the business logic in PBO (loop at screen...endloop) of that screen.
‎2011 Nov 25 4:42 AM
hi,
you can not hide any colum automatically if you have used table control wizard. insted you can use LOOP ENDLOOP cocept . The LOOP ENDLOOP code has to be written in PBO block.
Thanx
Ankitesh
‎2020 May 08 5:32 PM
tbc-hide-column.txt
MODULE MODIFY_100 OUTPUT.
DATA wa_tabctrl TYPE cxtab_column .
LOOP AT TABCTRL-COLS INTO WA_TABCTRL.
IF WA_TABCTRL-screen-NAME = 'zemp_nm'.
WA_TABCTRL-INVISIBLE = 'X'.
MODIFY TABCTRL-COLS FROM WA_TABCTRL.
ENDIF.
ENDLOOP.
ENDMODULE.
Try This Code. Definitely you can hide the column. You Should write this code in PBO and out side the loop of TBC.