Skip to Content
0

EDM.Decimal decimal separator problem

Aug 18, 2017 at 08:15 AM

82

avatar image
Former Member

Hi,

I'm just starting my first project with oData services and SAPUI5, after creating the first entity typs I'm facing a problem concerning decimal values.

I have created an entity type with edm.decimal core types. They are nullable, having prec. 8 and scale of 2 or 7 and 3 . The corresponding ABAP data types are 'CURR' oder 'QUAN'.

If I test the service for getting the single entity I receive the following error:

"Unable to interpret 0,01 as a number".

After changing the decimal separator of my user in the SU01 to '.' everything works fine. But in my opinion there must be a better way. I can't believe that I have to change every user in a company working in, for example germany to decimal separator '.'.

Do you have another solution for this problem?

Thank you for your help

Thomas

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers