<?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: write statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2656164#M612499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA v_curr TYPE p LENGTH 13 DECIMALS 0 VALUE '10,000'. &lt;/P&gt;&lt;P&gt;WRITE v_curr NO-GROUPING DECIMALS 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2007 22:43:00 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2007-08-13T22:43:00Z</dc:date>
    <item>
      <title>write statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2656159#M612494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a write statement in  a program .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE W_OVERALL_CUR TO T_0300-OVERALL CURRENCY T_0300-PWHIE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currency key has 0 decimal places, &lt;/P&gt;&lt;P&gt;w_overall_cur is 100.00&lt;/P&gt;&lt;P&gt;t_0300-overall is initially 100 and changing to 10,000 . Its like the original value is being multiplied by 100.&lt;/P&gt;&lt;P&gt;how do i correct this error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 21:01:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2656159#M612494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T21:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: write statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2656160#M612495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make sure W_OVERALL_CUR is of type i or p.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 21:06:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2656160#M612495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T21:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: write statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2656161#M612496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of write use PACK stmt. or if you still want to use WRITE  stmt go and check the decimal notation in your User Profile. Set it according to your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 21:08:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2656161#M612496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T21:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: write statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2656162#M612497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how do i use pack statement? w-overall_cur is not of of type C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 21:20:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2656162#M612497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T21:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: write statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2656163#M612498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;clear  T_0300-OVERALL before the write statement and see..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 21:57:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2656163#M612498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T21:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: write statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2656164#M612499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA v_curr TYPE p LENGTH 13 DECIMALS 0 VALUE '10,000'. &lt;/P&gt;&lt;P&gt;WRITE v_curr NO-GROUPING DECIMALS 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 22:43:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2656164#M612499</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-08-13T22:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: write statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2656165#M612500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not an error.. This is the correct behaviour..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check what is the currency being populated at run time in T_0300-PWHIE.. Based on this currency the decimals in the field holding the Amount gets adjusted.. In the database all currencies are stored with 2 decimal places that is why during output you use the extension currency to adjust the decimal places based on the currency of the amount you want to display..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Nitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 03:05:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2656165#M612500</guid>
      <dc:creator>nitesh_jain3</dc:creator>
      <dc:date>2007-08-14T03:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: write statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2656166#M612501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sri ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement will write the contents in the fields based on T_0300-PWHIE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whatever format this particular currency has the value will be made in that format,make sure that you really want to write content based on the currency ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are writing this value in the JPY ) japanese currency ) then as per your line its correct because JPY there are no decimals .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praveen.&lt;/P&gt;&lt;P&gt;HOPE THIS HELPS .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 05:04:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2656166#M612501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T05:04:12Z</dc:date>
    </item>
  </channel>
</rss>

