2010 Apr 29 7:34 AM
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.
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.
2010 Apr 29 7:40 AM
2010 Apr 29 7:53 AM
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.
2010 Apr 29 8:07 AM
2010 Apr 29 8:13 AM
HI,
Did you mention cols-selected = 'X' inside the loop of table control
inthe prorgam??
Regards and Best wishes.
2010 Apr 29 8:35 AM
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.
2010 Apr 29 8:56 AM
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.
2010 Apr 29 8:59 AM
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.
2011 Jun 18 7:44 AM
Thanks Krishna,
I was doing the same mistake. Your post helped me.
Thanks.