Wednesday, 24 August 2022

When to use /UI5/APP_INDEX_CALCULATE and calculation Report - Automatic Run vs. Manual Scheduling

Hi Everyone,

In this blog, we will learn about how to report /UI5/APP_INDEX_CALCULATE which use to update the index. 

Changes to the content of the SAPUI5 ABAP repository require the index to be updated using the calculation report /UI5/APP_INDEX_CALCULATE. Depending on how the content of the repository is changed, the report is executed automatically, or you have to run it manually.

For systems using the UI Add-On 2.0 or higher, schedule report UI5/APP_INDEX_CALCULATE periodically instead.

In S/4HANA systems the report /UI5/APP_INDEX_CALCULATE is run automatically but may need to be run manually under some exceptions

Type of Change to the SAPUI5 ABAP Repository

Manual Execution of the Calculation Report Required?

Deployment with SAP Business Application Studio

No, the report is executed automatically.

Upload with report /UI5/UI5_REPOSITORY_LOAD

Installation of a new version of the SAPUI5 distribution layer

Implementation of an SAP Note containing changes for an SAPUI5 app

Yes, run the report manually to update the index for the app or distribution layer in question.

Support package updates and release upgrades

Manual changes using transaction SE80 (not supported and therefore not recommended)



If you have to schedule the report, there are three options for this:

  • With a periodic time interval

    This is the easiest way. However, it has the small disadvantage that some time might elapse between the import of a transport and the start of the update depending on the interval you choose.

  • Starting after the event SAP_IMPORT_STO

    This triggers the report automatically after all transports of the import queue have been imported. However, it doesn’t trigger the report in cases where you perform a special import of a single transport.

  • Schedule the report in both ways

    This is the most secure and fast way to ensure the index is up-to-date. The report ensures that no problems occur in cases where multiple executions are triggered in parallel.

How to execute the report? 

To do so, go to SE38 à run report “/UI5/APP_INDEX_CALCULATE” and retest the application after refreshing the browser. 



 

 




Click on execute à press enter 


Note

If you run the report manually, it is strongly recommended to use the Depending on Expiry Period of Transport Requests option with reasonable values. This option calculates the SAPUI5 application index for affected content only. A full calculation should only be used in exceptional cases.

we can see below that index is updating. 











We can see below the index update successfully 









Thanks 

Rupesh Chavan