Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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: 
Xiao-fei_Song
Product and Topic Expert
Product and Topic Expert
535

SAP Mobile Services provides an end to end network trace capability to record the network traffices and payload data to be analyze in order to find issues while using the mobile apps through SAP Mobile Services. Please refer to https://help.sap.com/doc/f53c64b93e5140918d676b927a3cd65b/Cloud/en-US/docs-en/guides/features/tracin...for more details about SAP Mobile Services network trace.

SAP Service and Asset Manager is a mobile asset management application that supports maintenance, service and safety technicians, as well as inventory management features. Please refer https://help.sap.com/docs/service-asset-manager for more details about SAP Service and Asset Manager.

In this blog post, we will show you how to analyze network trace for SAP Service and Asset Manager using SAP Mobile Services Mobile Backend Tools in order to find out issues while using the app to access the SAP Backend Systems.

As IT consultants if your users who are using SAP Service and Asset Manager report issues to you, you can record the network trace activities using mobile services cockpit according to the instructions from mobile services network trace activities. In order to analyze the network trace data after the recording has been complete, you need to a network trace tool to analyzer the har file.

If you use Google chrome for example to open the network trace har file for SAP Service and Asset Manager mobile application, you will see a UI like below:

2024-06-04_13-29-36.png

There are some limitations in Chrome used to analyze the network trace data for SAP Asset and Service mobile app:

  • There is no correlation view for the requests. SAP Mobile Services uses correlation ID to link the different stages of the same request.
  • SAP Asset and Service Manager uses lots of batch requests on mobile services side, and the user can't view the details of the each individual batch requests.
  • Also the user can't see the overall batch response payload at all in chrome.

In order to address the above issues, SAP Mobile Backend Tools offers a network trace analyzer to better visualize the network trace har file generated by SAP Mobile Services.

First download and install SAP Mobile Services Mobile Backend Tools in Visual Studio Code. After open the folder where the network trace har file is located, right click your network trace har file and select "Open With" context menu item in Visual Studio Code:

2024-06-04_13-36-58.png

Select "MBT: Network Trace Analyzer":

2024-06-04_13-39-51.png

The network trace for SAP Asset and Service Manager will be opened by Mobile Backend Tools:

2024-06-04_13-40-46.png

By default, Mobile Backend Tools network trace analyzer only shows "Path", "Status", "Size" and "Time" columns in the UI, but you can configure more visible columns by clicking the filter like below:

2024-06-04_13-44-34.png

Now we can do some analysis using Mobile Backend Tools. Open one of the batch requests like below:

2024-06-04_13-47-14.png

Go to the "Payload" tab, you will see the request details:

2024-06-04_13-52-01.png

and the response details:

2024-06-04_13-54-08.png

And you can also view the response details in each individual batch request:

2024-06-04_13-58-09.png

Mobile Backend Tools network trace analyzer also offers a correlation view so that all the records with the same correlation ID are grouped together to be treated as different stages for the same request:

2024-06-04_14-04-40.png

and in this correlation view, it's very straightforward to see the different stages underneath of each request:

2024-06-04_14-07-03.png

2024-06-04_14-08-59.png

As a conclusion, in this blog post, we demonstrated how to analyze the network trace har file generated by SAP Mobile Services for SAP Asset and Service Manager mobile app using SAP Mobile Services Mobile Backend Tools network trace analyzer that includes specific optimization for har file in mobile services specific scenarios.