<?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>Question Re: FLOAT/XSD:FLOAT Data Type Issue in MS SQL and SAP PI in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/float-xsd-float-data-type-issue-in-ms-sql-and-sap-pi/qaa-p/10759627#M3930797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;I think the problem is in the JDBC adapter that makes that transformation: &lt;A href="http://stackoverflow.com/questions/9114487/jdbc-jtds-getstring-returns-doubles-in-scientific-notation" title="http://stackoverflow.com/questions/9114487/jdbc-jtds-getstring-returns-doubles-in-scientific-notation"&gt;java - JDBC: jtds getString() returns doubles in scientific notation - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my opinion you need to do the conversion in the message mapping, you have an example, in the code provided by &lt;SPAN class="font-color-meta j-line2"&gt;&lt;A _jive_internal="true" data-avatarid="38732" data-userid="372029" data-username="grzegorz.glowacki" href="https://answers.sap.com/people/grzegorz.glowacki"&gt;Grzegorz Glowacki&lt;/A&gt;&lt;/SPAN&gt;, in this thread: &lt;A __default_attr="3193942" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="Convert Exponential form to Standard:Without FormatNumber" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Nov 2014 12:55:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-11-18T12:55:19Z</dc:date>
    <item>
      <title>FLOAT/XSD:FLOAT Data Type Issue in MS SQL and SAP PI</title>
      <link>https://community.sap.com/t5/technology-q-a/float-xsd-float-data-type-issue-in-ms-sql-and-sap-pi/qaq-p/10759626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Every one,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing strange issue with particular filed value from the MS SQL DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value Field in the DB of type FLOAT is getting exponential values after executing the query by the sender JDBC channel in SAP PI.Based on my analysis if the Value filed in the DB is 8 chars length then i can see the exponential values in PI sender JDBC channel log and from there i am passing the same values to the target system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PI i am using the XSD:FLOAT data type.I have tried with another different data types in PI however still no luck.I am getting the same issue.I am planning to convert the exponential value to normal value by writing a small UDF in mapping however before that i wanted to check if some one faced similar kind of issue and fix for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actual Issue in PI711 Prod system.I replicated in PI 730 however the same issue.Please find below screens for reference.I really appreciate if some one can help me on this.I guess some thing we can do with JVM parameters settings but not sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Float data type in MS SQL which is by default 8 chars:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/587709" /&gt;&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/587710" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Records in DB:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/587789" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Channel Log:&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/587791" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 10:42:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/float-xsd-float-data-type-issue-in-ms-sql-and-sap-pi/qaq-p/10759626</guid>
      <dc:creator>former_member183908</dc:creator>
      <dc:date>2014-11-18T10:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: FLOAT/XSD:FLOAT Data Type Issue in MS SQL and SAP PI</title>
      <link>https://community.sap.com/t5/technology-q-a/float-xsd-float-data-type-issue-in-ms-sql-and-sap-pi/qaa-p/10759627#M3930797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;I think the problem is in the JDBC adapter that makes that transformation: &lt;A href="http://stackoverflow.com/questions/9114487/jdbc-jtds-getstring-returns-doubles-in-scientific-notation" title="http://stackoverflow.com/questions/9114487/jdbc-jtds-getstring-returns-doubles-in-scientific-notation"&gt;java - JDBC: jtds getString() returns doubles in scientific notation - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my opinion you need to do the conversion in the message mapping, you have an example, in the code provided by &lt;SPAN class="font-color-meta j-line2"&gt;&lt;A _jive_internal="true" data-avatarid="38732" data-userid="372029" data-username="grzegorz.glowacki" href="https://answers.sap.com/people/grzegorz.glowacki"&gt;Grzegorz Glowacki&lt;/A&gt;&lt;/SPAN&gt;, in this thread: &lt;A __default_attr="3193942" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="Convert Exponential form to Standard:Without FormatNumber" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 12:55:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/float-xsd-float-data-type-issue-in-ms-sql-and-sap-pi/qaa-p/10759627#M3930797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-18T12:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: FLOAT/XSD:FLOAT Data Type Issue in MS SQL and SAP PI</title>
      <link>https://community.sap.com/t5/technology-q-a/float-xsd-float-data-type-issue-in-ms-sql-and-sap-pi/qaa-p/10759628#M3930798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Inaki.It worked like a charm &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1078/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried the input arg in UDF with both float and string and i don't found any issues in UDF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope there will be no other alternative for this kind of issue except UDF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 14:39:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/float-xsd-float-data-type-issue-in-ms-sql-and-sap-pi/qaa-p/10759628#M3930798</guid>
      <dc:creator>former_member183908</dc:creator>
      <dc:date>2014-11-18T14:39:24Z</dc:date>
    </item>
  </channel>
</rss>

