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

To Hide column in Table control

Former Member
0 Likes
2,623

Hello all,

I want to hide a field in Table control.

I pass 'Invisible = 'X' for table control column.

But still it is visible in table control.

Do i need to maintain any other thing.?

Thanks,

Krishna.

8 REPLIES 8
Read only

Former Member
0 Likes
1,257

HI,

Check this links

Regards and Best wishes.

Read only

0 Likes
1,257

Hello Kiran,

I did that, Still it is not working..

Any attributes of table control to be checked to change table control columns at runtime?

Thanks,

Krishna.

Read only

0 Likes
1,257

Hi

Check the below thead

Cheerz

Ram

Read only

0 Likes
1,257

HI,

Did you mention cols-selected = 'X' inside the loop of table control

inthe prorgam??

Regards and Best wishes.

Read only

0 Likes
1,257

I did in this way..

LOOP AT tctrl_item-cols INTO ls_wa.

IF ls_wa-screen-name EQ 'ITEM-ZMAIN'.

ls_wa-screen-invisible = 'X'.

MODIFY tctrl_item-cols FROM ls_wa TRANSPORTING screen-invisible.

ENDIF.

ENDLOOP.

any thing wrong?

Thanks,

Krishna.

Read only

0 Likes
1,257

HI,

Try this code.


LOOP AT tctrl_item-cols INTO ls_wa.
  loop at ls_wa-screen.
IF ls_wa-screen-name CS 'ITEM-ZMAIN'.
ls_wa-screen-invisible = 'X'.
MODIFY tctrl_item-cols FROM ls_wa TRANSPORTING screen-invisible.
ENDIF.
endloop.
ENDLOOP.

Regards and Best wishes.

Read only

Former Member
0 Likes
1,257

Resolved..

Thanks Kiran and Ram.

I was passing lwa_cols-screen-Invisible = 'X'.

It should be lwa_cols-Invisible = 'X'.

Its typing mistake.

Thanks,

Krishna.

Read only

0 Likes
1,257

Thanks Krishna,

I was doing the same mistake. Your post helped me.

Thanks.