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

SAP C4C OData v2 - display Edm.Decimal as an Integer

kacper1
Participant
0 Likes
650

Dear Experts,

in SAP Cloud for Customer I have built an OData query with report results (Opportunities), but there is an issue which I couldn't solve. The field "Expected Value" according to OData v2 metadata is type of "Edm.Decimal" which is displayed as JSON string. The point is how can I change this Edm.Decimal to be displayed as Integer ?

And here is my result of OData query. As you can see, it is in String format. I want it to be the type of Integer.

Thank you in advance for your feedback !

Regards,

Kacper

Accepted Solutions (1)

Accepted Solutions (1)

leonardo_felini
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello Kacper,

The data type of each field in Odata is defined by design based on its usage in C4C.

Considering this, any change in the way the fileds are displayed would need to be made after the query with a custom converter.

Kind regards,

Leonardo

Support Consultant | SAP Product Support

Community:

SAP Business ByDesign: https://www.sap.com/community/topics/business-bydesign.html

SAP Cloud for Customer: https://www.sap.com/community/topics/cloud-for-customer.html

Answers (0)