<?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 Re: Simple transformation file dropping trailing zero. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-file-dropping-trailing-zero/m-p/7520949#M1560484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I understand about XML (could be more), the canonical representation of decimal values does not allow a fixed number of decimal places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/52/491a40251e2402e10000000a1550b0/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/52/491a40251e2402e10000000a1550b0/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from there, this XML documentation is referenced:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.w3.org/TR/xmlschema-2/#decimal" target="test_blank"&gt;http://www.w3.org/TR/xmlschema-2/#decimal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;important bit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Leading and trailing zeroes are prohibited subject to the following: there must be at least one digit to the right and to the left of the decimal point which may be a zero.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You already discarded my workaround: using a character or string type field and fill it to your liking prior to serialisation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Nov 2010 10:50:28 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2010-11-30T10:50:28Z</dc:date>
    <item>
      <title>Simple transformation file dropping trailing zero.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-file-dropping-trailing-zero/m-p/7520948#M1560483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts.&lt;/P&gt;&lt;P&gt;I am having a problem with my transformation file, and I was hoping someone could help me.&lt;/P&gt;&lt;P&gt;I have created a simple transformation file, with a variable using the type of "DMBTR" which Does have 2 decimal points.&lt;/P&gt;&lt;P&gt;IF I have data - the two decimal points print.&lt;/P&gt;&lt;P&gt;EG if the amount is 100.57.. I get the 100.57 to print which is what I need and expect.&lt;/P&gt;&lt;P&gt;BUT.&lt;/P&gt;&lt;P&gt;IF the amount is 100.50 I am getting 100.5 Is is dropping the final zero amount, and therefore is failing in the validation.&lt;/P&gt;&lt;P&gt;HOW can I FORCE the two decimal points to print?&lt;/P&gt;&lt;P&gt;I have even tried it where I declare it as a variable of type "I" with 2 decimal points, and it still does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not figure out how to use the Number format option with a Value-ref print line.&lt;/P&gt;&lt;P&gt;If someone could help me with that.. I could try that to see if it worked.&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: of the way the data is declared:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tt:type name="GRTOT14" type="I" length="13" decimals="2"/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tt:type name="GRTOT16" type="ddic:DMBTR"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tt:type name="GRTOT17" type="ddic:DMBTR"/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to change this to a string. and that will work. I DO get the 2nd decimal place shown even if it is a ZERO., but it fails on my validation of the file as this HAS TO BE Declared as a number with 2 decimal places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLEASE HELP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 22:31:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-file-dropping-trailing-zero/m-p/7520948#M1560483</guid>
      <dc:creator>donna_verbonac2</dc:creator>
      <dc:date>2010-11-29T22:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Simple transformation file dropping trailing zero.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-file-dropping-trailing-zero/m-p/7520949#M1560484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I understand about XML (could be more), the canonical representation of decimal values does not allow a fixed number of decimal places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/52/491a40251e2402e10000000a1550b0/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/52/491a40251e2402e10000000a1550b0/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from there, this XML documentation is referenced:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.w3.org/TR/xmlschema-2/#decimal" target="test_blank"&gt;http://www.w3.org/TR/xmlschema-2/#decimal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;important bit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Leading and trailing zeroes are prohibited subject to the following: there must be at least one digit to the right and to the left of the decimal point which may be a zero.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You already discarded my workaround: using a character or string type field and fill it to your liking prior to serialisation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 10:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-file-dropping-trailing-zero/m-p/7520949#M1560484</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-11-30T10:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Simple transformation file dropping trailing zero.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-file-dropping-trailing-zero/m-p/7520950#M1560485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there any way you can take a simple transformation file and create an XSLT with it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 16:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-file-dropping-trailing-zero/m-p/7520950#M1560485</guid>
      <dc:creator>donna_verbonac2</dc:creator>
      <dc:date>2011-01-06T16:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Simple transformation file dropping trailing zero.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-file-dropping-trailing-zero/m-p/7520951#M1560486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Donna,&lt;/P&gt;&lt;P&gt;you can simple move your decimal value to a char variable and replace the things you want to replace.&lt;/P&gt;&lt;P&gt;After manipulation your have to remove the blanks. That worked form me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;var_chr = var_integer.&lt;/P&gt;
&lt;P&gt;CONDENSE var_char NO-GAPS.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 09:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-file-dropping-trailing-zero/m-p/7520951#M1560486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-25T09:19:43Z</dc:date>
    </item>
  </channel>
</rss>

