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: 
Former Member

Introduction


This blog describes how to remove the share button and the "save-as-tile" button entirely from the Fiori Launchpad.

As of this writing, there is currently no way to disable the share button via a configuration option or parameter. Although some posts suggest setting bSuppressBookmarkButton to true using setHeaderFooterOptions, this solution only affects individual applications. So in essence, someone would have to extend every application on the Launchpad that has a share button - definitely not a way anyone wants to spend their afternoon.

So in order to make a global change to all applications on the Launchpad, we are going to create a custom theme and use CSS to hide the share button.

Important: Modifying the CSS properties of a custom theme is not upgrade safe. This solution works on the latest version of SAPUI5 (1.44.12) at the time of this writing, but may not work in the future. Be mindful when updating SAPUI5 if you decide to use this solution. 

Steps


Create a Custom Theme



  1. Login to your frontend server

  2. Run transaction /UI5/THEME_DESIGNER

  3. Create a new theme based off an existing SAP theme (tested on SAP Belize and SAP Bluecrystal, but should work for any other theme) The exact steps will depend on the version of UI5 Theme Designer present on your front end server


Modify the CSS of the Custom Theme



  1. Select the CSS tab on the right-hand side of the UI5 Theme Designer

  2. Note the warning about custom CSS

  3. Add the following lines
    button[id$="shareButton"] {
    display : none;
    }​


  4. Save and build the custom theme


Test the Custom Theme on the Launchpad



  1. From your frontend server, run the transaction /UI5/THEME_TOOL

  2. Find your newly built custom theme

  3. Double click on "info" and copy the URL beginning with "sap-theme"

  4. Open a browser and add the value copied in the previous step to the URL of your launchpad as a parameter e.g. https://<host>.<domain>:<port>/sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html?sap-theme=C...

  5. Verify that the share button is hidden from all applications


Apply the Custom Theme to the Launchpad



  1. From your frontend, run the transaction /UI2/NWBC_CFG_SAP

  2. Add a new entry with the following values:

    • Path Filter: SAP_FLP

    • Parameter Name: THEME

    • Parameter Value: <name of your custom theme>



  3. The custom theme should now be set as the default theme on your launchpad

  4. Navigate to your launchpad and verify that the share button is hidden from all applications