In SAP HANA, Modeling is the process of refining or slicing data in database tables by creating views according to a business scenario. SAP HANA models contain attribute views, analytic views, calculation views, and procedures. The models can be used for reporting and decision making.
Note
In SAP Business One, Semantic Layer views run on top of SAP Business One Analytic Service. First, you need to install the SAP Business One Analytic Service and initialize the company database as below steps:
- Open the SAP Business One Analytics home page. For example, the URL will look similar to this:
https://databaseserver:40000/Enablement/
- Navigate to the Company tab.
- To start the initialization, select the desired model language and choose Initialize.
Semantic Layer views fall into two categories: system built-in views and customized views. First, let’s look at built-in views.

The system built-in views are authored by SAP. Only calculation views with the "Query" postfix in its name are allowed to be exposed in Service Layer. For example, SalesOrderDetailQuery, BalanceSheetQuery.
- Create View - Once the initialization is successful for the database in SAP Business One Analytics, the system built-in views should be created automatically.
- Deploy - The initialization process also deploys the views in content package automatically.
- Expose - To expose views to Service Layer, manually perform the following steps:
- Open SAP Business One Desktop client.
- Open the SAP HANA Model Management window.
- Select Views.
- Check the corresponding Service Layer Expose checkbox.
- Choose Update.
- For the changes to take effect, restart Service Layer.
- Authorize - To grant the view permission to a normal user, carry out the following steps:
- Log on to the SAP Business One Desktop client with the superuser.
- Open the General Authorizations window from Administration → System Initialization → Authorizations.
- Find the exposed view and assign Full Authorization and update.
- Ready to use - All exposed and authorized views can be accessed.
General format
1https://localhost:50000/b1s/v2/sml.svc/<viewname>
Access the Service Endpoint URL
1GET https://localhost:50000/b1s/v2/sml.svc/
Access the Metadata
1GET https://localhost:50000/b1s/v2/sml.svc/$metadata
All general data retrieval options are available in the Service Layer. For example, you can:
- Get all records from a view.
- Query one record from a view.
- Get data using query options, such as projection, filter, and orderby.
- Get data with aggregation.
Next, let’s look at customized views.

Customized views are authored by non-SAP. Only calculation views with the "Query" postfix in its name are allowed to be exposed in Service Layer.
- Create View - To create customized calculation views, refer to Create Graphical Calculation Views on the SAP Help Portal. You can use all the tables available in SAP Business One database.
- Package - To package the customized views (model package), refer to Creating Customized SAP HANA Model Packages on the SAP Help Portal..
- Deploy - To deploy the model package of customized views, open the SAP HANA Model Management window in the SAP Business One client, import the package, and choose Deploy.
- Expose - To expose customized views, manually perform the following steps::
- Start SAP Business One Desktop client.
- Open the SAP HANA Model Management window.
- Select Views.
- Check the corresponding Service Layer Expose checkbox.
- Choose Update.
- For the changes to take effect, restart Service Layer.
- Authorize - To grant the view permission to a normal user, carry out the following steps:
- Log on to the SAP Business One Desktop client with the superuser.
- Open the General Authorizations window from Administration → System Initialization → Authorizations.
- Find the exposed view and assign Full Authorization and update.
- Ready to use - All exposed and authorized views can be accessed.
General format
1https://localhost:50000/b1s/v2/sml.svc/<viewname>
Access the Service Endpoint URL
1GET https://localhost:50000/b1s/v2/sml.svc/
Access the Metadata
1GET https://localhost:50000/b1s/v2/sml.svc/$metadata
All general data retrieval options are available in the Service Layer. For example, you can:
- Get all records from a view.
- Query one record from a view.
- Get data using query options, such as projection, filter, and orderby.
- Get data with aggregation.