<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Calling a function from C# application, getting 0.052 when sending 52 (Fixed point arithmetic problem?) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-c-application-getting-0-052-when-sending-52-fixed/m-p/10523797#M1854439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; sorry if I'm posting in the wrong forum, if I'm, please redirect me to the correct one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I've got a C# application that is making a call to a custom BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 of the components of the structure are decimal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/514823" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/514824" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The information I sent in the request is 1000, 200 and 200:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/514750" /&gt;&lt;/P&gt;&lt;P&gt;But when I debug in SAP, I get the following values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/514825" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAP I checked and the "Fixed point arithmetic" is active, in my C# application I'm not able to set this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me? Again, if this is not the best place to seek help, please redirect me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: To send messages from C# application I'm using ERP Connector from Theobald Software.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L. Pinho&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2014 17:57:46 GMT</pubDate>
    <dc:creator>luis_pinho</dc:creator>
    <dc:date>2014-08-06T17:57:46Z</dc:date>
    <item>
      <title>Calling a function from C# application, getting 0.052 when sending 52 (Fixed point arithmetic problem?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-c-application-getting-0-052-when-sending-52-fixed/m-p/10523797#M1854439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; sorry if I'm posting in the wrong forum, if I'm, please redirect me to the correct one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I've got a C# application that is making a call to a custom BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 of the components of the structure are decimal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/514823" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/514824" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The information I sent in the request is 1000, 200 and 200:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/514750" /&gt;&lt;/P&gt;&lt;P&gt;But when I debug in SAP, I get the following values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/514825" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAP I checked and the "Fixed point arithmetic" is active, in my C# application I'm not able to set this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me? Again, if this is not the best place to seek help, please redirect me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: To send messages from C# application I'm using ERP Connector from Theobald Software.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L. Pinho&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 17:57:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-c-application-getting-0-052-when-sending-52-fixed/m-p/10523797#M1854439</guid>
      <dc:creator>luis_pinho</dc:creator>
      <dc:date>2014-08-06T17:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a function from C# application, getting 0.052 when sending 52 (Fixed point arithmetic problem?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-c-application-getting-0-052-when-sending-52-fixed/m-p/10523798#M1854440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may try specifying the decimal places explicitly in your C# application: just send "1000.000" instead of "1000".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 04:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-c-application-getting-0-052-when-sending-52-fixed/m-p/10523798#M1854440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-07T04:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a function from C# application, getting 0.052 when sending 52 (Fixed point arithmetic problem?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-c-application-getting-0-052-when-sending-52-fixed/m-p/10523799#M1854441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm now sending:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/515230" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bus the values in SAP are still the same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/515253" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other idea? (Besides multiplying by 1000)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 08:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-c-application-getting-0-052-when-sending-52-fixed/m-p/10523799#M1854441</guid>
      <dc:creator>luis_pinho</dc:creator>
      <dc:date>2014-08-07T08:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a function from C# application, getting 0.052 when sending 52 (Fixed point arithmetic problem?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-c-application-getting-0-052-when-sending-52-fixed/m-p/10523800#M1854442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just in order to have a full picture, please, post your C# code as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 19:24:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-c-application-getting-0-052-when-sending-52-fixed/m-p/10523800#M1854442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-07T19:24:06Z</dc:date>
    </item>
  </channel>
</rss>

