<?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: rajesh reddy in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rajesh-reddy/m-p/1754638#M327072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope I found the answer for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currency-specific Output Formats&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To format the output of a number field according to a specific currency, use the CURRENCY option of the WRITE statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE &amp;lt;f&amp;gt; CURRENCY &amp;lt;c&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement determines the number of decimal places in the output according to the currency &amp;lt;c&amp;gt;. If the contents of &amp;lt;c&amp;gt; exist in table TCURX as currency key CURRKEY, the system sets the number of decimal places according to the entry CURRDEC in TCURX. Otherwise, it uses the default setting of two decimal places. This means that table TCURX must contain only exceptions where the number of decimal places is unequal to 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output format for currencies does not depend on the decimal places of a number that may exist in the program. The system uses only the sequence of digits. This sequence of digits thus represents an amount specified in the smallest unit of the currency in use, for example Cents for US Dollar (USD) or Francs for Belgian Francs (BEF). For processing currency amounts in ABAP programs, SAP therefore recommends that you use data type P without decimal places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_list_write_currency LINE-SIZE 40.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: num1 TYPE p  DECIMALS 4 VALUE '12.3456',&lt;/P&gt;&lt;P&gt;      num2 TYPE p  DECIMALS 0 VALUE '123456'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET COUNTRY 'US'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: 'USD', num1 CURRENCY 'USD', num2 CURRENCY 'USD',&lt;/P&gt;&lt;P&gt;     / 'BEF', num1 CURRENCY 'BEF', num2 CURRENCY 'BEF',&lt;/P&gt;&lt;P&gt;     / 'KUD', num1 CURRENCY 'KUD', num2 CURRENCY 'KUD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This program defines two packed numbers NUM1 and NUM2, containing the same sequence of digits, but different numbers of decimal places. These numbers appear in the output in several currencies:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This graphic is explained in the accompanying text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each currency, the output formats of NUM1 and NUM2 are the same, since they refer to the sequence of digits only. The currency US Dollar (USD) appears in the default setting of two decimal places, since the smallest unit is one Cent and a hundredth of a Dollar. For Belgian Francs (BEF), CURRDEC in TCURX is set to 0, since the Belgian Franc has no smaller units. Dinars from Kuwait (KUD) have units of a thousandth and therefore three decimal places (CURRDEC is 3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&amp;lt;a href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba1ef35c111d1829f0000e829fbfe/content.htm"&amp;gt;The WRITE statement&amp;lt;/a&amp;gt;]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Dec 2006 17:23:17 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2006-12-03T17:23:17Z</dc:date>
    <item>
      <title>rajesh reddy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rajesh-reddy/m-p/1754635#M327069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we have a require ment that is in reports when we chose indian currency the currency will be displayed in 10,000.00 ,same as when we choseing US currency it should be displayed in US currency ,When   we chossing UAE it will be displayed in UAE Currency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz explain the logic and  do u have any report regarding this plz send me .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Dec 2006 08:30:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rajesh-reddy/m-p/1754635#M327069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-03T08:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: rajesh reddy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rajesh-reddy/m-p/1754636#M327070</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;Do you mean, you want to convert one currency to another?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Dec 2006 12:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rajesh-reddy/m-p/1754636#M327070</guid>
      <dc:creator>graghavendra_sharma</dc:creator>
      <dc:date>2006-12-03T12:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: rajesh reddy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rajesh-reddy/m-p/1754637#M327071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please make sure to give a good subject line when posting a thread.  Please don't use your name.  Try to give a short description of your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Dec 2006 14:28:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rajesh-reddy/m-p/1754637#M327071</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-12-03T14:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: rajesh reddy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rajesh-reddy/m-p/1754638#M327072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope I found the answer for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currency-specific Output Formats&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To format the output of a number field according to a specific currency, use the CURRENCY option of the WRITE statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE &amp;lt;f&amp;gt; CURRENCY &amp;lt;c&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement determines the number of decimal places in the output according to the currency &amp;lt;c&amp;gt;. If the contents of &amp;lt;c&amp;gt; exist in table TCURX as currency key CURRKEY, the system sets the number of decimal places according to the entry CURRDEC in TCURX. Otherwise, it uses the default setting of two decimal places. This means that table TCURX must contain only exceptions where the number of decimal places is unequal to 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output format for currencies does not depend on the decimal places of a number that may exist in the program. The system uses only the sequence of digits. This sequence of digits thus represents an amount specified in the smallest unit of the currency in use, for example Cents for US Dollar (USD) or Francs for Belgian Francs (BEF). For processing currency amounts in ABAP programs, SAP therefore recommends that you use data type P without decimal places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_list_write_currency LINE-SIZE 40.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: num1 TYPE p  DECIMALS 4 VALUE '12.3456',&lt;/P&gt;&lt;P&gt;      num2 TYPE p  DECIMALS 0 VALUE '123456'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET COUNTRY 'US'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: 'USD', num1 CURRENCY 'USD', num2 CURRENCY 'USD',&lt;/P&gt;&lt;P&gt;     / 'BEF', num1 CURRENCY 'BEF', num2 CURRENCY 'BEF',&lt;/P&gt;&lt;P&gt;     / 'KUD', num1 CURRENCY 'KUD', num2 CURRENCY 'KUD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This program defines two packed numbers NUM1 and NUM2, containing the same sequence of digits, but different numbers of decimal places. These numbers appear in the output in several currencies:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This graphic is explained in the accompanying text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each currency, the output formats of NUM1 and NUM2 are the same, since they refer to the sequence of digits only. The currency US Dollar (USD) appears in the default setting of two decimal places, since the smallest unit is one Cent and a hundredth of a Dollar. For Belgian Francs (BEF), CURRDEC in TCURX is set to 0, since the Belgian Franc has no smaller units. Dinars from Kuwait (KUD) have units of a thousandth and therefore three decimal places (CURRDEC is 3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&amp;lt;a href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba1ef35c111d1829f0000e829fbfe/content.htm"&amp;gt;The WRITE statement&amp;lt;/a&amp;gt;]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Dec 2006 17:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rajesh-reddy/m-p/1754638#M327072</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-12-03T17:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: rajesh reddy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rajesh-reddy/m-p/1754639#M327073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 10:16:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rajesh-reddy/m-p/1754639#M327073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-02T10:16:20Z</dc:date>
    </item>
  </channel>
</rss>

