cancel
Showing results for 
Search instead for 
Did you mean: 

Personas 3.0 : overwrite Shortcuts

Joseph_BERTHE
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

bwills
Contributor

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

eedens
Participant

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;
}}
tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

You could try to intercept Ctrl+S (and an eventual associated F key) based on this KB article.

cris_hansen
Advisor
Advisor
0 Kudos

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

Joseph_BERTHE
Active Contributor
0 Kudos

Thanks for your answer. In fact I'm not going to overwrite the standard 😉

I will wait this feature in the next (potential) release 🙂

Regards,

Joseph