在SAP云平台ABAP编程环境里使用CAP模型创建Fiori应用
生活随笔
收集整理的這篇文章主要介紹了
在SAP云平台ABAP编程环境里使用CAP模型创建Fiori应用
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
創建必須的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應用了:
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
總結
以上是生活随笔為你收集整理的在SAP云平台ABAP编程环境里使用CAP模型创建Fiori应用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: gta5手游在哪里下载
- 下一篇: SAP官方社区上提供的一些下载资源