06-28-2007 3:52 PM
Hi
How to disable fields in Table control??? I want to disable particular row in table control when enter datas are correct.lets take as example ME41 or ME51 table control.
Can anyone tell how to do disable in this table control
Points will be rewarded if its helpful.
Thanks
senthil
06-28-2007 3:58 PM
If you want to disable the row then you can use
in pbo module create a module in side loop,
loop at itab with control tc.
module change_screen.
endloop.
in module,,,,,
loop at screen.
if condition.
screen-input = 0.
modify screen.
endif.
endloop.
Regards
Vijay
06-28-2007 3:59 PM
Hi,
You need to execute a PBO module between LOOP AT WITH table_control and ENDLOOP.
In the PBO module
LOOP AT itab WIHT table_control.
module init_tab.
ENDLOOP.
MODULE init_tab OUTPUT.
LOOP AT SCREEN.
IF SCREEN-NAME = 'FIELD1' and field1 = 'ABC' "check your data here
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDMODULE.
Regards,
Sesh