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

module pool

Former Member
0 Likes
547

hi

i got a requiremenmt that i want to specify my screen fields in non editable mode.

can u pls suggest the code pls.

i tried using loop at screen.but its not working .

6 REPLIES 6
Read only

Former Member
0 Likes
523

Why dont you define the screen field as just output...in that case it would mean non-editable.

Read only

Former Member
0 Likes
523

may be u might have forgot <b>modify screen</b> statement

loop at screen.
if screen-name = 'P_NAME'.
  screen-input = 0.
  modify screen.
endif.
endloop.

Message was edited by: Chandrasekhar Jagarlamudi

Read only

Former Member
0 Likes
523

Hi,

loop ar screen.

if screen-name = 'TEST'.

screen-input = 0.

modify screen.

endif.

endloop.

Regards

amole

Read only

former_member404244
Active Contributor
0 Likes
523

hi,

u can write in the PBO module.

for example

loop at screen.

if screen-name = 'Zfield1'<- give ur field

screen-input = 0.

modify screen.

endif.

endloop.

Regards

Nagaraj

Read only

Former Member
0 Likes
523

Hi

You can do it in 2 ways. One is through the code and the other one is when you design the screen in the screen attributes for that particular screen field go to tab 'program' there select Output only. Then that field will change into non-editable mode.

Regards

Haritha

Read only

Former Member
0 Likes
523

Hi,

You no need to write the LOOP AT SCREEN statment in this case, just in SE51, goto that screen then press Layout,press the field which you want non editable, you will get Attribute screen, Press Program tab, here select the <b>OUTPUT ONLY</b> Check box, then it will display in Display mode ..

Regards

Sudheer