在SAP WebIDE里使用Fiori Elements快速开发SAP UI5应用

(1) Create CDS view based on sample database table spfli and scarr


Create two CDS views in ABAP development studio. The source code for both are listed below. You just need to copy them into studio and click activate button.

@AbapCatalog.sqlViewName: 'zjerrySQL0309'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'test 20160309'
@ObjectModel: {
   createEnabled,
   deleteEnabled,
   updateEnabled
}
define view Zjerrytest20160309
as select from spfli association [0..1] to scarr as _scarr
on _scarr.carrid = spfli.carrid {
       key spfli.carrid,
       key _scarr.carrname,
       key spfli.connid,
       spfli.cityfrom,
       spfli.cityto
}
@AbapCatalog.sqlViewName: 'z20160316'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'test odata publish '
@OData.publish: true
@ObjectModel: {
   type: #CONSUMPTION,
   compositionRoot,
   semanticKey: ['Actor'],
   createEnabled,
   deleteEnabled,
   updateEnabled
}
define view Zjerrytest20160316 as select from Zjerrytest20160309 {
    @UI.lineItem : [{position:10}]
    key Zjerrytest20160309.carrid as Jerryid,
    @UI.lineItem : [{position:20}]
    key Zjerrytest20160309.carrname as name,
    @UI.lineItem : [{position:30}]
    key Zjerrytest20160309.cityfrom as startLocation,
    @UI.lineItem : [{position:40}]
    key Zjerrytest20160309.cityto as target,
    @UI.lineItem : [{position:50}]
    key Zjerrytest20160309.connid
}

在SAP WebIDE里使用Fiori Elements快速开发SAP UI5应用在SAP WebIDE里使用Fiori Elements快速开发SAP UI5应用在SAP WebIDE里使用Fiori Elements快速开发SAP UI5应用在SAP WebIDE里使用Fiori Elements快速开发SAP UI5应用在SAP WebIDE里使用Fiori Elements快速开发SAP UI5应用在SAP WebIDE里使用Fiori Elements快速开发SAP UI5应用在SAP WebIDE里使用Fiori Elements快速开发SAP UI5应用在SAP WebIDE里使用Fiori Elements快速开发SAP UI5应用Build a Productive Fiori application in CRM Service area

Would you like to use the introduced technology to build a more complicated and productive Fiori application in CRM Service area? Then follow the steps in this blog Create a CRM Service Order Fiori application within a couple of minutes


上一篇:IE里Iframe的Cookie问题解决办法总结


下一篇:钉应用开发分论坛议题嘉宾版邀请函 请您查收!