‎2006 Jul 25 11:33 AM
Hi,
I have a table control on a screen in "Z" module pool program.
Now at runtime, I want to make one column of the table control invisible. How do I do it?
Thanks and Regards,
Mick
‎2006 Jul 25 11:35 AM
in PBO u can do like this ......
loop at screen.
if screen-name = TABCNTRL-FNAME.
screen-invisible = 1.
modify screen.
endif.
endloop
‎2006 Jul 25 11:36 AM
Hi,
Write below code in PBO in table control loop , otherwise screen changes will not get reflected.
LOOP WITH CONTROL tc_detail.
MODULE change_tc_detail.
ENDLOOP.
MODULE change_tc_detail OUTPUT.
Loop AT screen.
if screen-name = 'FD1'.
screen-invisible = 1.
modify screen.
endif.
endloop.
ENDMODULE.
Regards
Appana
‎2006 Jul 25 11:37 AM
hi
first of all assign a group to that perticular field.
then,
use the code in PBO.
loop at screen.
if screen-group1 = <grpname>.
screen-invisible = 1.
modify screen.
endloop.
regards
sushant.
‎2006 Jul 25 11:54 AM
‎2006 Jul 25 11:54 AM
Hi,
TRy this-
loop at screen.
if screen-name = TABCNTRL-FNAME.
screen-active = 1.
screen-input = 0.
screen-output = 1.
screen-invisible = 0.
modify screen.
endif.
endloop.
Regards,
Seema.
‎2006 Jul 25 12:48 PM
Hi,
write this code in PBO module.
<b>
DATA: waa LIKE LINE OF TAB_CONTROL-cols.
CLEAR waa.
LOOP AT TAB_CONTROL-cols INTO waa.
IF waa-index = 1.
waa-invisible = 'X'.
MODIFY TAB_CONTROL-cols FROM waa.
ENDIF.
ENDLOOP.</b>
REgards,
Wasim ahmed