cancel
Showing results for 
Search instead for 
Did you mean: 

Incorrect result of "neg" function

Former Member
0 Kudos

Hello! I'm using neg function in my mapping. In some cases, it works incorrect. For example:

In: 140132.04

Out: -140132.05

why? and what should I do?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

you could set

com.sap.aii.mappingtool.flib3.bigdecimalarithmetic = true

in exchange profile.

It's explained here:

/people/thorsten.nordholmsbirk/blog/2006/08/25/new-arithmetic-and-statistical-functions-in-message-mappings-in-sp18

Regards

Patrick

former_member200962
Active Contributor
0 Kudos

Not sure why it fails....arithematic functions fail in some cases (there is even a blog on the arithematic functions that should be avoided).....may be related to the field length(my assumption)....but if nothing works then you can try this workaround:

Constant(-) --> 
              --> Concat --> Target
Source -->

Regards,

Abhishek.