cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RAP List Report aggregation missing only in deployed version

Pedro_Cruchinho
Discoverer
0 Likes
1,016

I've created an RAP APP ( on adt side ) to show an list report fiori app with option to navigate for detail ( also a list report ).

I neeed to have totals and subtotals so I put the anotaion @Aggregation.default: #SUM in the projection view.
When I preview the APP using Service bindiing preview option I've the totals:

Pedro_Cruchinho_2-1743705074421.png

When I go to details ( using associations ) I also have de totals:

Pedro_Cruchinho_3-1743705127248.png

After I deploy the APP using BAS I lost totals in the main view:

Pedro_Cruchinho_4-1743705236245.png

So I assumed that some limitation in BAS side. But if I go to the details ( in the deployed app ), I have the totals:

Pedro_Cruchinho_5-1743705329716.png

Since I have parameters, I'm using oDataV2 protocol.

I saw in Browser that the request that doesn't have totals have in the select all fieds, like:

GET ZC_COMPT_MAIN(p_date_from=datetime%272015-03-26T00%3a00%3a00%27,p_date_to=datetime%272025-04-04T00%3a00%3a00%27)/Results?sap-client=100&$select=Supplier,VATRegistration,tipoproc,SumAmountInCompanyCodeCurrency,DispCodeCurrency,SumTaxBaseAmountInCoCodeCrcy,SumTaxAmountInCoCodeCrcy,SumNetAmount,SumPurchaseRequisitionPrice,computo,ID&$filter=((((CompanyCode%20eq%20%27I001%27))%20and%20((Supplier%20eq%20%272018%27))))&$orderby=Supplier%20asc&$top=120&$inlinecount=allpages HTTP/1.1

The request that has totals, just select the fields with values:


GET ZC_COMPT_MAIN(p_date_from=datetime%272015-03-26T00%3a00%3a00%27,p_date_to=datetime%272025-04-04T00%3a00%3a00%27)/Results?sap-client=100&$select=SumAmountInCompanyCodeCurrency,DispCodeCurrency,SumTaxBaseAmountInCoCodeCrcy,SumTaxAmountInCoCodeCrcy,SumNetAmount,SumPurchaseRequisitionPrice,computo&$filter=((((CompanyCode%20eq%20%27I001%27))%20and%20((Supplier%20eq%20%272018%27))))&$top=100&$inlinecount=allpages HTTP/1.1

 

Can you please help me identifying what could be the problem? Is there an option to afect the OData request ? Thanks

 

 

 

 

 

 

View Entire Topic
Pedro_Cruchinho
Discoverer
0 Likes

I found that, in the BAS I should use Analitical Table instead of responsive table. I changed this option and deploy the app again and the totals appers.

N0050
Discoverer
0 Likes
Manifest.json "sap.ui.generic.app": { "pages": { "ListReport|YourEntity": { "component": { "name": "sap.suite.ui.generic.template.ListReport", "settings": { "tableSettings": { "type": "AnalyticalTable" } } }, ... } } }