How to grey out Select-Options?
Hello,
I have a select-option on a selection screen of a bespoke program which has some default values programmed in at initialization. I want to make sure the user cannot and does not change these.
I've tried:
LOOP AT SCREEN.
IF SCREEN-GROUP1 = NO.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP
This greys out the select-options but I can't view the multiple selections I have programmed in. Is there any way of doing this?
Thanks,
Gill
Just try to save it as a variant and Put the Variant as Display Only. When the report is started with a Transaction, just start this Transaction with the Default Variant.
KRK
Find out the name of the multiple selection push button.
It should be something like '%_XXXXX_%_APP_%-VALU_PUSH' where xxxxx is the select-option name.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = NO.
if not screen-name = '%_XXXXX_%_APP_%-VALU_PUSH'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
endif.
Ciao, Giulio.
I'd use:
IF SCREEN-GROUP1 = NO and screen-group3 ne 'VPU'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
{edit}
On second thought (that is, after testing) it seems that after returning from the multiple selections the output only fields are open for input again. So you have to put the same code in AT SELECTION-SCREEN OUTPUT too.
Thanks everyone,
I've used the variant solution and it works fine now.