Question:
In screen painter how can i hide some columns in table control.?
Answer:
DATA: wa_ctrl TYPE cxtab_column. "to hide table control columns
LOOP AT tc_pos_ctrl-cols INTO wa_ctrl
WHERE screen-name = 'P-TTYPE'
OR screen-name = 'P_TOBID'.
wa_ctrl-invisible = 'X'.
MODIFY tc_pos_ctrl-cols FROM wa_ctrl.
ENDLOOP.
where tc_pos_ctrl is the table control name and P_TTYPE and P_TOBID are the columns in that.
If you want more help on this you can check program "SAPLRHPP" in which screen numbers 2101, 2200, 2400 etc. and in PBO module "<screen_number>_hide_column".