Skip to Content

Screen Personas - Website Button with the link Mailto:abc@company.com

Dear Screen Personas Team,

normally, when you paste following text "mailto:abc@company.com" in your browser address bar, your email program will be triggered.

I tried to put it in the website button in a flavor, and it doesn't work. It throws me an error script. Could you please check it? Many thanks.


unbenannt.jpg (29.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 18 at 09:14 PM

    Use a script button instead, with

    window.open('mailto:APTEAM@company.com','_self');
    Add comment
    10|10000 characters needed characters exceeded

    • That's correct - the window object doesn't exist in the SAP GUI, so it can only be used while running the transaction in the browser.

      For doing the same in SAP GUI, you will have to use a different method which allows execution of your mail client program. Perhaps an appropriate RFC could be used here, something like GUI_RUN or similar. You may have to set the RFC whitelist so that the FM runs in the same session like your transaction - you'll have to experiment with this.

      Your Personas script must decide whether the current client is ITS or SAP GUI and do the mail client launch depending on the result of that check.