如何在CRM WebClient UI里使用HANA Live Report

1. 使用业务角色ANALYTICSPRO登陆SAP CRM WebClient UI:app

点击新建按钮建立一个新的HANA live report:server

类型选择SHL:blog

弹出窗口,维护report的名称,描述信息,和底层使用哪一个SAP HANA Live Query:事务

能够使用F4 help来选择系统里标准的HANA live query:element

这篇文章里我使用的是:OpportunityQuery.it

2. 这个ID OpportunityQuery是在ABAP后台系统事务码SPRO里配置的。io

路径:CRM Analytics->SAP HANA Live Reporting:登录

我使用的OpportunityService, 实际上指向的SAP标准query的名称为:OpportunityQuery.xsodata:后台

3. 再回到WebClient UI,须要给咱们选择的HANA live Query维护一些必填参数:sed

这些必填参数一样是在HANA Studio里建模的,好比UI上看到的参数 Display Currency,对应HANA Studio里的参数P_DisplayCurrency:

本文例子提到的HANA live query能够从下面的路径找到:打开HANA Studio的系统视图(System perspective): sap->hba->crm->Calculation Views:

必填参数维护完毕后,给report指定须要显示在UI上的attribute。这里我选择了:“Analysis Phase”.

Add measure ( Measures are measurable analytical elements ):

4. 至此report能够在WebClient UI上显示出来了,全部的数据都是经过HANA live report从后台系统取回:

在Chrome development tool里能观察到取报表数据的请求头部和响应结构明细:

响应:

报表数据也能在WebClient UI上看到:

能够经过下拉菜单切换图标类型,好比切换成饼状图-Pie Chart:

要在WebClient UI里使用HANA live report,必须完成下面两个配置:

  • URLs with the path /sap/hba/apps/crmhlq are routed to the OData port for the SAP HANA Extended Application Services in the SAP HANA database, which contains the SAP HANA Live Content with the query views used.
  • URLs with the path /sap/opu/odata/sap/ are routed to the message server for the CRM system.

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

相关文章
相关标签/搜索