Clear SAP Fiori Cache

Friday, 2 September 2016

A step by step guide to clear SAP Fiori Cache.



First a quick introduction to SAP Fiori Caching...

Why does SAP Fiori use caching techniques?
The SAP Fiori is used in consumer devices (Laptops/Tablets/Smartphones) where the UI/UX standards are very high.  It has a modern User Interface build on SAPUI5, and for performance SAP Fiori is using heavily caching techniques, in order to be as fast as possible to end users.



Keep in mind that in most cases SAP Fiori is installed on premise, using company's network infrastructure which many times suffers from network latencies, especially in complex and distributed landscapes.

In order to overcome these problems SAP Fiori has the following Cache Layers:

  • SAP Backend System Cache - Usually OData Services related cache
  • SAP Netweaver Gateway Cache - OData Services, Bsp App and Fiori Configuration Caches
  • SAP Web Dispatcher Cache - HTML,CSS and JS Code cache
  • SAP Fiori Client/ Web browser Cache - Cache of the end user's device


When should I clear SAP Fiori Cache?
Usually SAP Fiori cache should be cleared when a change has been made in its configuration, in OData Service, in a Fiori BSP App, in a Theme or when you are applying patches/notes. Also when you are facing strange issues with SAP Fiori, a good point to start the troubleshooting  is by clearing the SAP Fiori Cache.

Steps to clear the SAP Fiori Cache...

Step 1. Clear backend Cache
Execute TCODE /IWBEP/CACHE_CLEANUP for each of your backend systems (SAP ERP,CRM etc)
Select check box "Cleanup Cache in all models"



Step 2. Clear SAP Gateway Cache

2.1 Rebuild the custom theme  and clear the theme cache if something related to the theme has changed or the system has been patched:
  • Rebuild theme using by accessing your theme designer in the SAP Gateway URL. The URL is:
    https://<Your GW Server Host:Port>/sap/bc/theming/theme-designer/
    Select the custom theme and click rebuild.




  • Clear the Fiori Theme Cache by executing in your SAP Gateway system TCODE /ui5/theme_tool. Double click on the [Invalidate Cache] button.  



2.2 Execute TCODE /IWBEP/CACHE_CLEANUP  in the SAP Gateway

Select check box "Cleanup Cache in all models"

2.3 Execute TCODE /IWFND/CACHE_CLEANUP in the SAP Gateway

2.4 Execute TCODE SE38 in the SAP Gateway and run the following reports:

  • /UI2/INVALIDATE_GLOBAL_CACHES - Select Execution mode 
  • /UI2/CHIP_SYNCHRONIZE_CACHE
  • /UI2/DELETE_CACHE_AFTER_IMP
  • /UI2/INVALIDATE_CLIENT_CACHES - Select For All users
  • /UI5/UPDATE_CACHEBUSTER
2.5 Execute TCODE  SMICM.  On the Menu select Goto - HTTP Plug-in - Server Cache -Invalidate Globally


Step 3. Clear the Reverse Proxy Cache (if exists)
You should clear you Reverse Proxy Cache. Usually this is an SAP Web Dispatcher but other products could be used as well.

Step 4. Clear the Client Caches
If SAPUI5 Cachebuster has been set up correctly then no further action is needed. In other cases you should clear manually the web browser cache or the fiori client app cache.


References:
http://scn.sap.com/docs/DOC-64731
Share

10 comments:

  1. Well explained. Got to learn new things from your Blog on Appium.Appium training in chennai

    ReplyDelete
  2. Creating experts,A leading career development organization provides Real time training in SAP Success Factors,SAP MM, SAP SD, SAP ABAP, SAP BASIS,SAP BASIS, SAP FICO,with live examples by corporate Experts.
    www.thecreatingexperts.com (Best SAP training institute in chennai with placement assistance)
    SAP Success Factor,SAP MM Training in chennai Vadapalani ECR velachery Tambaram chromepet guindy and t.nagar.

    ReplyDelete
  3. thank you for sharing such a unique content.please provide latest updates .one of the recommanded blog

    SAP ABAP Online training

    SAP ABAP Online training in hyderabad
    SAP ABAP Online training in usa

    ReplyDelete
  4. Thank you For sharing this information.
    Nice Blog, Keep Updating.
    Fiori Implementation Consultancy

    ReplyDelete
  5. nice blog...The leading training concern THE CREATING EXPERTS are providing SAP ABAP and SELENIUM training and here is the link

    http://thecreatingexperts.com/sap-abap-training-in-chennai/

    http://thecreatingexperts.com/selenium-training-in-chennai/



    contact 8122241286

    ReplyDelete
  6. Best sap MM and SD training with placement chennai
    http://thecreatingexperts.com/sap-mm-training-in-chennai/

    ReplyDelete
  7. SAP training in chennai is provided by THE CREATING EXPERTS take a look at the link below

    http://thecreatingexperts.com/sap-abap-training-in-chennai/

    contact +91-08122241286

    ReplyDelete
  8. Thanks for sharing this Information,

    Got to learn new things from your Blog on Sap abap.

    http://thecreatingexperts.com/sap-abap-training-in-chennai/

    Both online and classroom training is provided.

    Contact 8122241286

    ReplyDelete
  9. Thanks for sharing this Information,

    Got to learn new things from your Blog on Sap abap.

    http://thecreatingexperts.com/sap-abap-training-in-chennai/

    Both online and classroom training is provided.

    Contact 8122241286

    ReplyDelete

 
Copyright © 2015 Sap 4 All
Distributed By SAP 4 ALL |