Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hide Table Control Column

Former Member
0 Likes
758

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.

3 REPLIES 3
Read only

Former Member
0 Likes
489

Hi Saba,

Try this out,

LOOP AT tc_release_ord-cols INTO wa_cols. " tc_release_ord -


> Table control Name

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

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
489

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.

Read only

Former Member
0 Likes
489

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.