Application Development 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: 

How to disable fields in Table control???

Former Member
0 Kudos

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

2 REPLIES 2

former_member188685
Active Contributor
0 Kudos

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

0 Kudos

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