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

Former Member
0 Kudos
185

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

Former Member
0 Kudos
122

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

3 REPLIES 3

Former Member
0 Kudos
123

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

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Kudos
122

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

raymond_giuseppi
Active Contributor
0 Kudos
122

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