使用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:


image.png

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


image.png

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.


image.png

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:

image.png

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



image.png

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


image.png

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.



image.png

==Trouble shooting end ==

Then create a new evaluation based on this KPI:

image.png

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

image.png

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

image.png

Here you can create a new Smart Business tile:

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

image.png

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


image.png

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

image.png

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

image.png

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

image.png

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

image.png

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.


image.png

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

image.png

(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 ..



image.png

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

image.png

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.


image.png

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


image.png

image.png

相关文章
|
12月前
|
供应链 数据挖掘 BI
什么是 SAP S/4HANA 的 VDM Layering Architecture 的 CDS Cube View
什么是 SAP S/4HANA 的 VDM Layering Architecture 的 CDS Cube View
|
12月前
|
SQL 数据可视化 数据挖掘
什么是 SAP S/4HANA 的 VDM Layering Architecture 的 CDS Analytical Query View
什么是 SAP S/4HANA 的 VDM Layering Architecture 的 CDS Analytical Query View
|
12月前
|
数据采集 BI 数据库
什么是 SAP S/4HANA 的 VDM Layering Architecture 的 VDM Basic View
什么是 SAP S/4HANA 的 VDM Layering Architecture 的 VDM Basic View
使用 ABAP 代码消费 SAP Cloud for Customer 系统的 OData 服务
使用 ABAP 代码消费 SAP Cloud for Customer 系统的 OData 服务
使用S/4HANA里的Smart Business消费通过CDS view暴露的OData服务
In my previous blog Build Chart and Table representation via Analytics Path Framework
使用S/4HANA里的Smart Business消费通过CDS view暴露的OData服务
使用 SAP S/4HANA Smart Business Tile 来访问通过 SAP CDS view 暴露出来的 OData 服务
使用 SAP S/4HANA Smart Business Tile 来访问通过 SAP CDS view 暴露出来的 OData 服务
111 0
使用 SAP S/4HANA Smart Business Tile 来访问通过 SAP CDS view 暴露出来的 OData 服务
使用SAP S/4HANA Smart Business Tile消费CDS view OData服务
使用SAP S/4HANA Smart Business Tile消费CDS view OData服务
128 0
使用SAP S/4HANA Smart Business Tile消费CDS view OData服务
|
JSON 数据格式
使用xsodata文件将SAP HANA CDS view暴露成OData服务
使用xsodata文件将SAP HANA CDS view暴露成OData服务
使用xsodata文件将SAP HANA CDS view暴露成OData服务
SAP OData请求是如何通过OData Plugin路由到OData Offline Data Store的
SAP OData请求是如何通过OData Plugin路由到OData Offline Data Store的
SAP OData请求是如何通过OData Plugin路由到OData Offline Data Store的
一个SAP S/4HANA CDS view extension的具体例子
一个SAP S/4HANA CDS view extension的具体例子
140 0
一个SAP S/4HANA CDS view extension的具体例子