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: 

Screen Screen input field.

Former Member
0 Kudos
87

Hello Experts,

Below piece of code is working perfectly all right in

INITIALIZATION. means field are grayed out.

INITIALIZATION.

LOOP AT SCREEN.

IF screen-name = 'P_LAND1' OR screen-name = 'P_REGIO' OR

screen-name = 'P_ORT02' OR screen-name = 'P_ORT01' OR

screen-name = 'P_PSTLZ' OR screen-name = 'P_TXL1' OR

screen-name = 'P_TXL2' OR screen-name = 'P_TXL3' OR

screen-name = 'P_TXL4' OR screen-name = 'P_TXJCD'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

But under at selection screen same fields are not graying out. Could you please tell me why and what shoud i do so that they gray out.

AT SELECTION-SCREEN.

  • BREAK-POINT.

PERFORM SHIP_DATA USING SO_KUNN2-LOW.

IF P_LAND1 IS INITIAL.

LOOP AT SCREEN.

IF screen-name = 'P_LAND1' OR screen-name = 'P_REGIO' OR

screen-name = 'P_ORT02' OR screen-name = 'P_ORT01' OR

screen-name = 'P_PSTLZ' OR screen-name = 'P_TXL1' OR

screen-name = 'P_TXL2' OR screen-name = 'P_TXL3' OR

screen-name = 'P_TXL4' OR screen-name = 'P_TXJCD'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

1 ACCEPTED SOLUTION

abdul_hakim
Active Contributor
0 Kudos
49

hi

it won't happen in AT SELECTION-SCREEN rather you could use AT SELECTION-SCREEN OUTPUT for achieving the same.

for eg:

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-name = 'P_LAND1' OR screen-name = 'P_REGIO' OR

screen-name = 'P_ORT02' OR screen-name = 'P_ORT01' OR

screen-name = 'P_PSTLZ' OR screen-name = 'P_TXL1' OR

screen-name = 'P_TXL2' OR screen-name = 'P_TXL3' OR

screen-name = 'P_TXL4' OR screen-name = 'P_TXJCD'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Cheers,

Abdul hakim

Mark all useful answers..

1 REPLY 1

abdul_hakim
Active Contributor
0 Kudos
50

hi

it won't happen in AT SELECTION-SCREEN rather you could use AT SELECTION-SCREEN OUTPUT for achieving the same.

for eg:

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-name = 'P_LAND1' OR screen-name = 'P_REGIO' OR

screen-name = 'P_ORT02' OR screen-name = 'P_ORT01' OR

screen-name = 'P_PSTLZ' OR screen-name = 'P_TXL1' OR

screen-name = 'P_TXL2' OR screen-name = 'P_TXL3' OR

screen-name = 'P_TXL4' OR screen-name = 'P_TXJCD'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Cheers,

Abdul hakim

Mark all useful answers..