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

Reg Table control

Former Member
0 Likes
325

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?

1 ACCEPTED SOLUTION
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
307

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

1 REPLY 1
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
308

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