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

how to disable the field in module pool programming?

Former Member
0 Likes
1,603

i want to know how to disable or enable the fields in module pool programming.....

4 REPLIES 4
Read only

Firoz_Ashraf
Contributor
0 Likes
1,045

Hi Suresh,

You can disable/enable the fields statically by checking the parameters in screen painter.

However, if you want to disable/enable the fields dynamically then you can use 'loop at screen'.


LOOP AT SCREEN.
  IF screen-name = 'ZSRSK-ADVNO' .
     screen-input = 0.
     MODIFY SCREEN.
  ENDIF.
ENDLOOP.

Regards,

Firoz.

Read only

GauthamV
Active Contributor
0 Likes
1,045

hi,

use this code.

LOOP AT SCREEN.

IF screen-name eq <filedname>.

screen-input = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Read only

Former Member
0 Likes
1,045

Hi,

You can use this code.

LOOP AT SCREEN.

IF screen-name eq <filedname>.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Or you can use the following code

LOOP AT SCREEN.

IF screen-group eq <GR1>.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

where GR1 has to be assigned by double clicking on the field in the screen and then adding GR1 is the group field that appears by the title screen attributes.

I am sure dis will solve your problem

Do get back for any clarifications

Regards,

Manish

Read only

Former Member
0 Likes
1,045

thankq...for ur answers