on 02-04-2019 1:15 PM
Hi everyone,
i created a flavor for transaction mm02, where i changed some fields to write protected.
That works fine so far, but out of F4-Listview of allowed values, he can change the fieldvalue furthermore.
Can i somehow prevent this?
Hi Dominic,
I had this same problem. On the field in question go to the edit flavor. Highlight the field and go to Script Events add a script called "stop F4". Click the plus symbol. Exit the editor and edit the script and add the following.
session.utils.log('Stop F4');
return true;
Now the user can still right click and get a context menu. You can stop this in the browser (it doesn't work in SAPGui though).
In the onLoad event put this script in. To stop just the F4 in the 3rd position of the context menu.
session.findById("wnd[0]/mpop/menu[3]").hide();
To completely remove the context menu use this:
session.findById("wnd[0]/mpop").hide();
See the screen shots for more info.
Thanks, Brian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just found the solution for the WindowsGui:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This note is about webgui, not SAP GUI
Thank you Brian 🙂
That works fine.
Unfortunately, we are using the SAP Gui, so i´m still looking for a way to prevent field changes in general...
Best regards,
Dominic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.