on 11-25-2009 7:26 PM
I have a requirement where an inputfield should be grayed-out so the user can't simply type whatever they want into the field. However, the user should still be able to change the value of the inputfield via the input help (F4). After searching around in the forums, I see that the only way to do this is to use a custom input help (as opposed to DDIC or OVS). I've done that, and it works fine when the inputfield is open. However, as soon as I set the inputfield to "Read Only", the input help button goes away.
How do I get the input help button to stay even though the field is set to "Read Only"?
Thanks,
Tom Peng
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We used to allow the value help to be triggered even when the field was in display only mode. It would open the value help dialog, but you couldn't copy any values back. There are even some older OSS notes that talk about places where this was a problem because it accidentally allowed you to copy values back (1173390, 971256, 996070). This used to allow you to use a Freely Programmed Value (whihc has direct access to the source context) to still update the read-only field. However at some point (perhaps as a fix to one of the above OSS notes), SAP has changed the rendering works and no longer allows any value help to fire for a disabled or read-only field.
Very helpful, Thomas. Thanks for the (impressively quick) response. I will close down this thread now. Thanks to everyone who answered.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thomas,
There is no straight way to do this. All the F4 will be disabled if the input field is read only.
The only suggestion could be make it read only without any input help, now place a button next to the input field.
Throw a popup upon click of this button. User once selects the value from popup , it can be populated to the input field using coding.
Thanks,
Anand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have a requirement where an inputfield should be grayed-out so the user can't simply type whatever they want into the field.
If the user shouldnot enter the data what ever he wants in input field ,you can use foreign key check ,
So that it throws an error message, when use enters the data other than the values in F4 help.
So with out making the field read only you can solve the problem.
Priya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
With read only field, F4 help will not work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think it will be possible to use a field to enter data if its set to "Read only" . May be you can leave the field open for entering data and put checks on the field when you save the data of the table/alv.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.