How to export and deploy SAP HANA models for SAP Business One
Updated on Apr 30 2018
This document is to introduce the SAP HANA Model Package Tool for SAP Business One. The relevant how to guide and tool download are available as the attachment in the note below. You should read the how to guide document in the note for detail.
Note 2008991 – SAP HANA Model Package Tool for SAP Business One
SAP HANA model management function is available in SAP Business One, version for SAP HANA and SAP Business One, analytic powered by SAP HANA, which allow you to:
- Import and deploy the HANA models to the customer system, and the schema and package is pointed to the customer system dynamically,
- Enable the selected Calculation View for Interactive Analytic with Excel Pivot table, which will list the menu of Interactive Analytic in SAP Business One modules
- Enable the selected Calculation View exposed through Service Layer, which will be accessible through Service Layer(Available since B1H 9.3 PL02)
The whole life cycle of SAP HANA Model lists below:
- Design and test the models with SAP HANA Web-based Development Workbench or SAP HANA studio
During design time, a fixed schema or attribute/analytic/calculation view may be used, which need to be replaced dynamically when deploying to the customer system.
After designing SAP HANA models, you need to package the models according to the HANA model package defined by SAP Business One, and deploy them to the customer’s system. This process involves the following steps. - Export the models from SAP HANA.
The model to be exported should be active and able to preview correctly in HANA Studio, and the dependent models should be included. The exported model files still use the fixed schema or package name as design time, which can’t be imported directly in customer’s HANA system with HANA Studio. - Package the models into a ZIP file as defined by SAP Business One
You are recommended to use the SAP HANA Model Package Tool for SAP Business One to package the models. The Package Tool provides a wizard for updating the model files, and the XML information file is created automatically. - Import and deploy the model package with HANA Model Management of SAP Business One into the customer’s system.
HANA model management can be found through the menu path below:
Administration->Setup->General->HANA Model Management.
Follow the procedure in HANA model management
-Import the model package from step 2
-Select the “IAEnabled” AnalyticView/CalculationView, and enter the menu caption to be displayed in Interactive Analytic Menu of SAP Business One
-Deploy the model package - Consume the models withe analytic tools with Interactive Analytic, Pervasive Dashboard, Crystal Report etc.
The selected “IAEnabled” AnalyticView/CalculationView in step 3 are displayed in Interactive Analytic Menu of SAP Business One, end user already can do the interactive analytic with excel pivot table.
For pervasive dashboard, crystal report connecting to HANA studio, please refer to the relevant e-learning materials.
If you have any question regard to the tool, please post here.
While deployemnt new calculation view(cube) in "SAP HANA Model Management" there is an error:
in the log file, in the "Administration Console for SAP Business One analytics", ithere is this text:
"2018-07-13 11:50:44|ERROR|MODEL_DEPLOYMENT|Cannot activate model [sap.bdodemo/COSTACCOUNTINGANALYSISQUERY] which references some retired views: [sap.bdodemo/COSTCENTERANALYSIS,sap.bdodemo/DocumentDate,sap.bdodemo/DueDate,sap.bdodemo/GLAccount,sap.bdodemo/GLAccountLevel,sap.bdodemo/PostingDate,sap.bdodemo/ProjectCode] ; turn on the compatibility mode or remove the dependencies. For more information, see SAP Note 2000521|"
Hi GG
You view is dependent on some retired view sap.bdodemo/DocumentDate,sap.bdodemo/DueDate,sap.bdodemo/GLAccount,sap.bdodemo/GLAccountLevel,sap.bdodemo/PostingDate,sap.bdodemo/ProjectCode.
Please use the new view from semantic layer instead, these view are all located in sap.bdodemo.admin package
sap.bdodemo/DocumentDate -> sap.bdodemo.admin/DocumentDate
sap.bdodemo/DueDate -> sap.bdodemo.admin/DueDate
sap.bdodemo/GLAccount -> sap.bdodemo.admin/GLAccount
,sap.bdodemo/GLAccountLevel -> sap.bdodemo.admin/GLAccountLevel
,sap.bdodemo/PostingDate -> sap.bdodemo.admin/PostingDate
,sap.bdodemo/ProjectCode -> sap.bdodemo.admin/ProjectCode
If you need more information about the predefined views in semantic layer, please refer to the official document. How to Work with Semantic Layers in SAP Business One 9.0 and 9.1 (s-number login required)
Kind Regards, Yatsea
I am brand new to Hana and could use some clarity on :
The model to be exported should be active and able to preview correctly in HANA Studio, and the dependent models should be included. The exported model files still use the fixed schema or package name as design time, which can’t be imported directly in customer’s HANA system with HANA Studio.
Active I understand
Preview correctly I understand
Deployment models should be included - HELP. Does this mean I need to include all of the standard SAP re-usable models in my deployment package? If so is there any easy way to list them? Are there any samples of what this would look like.
PS: Very nice article.
Hi Geoff,
The exported models should include all the dependent models which are referenced in your own custom models when you export the models.
Kind Regards, Yatsea
Yatsea,
I am having a problem authorizing these models/views. Can you take a look at my question at https://answers.sap.com/questions/13554940/problem-granting-authorization-to-a-custom-semanti.html.
Thanks,
Mel Dodd
Hello,
we have some issues to import in SAP B1 v10 packages exported from SAP B1 v9.3, especially about version and permission (in v10 the SAP HANA Model Management imports with new company user database - B1_4... -, but in Hana Studio we use SYSTEM).
Is there a guide to import in v10 packages exported from v9.3 or do you have any suggestions?
Thanks
Hi Gianni,
As per the security guide of SAP HANA, you may need to create a new role with reference to the standard role Content_Admin, then grant the role to new DB user B1_4...
If the problem persists, you are recommended to log a customer incident.
P.S. I have moved to another organization since May 2021.
Kind Regards, Yatsea
Hello Yatsea Li,
Thanks for sharing this article, Only one quick query - I am using Script based calculation view but while exporting using contentpackage tool its not pointing to the customer system dynamically in-short database name is not changing to the reserved placeholders like the way its works in UI based calculation view..