Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Odata to Excel Number Format Problem

0 Kudos

Hi Experts, I consume Odata Service in Excel but shows Decimal values like string, how can i resolve this problem

Thank you in advance.

@AbapCatalog.sqlViewName: 'Z_MARA_XX' @AbapCatalog.compiler.compareFilter: true @AbapCatalog.preserveKey: true @AccessControl.authorizationCheck: #CHECK @EndUserText.label: 'MARA' @OData.publish: true define view Z_MARA as

select from mara {

key mandt as Mandt,

key matnr as Matnr,

meins as Meins,

@Semantics.quantity.unitOfMeasure: 'Meins'

@DefaultAggregation: #SUM

ltrim(rtrim(replace(cast(brgew as abap.sstring(30)),'.',','),''),'') as Brgew,

@Semantics.quantity.unitOfMeasure: 'Meins'

@DefaultAggregation: #SUM ntgew as Ntgew

} where mtart = 'ZP06'

2 REPLIES 2

Sandra_Rossi
Active Contributor
0 Kudos

I don't know much all this, but don't you think the issue is because BRGEW is declared as a text field? Why do you need to change the thousands and decimal point characters?

0 Kudos

I try different ways to solve the problem, NTGEW doesn't display properly either