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: 

Calling a function from C# application, getting 0.052 when sending 52 (Fixed point arithmetic problem?)

luis_pinho
Explorer
0 Kudos

Hi all,

sorry if I'm posting in the wrong forum, if I'm, please redirect me to the correct one.

I've got a C# application that is making a call to a custom BAPI.

3 of the components of the structure are decimal.

The information I sent in the request is 1000, 200 and 200:

But when I debug in SAP, I get the following values:

From the research I've been doing, this problem happens when the sender and the receiver don't have the "Fixed point arithmetic" set in the same way.

In SAP I checked and the "Fixed point arithmetic" is active, in my C# application I'm not able to set this.

Can you help me? Again, if this is not the best place to seek help, please redirect me.

Note: To send messages from C# application I'm using ERP Connector from Theobald Software.

Best Regards,

L. Pinho

3 REPLIES 3

Former Member
0 Kudos

You may try specifying the decimal places explicitly in your C# application: just send "1000.000" instead of "1000".

0 Kudos

Hi Alex,

the result is the same.

I'm now sending:

Bus the values in SAP are still the same:

Any other idea? (Besides multiplying by 1000)

0 Kudos

Just in order to have a full picture, please, post your C# code as well.