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

screens

Former Member
0 Likes
911

In screens we must not use a field.It must remain visible but not modifiable How do I do it.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
880

You can set the "Output" attribute when double clicking on the field in screen painter. Or you can turn it off in the PBO of the screen.

Loop at screen.

   if screen-name = 'FIELD_NAME'.
     screen-input = '0'.
     modify screen.
   endif.

endloop.

Regards,

Rich Heilman

In screens we must not use a field.It must remain visible but not modifiable How do I do it.

8 REPLIES 8
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
881

You can set the "Output" attribute when double clicking on the field in screen painter. Or you can turn it off in the PBO of the screen.

Loop at screen.

   if screen-name = 'FIELD_NAME'.
     screen-input = '0'.
     modify screen.
   endif.

endloop.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
880

Hi Sadhik,

if v_ucomm = 'DISPLAY'.

loop at screen.

screen-input = 0.

modify screen.

endloop.

endif.

regards,

keerthi.

Read only

Former Member
0 Likes
880

Hi,

In the PBO write :

LOOP AT SCREEN.

IF SCREEN-NAME = 'FIELD-NAME'.

screen-input = 0.

endif.

modify screen.

ENDLOOP.

Best regards,

Prashant

Read only

Former Member
0 Likes
880

in the attributes of that field,

OUTPUT check this box.

remove Check box for INPUT FIELD

regards

srikanth

Read only

Former Member
0 Likes
880

set the field to be output only.

Regards

Anurag

Read only

Former Member
0 Likes
880

Hi,

There are two ways of doing this:

1. In the screen painter, click the field and you`ll get the attributes window. Navigate to the bottom of the screen and you`ll find the check box output only. Click the check box and this field is statically defined only as a output field.

2. If you want to do the same functionality dynamically in the program, in the PBO module use the following code :


loop at screen.
if screen-group1 = 'G1'.
if screen-name = 'FIELD'.
screen-input = '0'.
modify screen.
endif.
endif.

*** Prerequisite is you`ll have to maintain the screen group and field name in the screen painter (attributes).

Hope this really helps your objective.

Reward if helpful.

Regards

Read only

Former Member
0 Likes
880

hi sadhik,

in the properties window of the i/o field, check the option <b>OUTPUT ONLY</b>

Read only

0 Likes
880

But the option OUTPUT ONLY is not highlighted since the screen is a check box I think.