2007 Feb 15 3:24 AM
hi,
i would like to have 2 parameters become dim (not active) when selection screen showing so that user not allowed to enter anything.
i tried both method but also not working. what i have missed.
thanks
p_1 DEFAULT 'SS' MODIF ID dim,
p_2 DEFAULT 'MARA' MODIF ID dim,
method1
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'dim'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
method2
INITIALIZATION.
LOOP AT SCREEN.
IF SCREEN-NAME = 'p_1' OR
SCREEN-NAME = 'p_2'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
2007 Feb 15 3:28 AM
Hi,
write the method 2 in AT SELECTION-SCREEN OUTPUT. e.g.
At Selection-screen output.
LOOP AT SCREEN.
CASE screen-group1.
WHEN 'DIM' .
screen-invisible = 0.
screen-active = 1.
ENDCASE.
CASE screen-name.
WHEN 'p_1'.
screen-input = 1.
WHEN 'p_2'.
screen-input = 1.
ENDCASE.
MODIFY SCREEN.
ENDLOOP.
Regards,
Amit
hi,
i would like to have 2 parameters become dim (not active) when selection screen showing so that user not allowed to enter anything.
i tried both method but also not working. what i have missed.
thanks
p_1 DEFAULT 'SS' MODIF ID dim,
p_2 DEFAULT 'MARA' MODIF ID dim,
method1
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'dim'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
method2
INITIALIZATION.
LOOP AT SCREEN.
IF SCREEN-NAME = 'p_1' OR
SCREEN-NAME = 'p_2'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
2007 Feb 15 3:28 AM
Hi,
write the method 2 in AT SELECTION-SCREEN OUTPUT. e.g.
At Selection-screen output.
LOOP AT SCREEN.
CASE screen-group1.
WHEN 'DIM' .
screen-invisible = 0.
screen-active = 1.
ENDCASE.
CASE screen-name.
WHEN 'p_1'.
screen-input = 1.
WHEN 'p_2'.
screen-input = 1.
ENDCASE.
MODIFY SCREEN.
ENDLOOP.
Regards,
Amit
2007 Feb 15 3:30 AM
Hi,
Use the first method, but specify 'DIM' not 'dim' while referring it in the loop at screen.
Regards
Subramanian
Message was edited by:
Subramanian PL
2007 Feb 15 3:32 AM
Hi,
The character are case sensitive..Give the dim in capital letters..
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = <b>'DIM'</b>.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Thanks
Naren
2007 Feb 15 3:36 AM
try to use capital letters 'DIM' or 'P_1' in the quotation like that and code it in at selection-screen output.
both will work fine.
regards
shiba dutta
2007 Feb 15 3:37 AM
Hi,
Take a look at the demo program
DEMO_AT_SELECTION_SCREEN_PBO
Cheers
VJ
2007 Feb 15 3:40 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |