前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >如何在SAP Fiori应用里消费SAP HANA Query view

如何在SAP Fiori应用里消费SAP HANA Query view

作者头像
Jerry Wang
发布2020-08-10 11:06:35
3810
发布2020-08-10 11:06:35
举报

In CRM Fiori there is one standard application called Customer report, where you can consume the HANA query view modeled in HANA studio, taking one example below:

This blogs shows the step by step how to consume a given HANA query view in CRM Fiori.

(1) log on Fiori with user which is assigned with PFCG roles /UI2/SAP_KPIMOD_TCR_S and /UI2/SAP_KPIFRW5_TCR_S. You can get more detail from sap help.

You should see the following tiles after log on.

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-13A7dHXr-1596945487247)(https://upload-images.jianshu.io/upload_images/2085791-d1574a5f287b0548.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)]

(2) Create a new KPI:

Maintain KPI id and Title:

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-gLTZLJNh-1596945487254)(https://upload-images.jianshu.io/upload_images/2085791-33ce6118f02f6581.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)]

in the Data source area, I just use the standard HANA view OpportunityQueryOData delivered by SAP. Click Save and Activate.

(3) The KPI itself could not directly be consumed by Fiori launchpad. Instead only an evaluation belonging to a given KPI could be consumed. Go back to Fiori launchpad and go to tile “KPI Workspace”. Find the KPI just created in step2 and create an evaluation based on it. ( Current Evaluation: 0 )

And for evaluation, we need to specify four mandatory parameters:

You may ask where does the definition of these four parameters come from, actually they are just defined in the underlying HANA view in HANA studio, as mandatory.

Click Save and Activate, after that you should see your evaluation.

(4) Open your evaluation just created in previous step, click “Configure Tile”:

Click “Add Tile”:

Specify the following Semantic Object and Action, so that in the runtime when this tile is clicked in Launchpad, the SAP standard Fiori application “Customer Report” will be opened, which acts as the container to display the HANA Query view configured in the KPI.

(5) Last step is to configure the tile created in step 4 to make it visible in Launchpad. By default all KPI tiles created based on a given evaluation will appear in catalog “SAP : KPIs”:

Now it is ready for test. Open launchpad the the measure you specified in KPI in step 2 will automatically be calculated by smart business framework. In the roundtrip you can really observe the four parameter you specify on evaluation you have done in step 3.

The calculation result is displayed in tile as expected:

If you click the tile, all CRM WebUI reports created based on the HANA odata serviceOpportunityQuery would be displayed in the left part list. By selecting one of them you can navigate to report drill-down detail page.

For how to create CRM WebUI reports based on a given HANA view, please refer to this blog: Step by Step to create HANA live report in Webclient UI.

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2020-08-09 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档