在SAP云平台ABAP编程环境里使用CAP模型创建Fiori应用
【摘要】 创建必须的CDS view,激活,然后基于CDS view创建behavior definition:@Semantics.user.createdBy: truekey holiday_id,@Semantics.user.lastChangedBy: truemonth_of_holiday,@Semantics.systemDateTime.createdAt: trueday_of_...
创建必须的CDS view,激活,然后基于CDS view创建behavior definition:
@Semantics.user.createdBy: true
key holiday_id,
@Semantics.user.lastChangedBy: true
month_of_holiday,
@Semantics.systemDateTime.createdAt: true
day_of_holiday,
@Semantics.systemDateTime.lastChangedAt:true
changedat
该behavior definition基于的CDS view为之前创建好的ZCAL_I_HOLIDAY_JERRY:
这个behavior definition实现代码如下:
managed; // implementation in class zbp_cal_i_holiday_jerry unique;
define behavior for ZCAL_I_HOLIDAY_JERRY alias holidayRoot
persistent table ZCAL_HOLIDAY_001
lock master
/*
This defines the root node as main locking object to avoid multiple persons editing the same object.
Sub nodes have to be defined as lock dependent later on.
*/
//authorization master ( instance )
//etag master <field_name>
{
create;
update;
delete;
}
基于data definition创建service definition:
在Service definition里,将CDS view暴露出来,重命名为HolidayRoot:
再基于service definition创建service binding:
如果遇到语法错误,回过头去检查你的behavior definition或者service definition是否未激活。
service binding成功创建后,激活,就可以通过preview按钮,打开对应的Fiori应用了:
假设我们在ES5系统里有一个ABAP webdynpro应用,想配置到SAP Fiori Launchpad里,首先在SAP Cloud Platform上创建一个Destination,指向ES5:
再维护如下五个额外的properties:
登录SAP云平台portal应用,在content manager里新建一个app:
properties的App UI technology,选择Web Dynpro ABAP:
在Application ID里,维护ABAP webdynpro的ID:S_EPM_FPM_PO:
新建一个group:
将刚才创建的Site app维护进这个Group:
之后就能在portal上的Fiori Launchpad里看到包含了这个webdynpro应用的tile了:
【声明】本内容来自华为云开发者社区博主,不代表华为云及华为云开发者社区的观点和立场。转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息,否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)