2007 Mar 14 2:21 PM
I have designed a screen where i have some fields. When i select an option from one field and if click on DISPLAY the data should be displayed in the rest of the fields, but should be grayed out and when i click on CHANGE all the fields should accessible.
can any one send me code for graying out and enabling the field .
I have designed a screen where i have some fields. When i select an option from one field and if click on DISPLAY the data should be displayed in the rest of the fields, but should be grayed out and when i click on CHANGE all the fields should accessible.
can any one send me code for graying out and enabling the field .
2007 Mar 14 2:24 PM
hmmm i´d like to help your but something doesnt fit with your requirtements.
SAP-Script is the SAP language for Forms.
In forms you cannot have accesible fields, simply not possible since a form is to be printed, but not to be given back to the system in any way.
Are you talking about an ALV or a Table control maybe?
2007 Mar 14 2:24 PM
Hi,
Have you tried this?
again posted the same question:
Give some Group Name for the other fields which has to be grayout.
If Field1 = <some value>
Loop at screen.
if screen-name1 = ' Give the group Name>.
screen-input = o.
modify screen.
endif.
endloop.
else.
Loop at screen.
if screen-name1 = ' Give the group Name>.
screen-input = 1.
modify screen.
endif.
endloop.
endif
Regards,
Anji
2007 Mar 14 2:27 PM
Hi,
you should use
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'xxx' or SCREEN-NAME = 'ZFIELD'.
SCREEN-INPUT = 0."means no input
*OR SCREEN-INPUT = 1." input possible
ENDIF.
MODIFY SCREEN.
ENDLOOP.
regards,
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |