Enterprise Resource Planning Blogs by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
cancel
Showing results for 
Search instead for 
Did you mean: 
guy_hasson
Explorer
When creating your own extension, you may sometimes need to redirect to a specific View in the SAP Business One Web Client. For this purpose, you will need to utilize the Views APIs.
This feature has been available since version 10.0 FP 2105.

The Views APIs can be used to generate URLs for the following views:

  • List view and detailed view for an object.

  • Analytics views.


The image below shows a Fiori app that redirects back to a specific Business Partner and a specific Item.


Fiori App


 

Views APIs for List View and Detailed view


In order to access a specific View in the Web Client, such as a specific Sales Order view, you will need to provide the information listed below:

  • The type of the object : System Object or User Defined Object.

  • The Business Object name (e.g. Orders).

  • Business Object value : this can be obtained by using the Service layer .



Demo App


You can review the sample code and the demo application here :Sample Code

 

Views APIs for Analytics views


In order to access a specific Analytics View in the Web Client, you will need to provide the information listed below:

  • Analytics Type can be either 'Dashboard' or 'ChartContainer.

  • Variant GUID - the Analytics group that contains the View.

  • Analytic View code.



Demo App


You can review the sample code and the demo application here :Sample Code

Future planning


Support for Views APIs began with version 10.0 FP 2105 , and Analytics views APIs with version 10.0 FP 2208. In each version, we continue to support more Business Objects(BOs), so you can track the new features in our Help Portal

Additionally, we provide an introduction video :



 

I hope you found this blog informative as an introductory guide to Views APIs.I am keen to learn about your experiences and insights from utilizing this API. Your feedback is highly valued, kindly share your thoughts in the comments section below.

 

 
1 Comment