‎2007 Aug 06 9:12 AM
Hi,
I have a Table Control with some fields.ther is a field TYPE and VENDOR.
if type = F then the Vendor field accepts input.
if Type = E then the vendor field should not accepts input.
How do i set this in table control for a particular cell?
‎2007 Aug 06 9:19 AM
Hi,
Betweeb the LOOP AT itab WITH .. and ENDLOOP execute a PBO Module.
in the flowlogic
LOOP AT ITAB WITH table control.
init_vendor.
ENDLOOP.
Then in this PBO module use LOOP AT SCREEN.
MODULE init_vendor OUTPUT.
LOOP AT SCREEN.
if itab-type 'F' and SCREEN-NAME = 'VENDOR'.
SCREEN-INPUT = 1.
MODIFY-SCREEN.
endif.
if itab-type = 'E' and SCREEN-NAME = 'VENDOR'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
endif.
ENDLOOP.
ENDMODULE.
Regards,
Sesh
‎2007 Aug 06 9:19 AM
Hi,
Betweeb the LOOP AT itab WITH .. and ENDLOOP execute a PBO Module.
in the flowlogic
LOOP AT ITAB WITH table control.
init_vendor.
ENDLOOP.
Then in this PBO module use LOOP AT SCREEN.
MODULE init_vendor OUTPUT.
LOOP AT SCREEN.
if itab-type 'F' and SCREEN-NAME = 'VENDOR'.
SCREEN-INPUT = 1.
MODIFY-SCREEN.
endif.
if itab-type = 'E' and SCREEN-NAME = 'VENDOR'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
endif.
ENDLOOP.
ENDMODULE.
Regards,
Sesh