Skip to Content

In this session, we will have a look at the HTTP requests (some are for resources which are necessary for rendering the app, some are for application real data) triggered when opening a Fiori app.                                           

Fiori Launchpad (FLP) is the entry point of the Fiori app “My Team Calendar”.                                           

So we will access FLP first and then navigate to the Fiori app “My Team Calendar” from the FLP.                                           

Image.png

(Press F12 in the browser to open developer tool)

Actually FLP is also a Fiori application, so SAPUI5 library files also be requested.                                           

Please note that when open a Fiori app, such as “My Team Calendar”, SAPUI5 library files will not be requested again since they have already been loaded.                                           

It might be interesting for you to know the relationship between FLP and the Fiori applciations.                                           

The Fiori app “My Team Calendar” is “a SAPUI5 component” (content) which is embedded into the FLP (shell).                                           

Image [1].png

Please note that the shell is “invisible”.                                           

Please refer to “SAP Fiori Launchpad for Developers – Architecture Overview” for more details.                                           

                                        

Open the Fiori app “My Team Calendar”                                           

Image [2].png

“Component” is independent and reusable parts used in SAPUI5 applications.                                           

We can embed this component into a surrounding container such as FLP.                                           

The XHRs triggered when this Fiori app is open:                                           

Image [3].png

We will talk about requests such as library-preload.json, Component-preload.js later.                                           

http://mxxxx.ak:8080/sap/opu/odata/SAP/HCM_TEAM_CALENDAR_SRV/$metadata?sap-language=EN&sap-client=200                                              

This request is triggered for getting metadata of the Odata service.                                           

Put simply, data is returned in the requests which do not contain any suffix.                                           

Thoese requests which contain suffix are for resources.                                           

Image [4].png

Image [5].png

Image [6].png

As we can see, the data is returned in the “Response” of the requst:                                           

http://mxxxxxe.ak:8080/sap/opu/odata/SAP/HCM_TEAM_CALENDAR_SRV/EmployeeCollection?$filter=StartDate%20eq%20datetime%272016-9-29T00:00:00%27%20and%20%20EndDate%20eq%20datetime%272016-10-12T00:00:00%27%20and%20EmployeeID%20eq%20%2700053533%27%20and%20AppMode%20eq%20%27R%27&sap-client=200                                              

HCM_TEAM_CALENDAR_SRV is the Odata service name.                                           

EmployeeCollection is the entity name in the Odata service.                                           

Later we will need them to debug the ABAP code in the server to find out how the data is retrieved.                                           

HTTP parameters:                                           

$filter:StartDate eq datetime’2016-9-29T00:00:00′ and  EndDate eq datetime’2016-10-12T00:00:00′ and EmployeeID eq ‘00053533’ and AppMode eq ‘R’        

sap-client:200                                           

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply