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 set the default selection screen

Former Member
0 Likes
765

I modified screen using screen-input = 0.

then how to set the screen-input = 1.

that is how to make that field input enable.

if use the statement screen-input = 1 directly it is giving 2 fields to enter value

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
702

Hi ,

you can do it as

loop at screen.

if screen-name = 'SO_UNAME'.

screen-input = 0.

modify screen.

endif.

endloop.

if it helps REWARD...

rgds

harris

I modified screen using screen-input = 0.

then how to set the screen-input = 1.

that is how to make that field input enable.

if use the statement screen-input = 1 directly it is giving 2 fields to enter value

3 REPLIES 3
Read only

Former Member
0 Likes
703

Hi ,

you can do it as

loop at screen.

if screen-name = 'SO_UNAME'.

screen-input = 0.

modify screen.

endif.

endloop.

if it helps REWARD...

rgds

harris

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
702

Hi,

Write the follwing code at

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = 'FIELD_NAME'.

SCREEN-INPUT = 1. " For input enable

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Regards,

Ses

Read only

RaymondGiuseppi
Active Contributor
0 Likes
702

In the PBO / AT SELECTION-SCREEN OUPUT

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name = <your FIELD>. " Fields by name
*   IF SCREEN-GROUP1 = <your group of fields>. " Fields with MODIF ID
      IF <test>.
        screen-input = 1. " For input enable
      ELSE.
        screen-input = 0. " For input disable
      ENDIF.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

Regards