Tiven Wang
Wang Tiven October 25, 2016
425 favorite favorites
bookmark bookmark
share share

接着上一篇How to Create a Fiori app Using OData service on the HCP,本篇介绍如何将创建好的Fiori应用配置到Launchpad上去,HANA部分的完整项目代码可以在Github上下载。

Series

  1. How to develop an XS application on the SAP HANA Cloud Platform
  2. How to develop an XS Odata Service by CDS on the HCP
  3. How to Create a Fiori app Using OData service on the HCP
  4. How to Config Fiori App in Fiori Launchpad
  5. How to use HTTP Destination in HANA and HANA Cloud
  6. HANA Cloud Connector

About SAP Fiori Launchpad

Fiori System就好比是HTML版的手机系统,Launchpad是手机主屏幕,Fiori App是手机应用程序,Intents比如是Android Activity之间的Intent,Tile是手机桌面动态图标带有应用的最新状态,Tile Group就是图标文件夹,Catalog是手机应用程序分类。只不过相对于手机是你一个人在使用,而Fiori要提供给不同角色不同权限的用户使用。

下面列出来的是Fiori Launchpad涉及到的这几个概念

  • User Users access apps in their SAP Fiori launchpad depending on the role that you assign to them.

  • Role You create roles in the SAP HANA Cloud Platform Cockpit and assign users to these roles.

  • Catalog Catalogs are collections of apps that you want to make available for a specific role (or for multiple roles). You assign roles and apps to a catalog. Users belonging to a particular role have access to the all the apps that are assigned to the same catalog as their role.

  • App an app represents any SAPUI5 application that users can launch from their SAP Fiori launchpad.

  • Tile typically apps are represented by tiles. A user clicks a tile to launch an app.

  • Intents navigation to these apps is done via intents (including optional parameters).So the flow is as follows: When a user clicks a tile in their launchpad, the intent (including optional parameters) navigates to the app and opens it.

  • Tile Group A tile group conists of tiles representing a subset of apps that is visible to a user on their launchpad if the user is assigned to the same role as the tile group.You assign roles to a tile group so that users with this role can view the tile group in their launchpad. Users will only see those app tiles in the tile group that have been assigned to a catalog with this same role.

Systems

对于Fiori Launchpad配置有三种环境

  • HCP Cloud版的Fiori Launchpad配置起来最方便快捷

  • HANA 版的Fiori Launchpad需要编写一些配置文件

  • ABAP 版则比较麻烦

HCP

Create Site in Portal Service

首先介绍HCP版的Fiori Launchpad配置,登录HCP,在services面板里启用Portal Service, 然后Go to Service -> Create New Site

Create Site
Create Site

然后在Content Management页面新增你的CatalogGroup

Deploy Fiori to HCP

Webide中的Fiori App代码在配置到Launchpad之前需要部署到HCP。

执行步骤 Deploy -> Deploy to SAP HANA Cloud Platform 然后填写相应配置即可。

Register to Fiori Launchpad

部署到HCP后即可执行 Register to SAP Fiori Launchpad , 按步骤填写相应配置即可。

详细过程参见HCP官方文档

HANA

// TODO

  • sap.hana.uis.db::SITE_DESIGNER

  • sap.hana.uis.db::SITE_USER

ABAP

Deploy to SAPUI5 ABAP Respository

Setup Web IDE Connecting Remote Systems

参考Web IDE - Connecting Remote Systems

HCP Create Destination
HCP Create Destination

Deploy

在Web IDE里的Project上执行 Deploy -> Deploy to SAPUI5 ABAP Respository, 选择System并填写配置applicaiton name,package及request number,完成即可。

参考Web IDE - Deploying Applications to the SAPUI5 ABAP Repository

Create Tiles in FLP

参考SAP Blogs - How To Setup the SAP Fiori Launchpad

在ABAP系统打开此链接/sap/bc/ui5_ui5/sap/arsrvc_upb_admn/main.html维护Catalog Groups等,创建Tile和Target Mappings。

Create Target Mapping in FLP
Create Target Mapping in FLP

Create Role and Semantic Object

参考SAP Blogs - Understanding launchpad object relationship with screenshots

配置Semantic Object并创建Role配置就可。

效果

Fiori Launchpad在ABAP系统中的链接/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html

Next Steps

References

Similar Posts

  • Cloud-Native Applications How to build cloud-native applications on a cloud platform.
  • SAP HANA Database SAP HANA is an in-memory, column-oriented, relational database management system developed and marketed by SAP SE. Its primary function as database server is to store and retrieve data as requested by the applications. In addition, it performs advanced analytics (predictive analytics, spatial data processing, text analytics, text search, streaming analytics, graph data processing) and includes ETL capabilities as well as an application server.
  • SAP ABAP CDS
  • Serverless Architecture
  • Firebase - Hello world
  • Microservices

Comments

comments powered by Disqus
Back to Top