on 03-22-2024 12:21 PM
Hello,
I am having a problem with a Fiori Overview Page I am trying to develop. In the manifest.json I set up the card like this:
"sap.ovp": {
"globalFilterModel": "mainModel",
"globalFilterEntityType": "SalesOverviewTop",
"containerLayout": "resizable",
"enableLiveFilter": true,
"considerAnalyticalParameters": false,
"cards": {
"donutCard": {
"model": "mainModel",
"template": "sap.ovp.cards.v4.charts.analytical",
"settings": {
"title": "{{cardDonutTitle}}",
"entitySet": "DonutMonthly",
"sortBy": "SumNetAmount",
"chartAnnotationPath": "com.sap.vocabularies.UI.v1.Chart#donutCard",
"dataPointAnnotationPath": "com.sap.vocabularies.UI.v1.DataPoint#quDpSum"
}
}
},
The CDS-View for the Card (DonutMonthly) looks like this:
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'AT RAP OVP Interface Summary of Orders'
@UI: {
chart: [{
qualifier: 'donutCard',
chartType: #DONUT,
measures: ['SumNetAmount'],
dimensions: ['CalendarMonthNameTxt'],
measureAttributes: [{ measure: 'SumNetAmount', role: #AXIS_1 }],
dimensionAttributes: [{ dimension: 'CalendarMonthNameTxt', role: #CATEGORY }]
}]
}
@UI.presentationVariant: [
{
maxItems: 5,
sortOrder: [{ by: 'SumNetAmount', direction: #DESC }],
qualifier: 'StandardDonut',
requestAtLeast: [ 'SalesMonth', 'CalendarMonthNameTxt','SumNetAmount','TransactionCurrency' ]
}
]
define view entity ZI_SO_C_SUM as select from ZI_SO_T_OVP
association[1] to I_CalendarMonthText on I_CalendarMonthText.CalendarMonth = $projection.SalesMonth
and I_CalendarMonthText.Language = $session.system_language
{
@UI.identification: [{ type: #FOR_INTENT_BASED_NAVIGATION,
semanticObject: 'ZSalesOrderFs',
qualifier: 'semNavigation',
semanticObjectAction: 'manage' }]
@UI.selectionField: [{ position: 10, qualifier: 'quSalesMonth' }]
@UI.lineItem: [{position: 10 }]
key SalesMonth,
@UI.lineItem: [{ position: 20 }]
case SalesMonth
when (substring($session.system_date, 5,2) )
then 'This Month'
else
I_CalendarMonthText.CalendarMonthName
end as CalendarMonthNameTxt,
@Semantics.amount.currencyCode: 'TransactionCurrency'
@UI.dataPoint: {
qualifier: 'quDpSum',
title: 'DP Title Sum',
description: 'DP Descr Sum'
}
sum(TotalNetAmount) as SumNetAmount,
TransactionCurrency
//Associations
} group by SalesMonth, I_CalendarMonthText.CalendarMonthName, TransactionCurrency
I noticed when looking at the network requests in the browser developer tools that the $batch request payload looks like this:
GET sap?sap-client=710&$apply=aggregate(SumNetAmount%20with%20sum%20as%20SumNetAmountAgg)&$skip=0&$top=1 HTTP/1.1
Note that it starts with sap?sap-client...
This then leads to error 404, here the response message
{"error":{"code":"/IWCOR/CX_OD_URI_NOT_MATCHING","message":"Resource not found for segment 'sap'"...
While in another app the request payload starts like this:
GET SalesOrder?sap-client=710&$count=true&$select=DeliveryDateCriticality,OrderType,
Here it starts off with the name of the Entity, I think this might be the reason.
Could you please help me with this?
Thanks in advance and kind Regards,
Stephan
User | Count |
---|---|
78 | |
10 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.