@AbapCatalog.sqlViewName: 'ZCOUNT_SO'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Sales orders by type'
define view ZCOUNTSO as select from vbak as Hdr
inner join vbap as Item on Hdr.vbeln = Item.vbeln {
@UI.lineItem: [{ position: 10, label: 'Sales order Type', qualifier: 'Q3' }]
key Hdr.auart as soType,
@UI.lineItem: [{ position: 20, label: 'Sales order count', qualifier: 'Q3', type: #AS_DATAPOINT }]
key count(*) as soCount
}
group by Hdr.auart
@AbapCatalog.sqlViewName: 'ZMATERIALS_PLANT'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'CDS for materials by plant'
define view ZMATERIALS as select from mara as A
inner join marc as C on A.matnr = C.matnr
{
// key A.matnr as Material,
@UI.lineItem: [{ position: 10, label: 'Plant', qualifier: 'MARA' }]
key C.werks as Plant,
@UI.lineItem: [{ position: 20, label: 'Materials created', qualifier: 'MARA', type: #AS_DATAPOINT }]
key count(*) as MaterialsCreated
}
group by
C.werks
@OData.publish: true
"sap.ovp": {
"globalFilterModel": "ZCOUNTSO_CDS",
"globalFilterEntityType": "ZCOUNTSOType",
"containerLayout": "resizable",
"enableLiveFilter": true,
"considerAnalyticalParameters": false,
"cards": {
"card00": {
"model": "ZCOUNTSO_CDS",
"template": "sap.ovp.cards.list",
"settings": {
"title": "{{card00_title}}",
"subTitle": "{{card00_subTitle}}",
"entitySet": "ZCOUNTSO",
"listType": "extended",
"listFlavor": "bar",
"sortBy": "soCount",
"sortOrder": "descending",
"addODataSelect": false,
"annotationPath": "com.sap.vocabularies.UI.v1.LineItem#Q1"
}
}
}
}
@AbapCatalog.sqlViewName: 'ZCOUNT_SO'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Sales orders by type'
@OData.publish: true
define view ZCOUNTSO as select from vbak as Hdr
inner join vbap as Item on Hdr.vbeln = Item.vbeln {
@UI.lineItem: [{ position: 10, label: 'Sales order Type', qualifier: 'Q1' }]
key Hdr.auart as soType,
@UI.dataPoint:
{
title: 'Number of failed idocs',
criticalityCalculation: {
improvementDirection: #TARGET,
toleranceRangeLowValue: 5,
toleranceRangeHighValue: 500,
deviationRangeHighValue: 4000
}
}
@UI.lineItem: [{ position: 20, label: 'Sales order count', qualifier: 'Q1', type: #AS_DATAPOINT }]
key count(*) as soCount
}
group by Hdr.auart
"ZMATERIALS_CDS": {
"uri": "/sap/opu/odata/sap/ZMATERIALS_CDS/",
"type": "OData",
"settings": {
"annotations": [
"ZMATERIALS_CDS_VAN"
],
"localUri": "localService/ZMATERIALS_CDS/metadata.xml"
}
},
"ZMATERIALS_CDS_VAN": {
"uri": "/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotations(TechnicalName='ZMATERIALS_CDS_VAN',Version='0001')/$value/",
"type": "ODataAnnotation",
"settings": {
"localUri": "localService/ZMATERIALS_CDS/ZMATERIALS_CDS_VAN.xml"
}
}
"ZMATERIALS_CDS": {
"dataSource": "ZMATERIALS_CDS",
"settings": {
"defaultCountMode": "Inline"
}
}
"card01": {
"model": "ZMATERIALS_CDS",
"template": "sap.ovp.cards.list",
"settings": {
"title": "{{card01_title}}",
"subTitle": "{{card01_subTitle}}",
"entitySet": "ZMATERIALS",
"listType": "extended",
"listFlavor": "bar",
"sortBy": "MaterialsCreated",
"sortOrder": "descending",
"addODataSelect": true
}
}
{
"_version": "1.7.0",
"start_url": "start.html",
"sap.app": {
"id": "ZOVP.ZCDSOVP",
"type": "application",
"i18n": "i18n/i18n.properties",
"applicationVersion": {
"version": "1.0.0"
},
"title": "{{app_title}}",
"description": "{{app_description}}",
"dataSources": {
"ZCOUNTSO_CDS": {
"uri": "/sap/opu/odata/sap/ZCOUNTSO_CDS/",
"type": "OData",
"settings": {
"annotations": [
"ZCOUNTSO_CDS_VAN"
],
"localUri": "localService/ZCOUNTSO_CDS/metadata.xml"
}
},
"ZCOUNTSO_CDS_VAN": {
"uri": "/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotations(TechnicalName='ZCOUNTSO_CDS_VAN',Version='0001')/$value/",
"type": "ODataAnnotation",
"settings": {
"localUri": "localService/ZCOUNTSO_CDS/ZCOUNTSO_CDS_VAN.xml"
}
},
"ZMATERIALS_CDS": {
"uri": "/sap/opu/odata/sap/ZMATERIALS_CDS/",
"type": "OData",
"settings": {
"annotations": [
"ZMATERIALS_CDS_VAN"
],
"localUri": "localService/ZMATERIALS_CDS/metadata.xml"
}
},
"ZMATERIALS_CDS_VAN": {
"uri": "/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotations(TechnicalName='ZMATERIALS_CDS_VAN',Version='0001')/$value/",
"type": "ODataAnnotation",
"settings": {
"localUri": "localService/ZMATERIALS_CDS/ZMATERIALS_CDS_VAN.xml"
}
}
},
"sourceTemplate": {
"id": "OVP.cardtemplate",
"version": "0.0.0"
}
},
"sap.ui": {
"technology": "UI5",
"icons": {
"icon": ""
},
"deviceTypes": {
"desktop": true,
"tablet": true,
"phone": true
},
"supportedThemes": [
"sap_belize"
]
},
"sap.ui5": {
"dependencies": {
"minUI5Version": "${sap.ui5.dist.version}",
"libs": {
"sap.ovp": {}
}
},
"models": {
"i18n": {
"type": "sap.ui.model.resource.ResourceModel",
"uri": "i18n/i18n.properties"
},
"@i18n": {
"preload": true,
"type": "sap.ui.model.resource.ResourceModel",
"uri": "i18n/i18n.properties"
},
"ZCOUNTSO_CDS": {
"dataSource": "ZCOUNTSO_CDS",
"settings": {
"defaultCountMode": "Inline"
}
},
"ZMATERIALS_CDS": {
"dataSource": "ZMATERIALS_CDS",
"settings": {
"defaultCountMode": "Inline"
}
}
},
"extends": {
"extensions": {}
},
"contentDensities": {
"compact": true,
"cozy": true
}
},
"sap.ovp": {
"globalFilterModel": "ZCOUNTSO_CDS",
"globalFilterEntityType": "ZCOUNTSOType",
"containerLayout": "resizable",
"enableLiveFilter": true,
"considerAnalyticalParameters": false,
"cards": {
"card00": {
"model": "ZCOUNTSO_CDS",
"template": "sap.ovp.cards.list",
"settings": {
"title": "{{card00_title}}",
"subTitle": "{{card00_subTitle}}",
"entitySet": "ZCOUNTSO",
"listType": "extended",
"listFlavor": "bar",
"sortBy": "soCount",
"sortOrder": "descending",
"addODataSelect": false,
"annotationPath": "com.sap.vocabularies.UI.v1.LineItem#Q1"
}
},
"card01": {
"model": "ZMATERIALS_CDS",
"template": "sap.ovp.cards.list",
"settings": {
"title": "{{card01_title}}",
"subTitle": "{{card01_subTitle}}",
"entitySet": "ZMATERIALS",
"listType": "extended",
"listFlavor": "bar",
"sortBy": "MaterialsCreated",
"sortOrder": "descending",
"addODataSelect": true,
"annotationPath": "com.sap.vocabularies.UI.v1.LineItem#MARA"
}
}
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 | |
4 | |
3 | |
3 |