on 06-05-2018 12:43 PM
Hi,
In a standard transaction, we want to simplify the Save process, we do extract actions that the end user doesn't know. We have provided to the user a new Save button.
In that transaction, we have hidden the Standard Save button to force the user to use the new one. But some users use to use Ctr+S to save automatically the transaction.
My question: How to bypass this shortcut or at least overwrite it to execute the new Save process ?
Kind Regards,
Joseph
If you want your script to execute as well as the standard SAP Save, you could put the script on the onClick event of the SAP Save button. Any time the SAP Save button is clicked or Ctrl-S pressed the SAP Save will execute. Your script will execute first. If you want to stop the SAP save then put a "return true" at the end of your script.
Cheers,
Brian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Resurrecting this old question, since this is where search engines direct. I recently implemented a shortcut capture in FV60 so Ctrl+S would use my script instead of the standard 'Post' button. Here's what I did if you end up here:
//onBeforeRefresh
/*globals vkey, triggerType, console*/
if (triggerType == vkey) {
switch (vkey) {
case 11: //ctrl+s (Park Document)
session.utils.executeScript("<Script ID>", null);
return true;
case 9: //simulate (just an example of another button)
return true;
default:
break;
}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could try to intercept Ctrl+S (and an eventual associated F key) based on this KB article.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Joseph,
AFAIK, the only possibility would be to change the standard application, removing the shortcut. You can do it via SE80, but it requires a modification in the standard, which is not supported.
I don't know whether there is a way to intercept the shortcut call and prevent the standard button from being called directly.
Kind regards,
Cris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.