<?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: currency/quantity fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-quantity-fields/m-p/1730522#M318117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reference field is used for the output, the output/input format of a currency field depends on the value of its reference field. (What character is to be used for thousands separator and decimals separator etc) would be decided for that amount field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Dec 2006 09:54:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-01T09:54:40Z</dc:date>
    <item>
      <title>currency/quantity fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-quantity-fields/m-p/1730521#M318116</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;      Why do we need to mention currency/quantity fields as reference table and reference field for currency and quantity fields..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 09:50:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-quantity-fields/m-p/1730521#M318116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T09:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: currency/quantity fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-quantity-fields/m-p/1730522#M318117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reference field is used for the output, the output/input format of a currency field depends on the value of its reference field. (What character is to be used for thousands separator and decimals separator etc) would be decided for that amount field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 09:54:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-quantity-fields/m-p/1730522#M318117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T09:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: currency/quantity fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-quantity-fields/m-p/1730523#M318118</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;The reference field is used for the output, the output/input format of a currency field depends on the value of its reference field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if you create a screen using the field KONV-KBETR :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the reference field is RV61A-AWEI1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you set RV61A-AWEI1 = 3&lt;/P&gt;&lt;P&gt;the value in KONV-KBETR is beeing shown with 3 decimals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you could see 3,000 but this value is automatically stored as 30.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you set RV61A-AWEI1 = 2&lt;/P&gt;&lt;P&gt;the value in KONV-KBETR is beeing shown with 2 decimals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All this convertions are automatically made in according to the value setted in reference field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see this using the statament WRITE with options CURRENCY, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS P_KBETR LIKE KONV-KBETR.

WRITE: P_KBETR CURRENCY '3'.
WRITE: / P_KBETR CURRENCY '2'.
WRITE: / P_KBETR CURRENCY '1'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;pls mark points if helpful&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 09:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-quantity-fields/m-p/1730523#M318118</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-12-01T09:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: currency/quantity fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-quantity-fields/m-p/1730524#M318119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kanath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currency and Quantity data types are referenced datatypes and they need reference table and reference field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currency type field  --&amp;gt;  Currency key  type field as reference field&lt;/P&gt;&lt;P&gt;Quantity type field   --&amp;gt;  Unit  type field as reference field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example &lt;/P&gt;&lt;P&gt;if have amount field value equals to '10', but you need have whether rupees or dollars indication, the reference field does same.&lt;/P&gt;&lt;P&gt;    if key is USD  --&amp;gt; 10.00 Dollars&lt;/P&gt;&lt;P&gt;                JPY   --&amp;gt; 10  Yens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have quantity field value as '10', we need the units,the reference field does same.&lt;/P&gt;&lt;P&gt;   if key is KG --&amp;gt; 10 Kgs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screen fields values will be displayed based on referenced fields. If you are doing module pool program very careful handle these two fields. we need to do conversions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhupal Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 10:11:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-quantity-fields/m-p/1730524#M318119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T10:11:34Z</dc:date>
    </item>
  </channel>
</rss>

