‎2010 Jan 22 12:23 PM
Hi,
I have an requirement to hide table control column. I tried the below code but it is not hiding it.
LOOP AT SCREEN.
IF screen-name EQ 'Table control column name which has to be hidden'
screen-invisible = 1.
screen-active = 0.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Could you any one suggest how to do this.
Thanks in Advance.
‎2010 Jan 22 3:12 PM
Hi Saba,
Try this out,
LOOP AT tc_release_ord-cols INTO wa_cols. " tc_release_ord -
CASE wa_cols-screen-name.
WHEN 'ZRELEASE_ORDER-SPOTS1'. ---> Column Name
wa_cols-invisible = 'X'. " Hide
MODIFY tc_release_ord-cols FROM wa_cols. Modify Table Control
endcase.
Hope it helps you,
Regards,
Abhijit G. Borkar
‎2010 Jan 22 3:13 PM
The table control has deep structure 'COLS'.
set the property 'invisible'.
loop at tbl_ctrl-cols into wa.
if wa-screen-group1 = 'FLD'.
wa-invisible = 1.
modify tbl_ctrl-cols from wa.
endif.
endloop.
‎2010 Jan 23 8:41 AM
Hi,
Simple in the PBO u have to write the following code:----
data : wa_cols like line of tc_cm-cols.
Loop at tc_cm-cols into wa_cols.
if wa_cols-screen-name = '......'.
wa_cols-screen-output = 0.
wa_cols-screen-active = 0.
wa_cols-invisible = 'X'.endif.
modify tc_cm-cols from wa_cols.
Endloop.