专栏首页Jerry的SAP技术分享使用S/4HANA里的Smart Business消费通过CDS view暴露的OData服务

使用S/4HANA里的Smart Business消费通过CDS view暴露的OData服务

In my previous blog Build Chart and Table representation via Analytics Path Framework I introduced the step how to render the data coming from CDS view in various chart types via Analytics Path Framework, which are actually a set of Fiori application. In this blog, I will demonstrate the steps how to configure the modeled application into a Smart business KPI tile in S4/HANA system, so that customer can conveniently use the analytics application by clicking tile in Fiori launchpad. The CDS views created in previous blog are reused here.

Approach1: consume OData service viaGeneric APF runtime application

With this approach, it is not necessary for you to create your own Fiori application. Instead, your modeled configuration is launched by APF generic runtime application.

(1) Create a new KPI definition:

maintain the four mandatory attributes below. For Semantic Object/Action for KPI itself, keep them empty.

Trouble shooting guide updated on 2016-05-26

This chapter is added for SCN question Issue with “Create KPI” (Fiori App) on CDS Views (S/4HANA 1511).

In case you didn’t see any value in field “Entity Set”, you can do trouble shooting by yourself. In my case, when I first select F4 value help for “Entity Set”, I can see a series of CDS views listed, which are retrieved by the batch request observed in Chrome development tool.

Since my CDS view “Z_C_PRODUCT” does not appear there, so I type it manually and click search icon. A second batch request is sent:

I can see my typed CDS view name is included as filter operator in this request:

Now I select the value help for OData service. The response for this request contains OData service metadata url.

When you now select value help for the third field “Entity Set”, the metadata of this OData service is requested via the url fetched from the previous request. After a successful metadata request, you should see the entity set. If not, usually there is something wrong in the metadata retrieve. You should see detailed error message in Chrome development tool.

==Trouble shooting end == Then create a new evaluation based on this KPI:

Don’t forget to activate your evaluation. Once done, you should have the following artifacts: one KPI and one evaluation:

(2) Select evaluation and click button “Configure Tile”:

Here you can create a new Smart Business tile:

For three mandatory attributes, you must specify the hard coded values as highlighted below:

Assign this tile to a given catalog. And for Application Parameter, choose parameter name as sap-apf-configuration-id and value as convention ..

How to get application guid and configuration guid? Just open your application in APF Configuration modeller:

(3) Once tile creation is done, add the tile to catalog group via personalization:

Save the change, now you should see the Smart business tile in launchpad.

Enter the tile, you can now see rendered chart as expected:

Approach2: Configure the tile navigation via Semantic object + action

For this approach, you should have a working UI5 application deployed on BSP repository. In my example it could be found in frontend system’s BSP repository with name DEMO_SD_SVA_S1 via tcode SE80.

(1) Open Fiori launchpad design, create a new target Mapping for a given catalog:

(2) Specify Semantic Object + action as below. For url, the format is /sap/bc/ui5_ui5/sap/ For Parameter, the name is sap-apf-configuration-id and the value is ..

(3) Create a new evaluation and click button “Configure Tile”:

Here in navigation property maintenance area, select Drill down as Others and specify Semantic object and action as the same value you have entered in step 2. Save this tile configuration.

(4) Now you should be able to search the tile created in step3 and add it to your launchpad via personalization.

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • 如何使用SAP Fiori Launchpad Designer

    (1) 登录Fiori Gateway系统后台,使用事务码 /UI2/FLPD_CUST

    Jerry Wang
  • 使用Adobe lifecycle Enterprise Service将word文档转换成PDF

    Currently I am working on a customer project regarding the usage of SAP document...

    Jerry Wang
  • 如何提取SAP UI5 XML view里定义的字段元素绑定信息(binding path)

    For SAP standard CRM Fiori application, we use xml view by default.

    Jerry Wang
  • golang protobuf 教程

    This tutorial provides a basic Go programmer’s introduction to working with prot...

    mojocn
  • Tour UVA - 1347

    John Doe, a skilled pilot, enjoys traveling. While on vacation, he rents a small...

    attack
  • Install ExpressCache for SSD Caching

    如果你拥有一个安装SSD的电脑,而且已经安装了Windows操作系统。如果这台电脑在出厂OEM 系统分区但都已经被你改变了或者是全新的硬盘,那么这篇文章可能适合...

    gigiwangs
  • 软件架构设计和Scrum潜在可交付产品,我(scrum master)和他(架构师)的讨论

    Following our meeting yesterday I did quite a lot of thinking because what we ta...

    麦克-堂
  • How to debug .NET Core RC2 app with Visual Studio Code on Windows?

    Simone Chiaretta (http://codeclimber.net.nz/archive/2016/05/20/How-to-debug-NET-...

    蒋金楠
  • 深度学习论文(八)---DeepLabV1-SEMANTIC IMAGE SEGMENTATION WITH DEEP CONVOLUTIONAL NETS AND FULLY CONNECTED C

    注:本篇算是半讲解半翻译吧,我真的觉得这篇论文写的很难理解.......可能是我水平不够,也可能作者省略了一些具体信息,主要是提供了他的idea吧。 但是De...

    TeeyoHuang
  • Caption Generation 比google的方法更快(6 hours v.s. several weeks)

    You can use the code in this repo to genearte a MSCOCO evaluation server submiss...

    用户1908973

扫码关注云+社区

领取腾讯云代金券