2006 Jul 26 9:06 PM
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.
2006 Jul 26 9:09 PM
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..
2006 Jul 26 9:09 PM
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..