Launch SAPGUI for Windows from Fiori Launchpad (Code Included)
As we think of more ways to setup Fiori Launchpad as the starting point for all SAP apps instead of SAP Portal, one very common scenario is launching traditional SAPGUI for Windows applications with single sign-on.
As a bit of a POC, I whipped up this app that reads your SAPGUI favorites, and let’s you launch them from this Fiori App.
All the code is open for you to try and adjust for yourself in GitHub: GitHub – MindsetConsulting/sapgui: SAP Fiori App to Launch SAPGUI for Windows
Live tile reads your favorites available:
Basic master/detail shows your favorites with description and the systems (Gateway could connect to multiple systems):
Click the button and launch SAP GUI:
Enjoy, and feel free to let me know if you have any suggestions!
-Gavin
Hi Gavin,
I tried but getting error Failed to load resource: the server responded with a status of 403 (Forbidden) ....No service found for namespace , name ZFAVORITES_SRV, version 0001
/sap/opu/odata/sap/ZFAVORITES_SRV;mo/$metadata 403 (Forbidden)
Is it ZFAVORITES_SRV missing in your code? i dont see that service at all. could you please check.
Thanks,
JC
Hi Joseph,
Good catch! There was a quick back-end service we whipped up for this as well. I'll attach that on GitHub too. Stay tuned, I'll put an update in the next couple days.
Joseph ,
would you share with me the steps you took to accomplish this ?
i have the same need but i dont know where to start.
Thanks
Ahmad
can you please send us favorites gateway service code details please.
krishna
Hello KRISHNA ,
Will you please share with me how did u accomplish this ?
not the favorites thing just the calling WIN GUI Part even to a transaction or Session_manager
I would very much appreciate it
Could you please add backend services code as well. This will really help us.
Thanks,
Dheeraj
Hi Gavin,
i would like very much to perform this approach on my landscape and im having some issues understanding the codes attached , could you please explain further the steps to accomplish this ?
Regards
Ahmad
Hi,
Thanks for this awesome post. I have replicated all the steps above and able to download the file of launchpad in my Browser.Hence the user has to manually click on the file to launch the SAP GUI.
However my requirement is to launch the sap gui for window on click of a tile.I guess this is because the extension .sap is not of standard mime type. Could you provide any solution or hint for this. Thanks
Hi Anubhav,
I am also working on a POC similar to yours. I am trying to invoke different SAP systems on click on the Fiori tile. Did you happen to find out something that helped you?
Thanks,
Arihant
Hey - sorry for the delay - these posts don't always trigger e-mails properly.
So yes - mine launch automatically. You have to of course have SAPGUI installed and fully functioning. Did you try to launching the same thing from the SAP Portal (that is where the technique is derived from)?
Hello Gavin, I had a question about how you've implemented single sign on.
I tried to replicate your method of creating a BLOB object and fill it in with MYSAPSSO2 cookie. Unfortunately, my browser doesn't allow me to read the cookie value through JavaScript.
However, I can see this cookie storing value in the networks tab.
I learnt that the SAP Logon Tickets (Assuming MYSAPSSO2 is a logon ticket in SAP's terminology) - can be set HTTPOnly - so that it cant be read by JavaScript.
Have you done any additional configuration to disable this security?
Apart from using MYSAPSSO2 cookie, what other alternatives I can have to implement the SSO functionality?
Thank you very much for your time. I really appreciate your help!
Hello Gavin,
Thanks for your very articulated post and for sharing the source code with us.
I had a question about how you’ve implemented SSO.
What kind of configurations do you require in the gateway system (where my UI5 code is hosted) – so that I can launch other systems without requiring to sign in?
I understand that the gateway system needs to add other systems as ‘trusted’ systems. Is that correct, and sufficient?
Also, Is it possible for you to share the code you've written for the service?
Hi @gavinpquinn,
Good blog. I've been trying to implement your solution. But something confuses me. I hope that you can clarify.
Regards,
Tri
Hi Tri
Were you able to open the SAP GUI automatically without having to open the launch.sap downloaded file first. If so, how did you do it?
Thanks.