cancel
Showing results for 
Search instead for 
Did you mean: 

Screen Personas Flavor for Standard Transactions

dominic_maier
Explorer
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

bwills
Contributor

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

Answers (2)

Answers (2)

dominic_maier
Explorer
0 Kudos

Just found the solution for the WindowsGui:

https://launchpad.support.sap.com/#/notes/2220386

bwills
Contributor
0 Kudos

Hi Dominic,

We are at Kernel 7.49 PL600. I would expect that since we are at a higher Kernel then the note talks about, it would be implemented, but it is not. I'll have to investigate further. Thanks for the tip!!

Cheers,

Brian

tamas_hoznek
Product and Topic Expert
Product and Topic Expert

This note is about webgui, not SAP GUI

dominic_maier
Explorer
0 Kudos

You are right, did`nt notice the "SAP GUI for HTML"

Hopefully the Kernel Patch will fix the F4-Issue for both...

Thanks for your attentiveness 🙂

dominic_maier
Explorer
0 Kudos

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