Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
babu_ganeshv
Participant

There are a few of our customers who wanted to directly launch the application using a direct link, without getting to the FIORI Launchpad.

Possible reasons

- Integrate with Portal

- Bookmark the App directly

- Does not want to use Launchpad features

As of now, you can launch an application via a direct URL like http://your_server:8000/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html?sap-client=001&sap...

but the Launchpad will redirect to the authentication page and even after authentication, it does not redirect to the desired application, this will be fixed shortly in the product, but however meanwhile you can use this technique to launch app directly

Prerequisites-

- Developer Key

- You will create an index,html file under the standard BSP /ui2/ushell, so you will need an access key to create this file

You are only adding a file as a re-director and there will not be any problems by adding this file as we are not modifying any existing files.

Solution:

- Create an External Alias

- Create and Index.html (or any html) as a rediector

steps to create an external alias and creation of index.html is explained in the blog written by masayuki.sekihara

Refer to How to set a theme parameter to SAP Fiori launchpad Created by masayuki.sekihara

In the above blog, skip until the section Example 6: Hard coded in index.html and start launchpad with /fiori.

Follow the instruction in Example 6 in the above blog,

In the index.html file include the Hash tag of the application and the action which is highlighted in red below eg: (you can even include theme information if relevant)

<html>

<head>

    <script language="JavaScript">
    function loc(){window.location = "shells/abap/Fiorilaunchpad.html?sap-client=001&sap-language=EN#SalesQuotation-displayMyQuotations";}
    </script>
</head>
<body onLoad="loc()"></body>
</html>


Now instead of launching the Fiori Launchpad, you can directly call your index.html


http://<your_server>:<your_port>/<Your_Ext_Alias_Name>/index.htmlhttp://myserver:8000/leaverequest/index.html

eg: http://myserver:8000/leaverequest/index.html


If you need such direct links for multiple applications, you can create as many html files that you want similar to index.html


The external alias will redirect to the required application, you are still loading the application over the ushell, so all resources that are shared will be intact


Best Regards

Babu

Customer Experience Group

SAP Labs India



16 Comments