<?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 Currency in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency/m-p/3009069#M711039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is currency factoring technique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Nov 2007 13:55:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-10T13:55:54Z</dc:date>
    <item>
      <title>Currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency/m-p/3009069#M711039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is currency factoring technique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Nov 2007 13:55:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency/m-p/3009069#M711039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-10T13:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency/m-p/3009070#M711040</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 amount value(defined as currency) will be dependent on currency key. that's why currency field should have a reference field of type currency key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the currency key value the no of decimals values will be determined. Please refer TCURC table to get infomation about currency key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do currency translations, we are using many function modules.Some of the important function modules are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_CURRENCY_CONV_TO_EXTERNAL : Conversion of Currency Amounts into External Data Format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_CURRENCY_CONV_TO_INTERNAL :Conversion of Currency Amounts into Internal Data Format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CURRENCY FACTORING TECHNIQUES&lt;/P&gt;&lt;P&gt;Check this one&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/eb/1373a343c411d1896f0000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/eb/1373a343c411d1896f0000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/04/c3dc097a35d111950d0060b03c6b76/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/04/c3dc097a35d111950d0060b03c6b76/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/eb/13736a43c411d1896f0000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/eb/13736a43c411d1896f0000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/12/08594d470311d1894a0000e8323352/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/12/08594d470311d1894a0000e8323352/frameset.htm&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>Sat, 10 Nov 2007 15:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency/m-p/3009070#M711040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-10T15:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency/m-p/3009071#M711041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Currency Conversion:&lt;/P&gt;&lt;P&gt;______________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the function module&lt;/P&gt;&lt;P&gt;CONVERT_TO_LOCAL_CURRENCY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Writing currency amount to string without thousands seperator &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is usefull e.g. i connection with batch input/call transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;GI_OUTPUT-WRBTR: Field type Currency with amount&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;L_AMOUNT_STRING: Field type c with amount&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM AMOUNT_TO_STRING USING GI_OUTPUT-WRBTR&lt;/P&gt;&lt;P&gt;CHANGING L_AMOUNT_STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM AMOUNT_TO_STRING USING P_AMOUNT&lt;/P&gt;&lt;P&gt;CHANGING P_AMOUNT_STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA L_SEP(1) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM GET_THOUSAND_SEPERATOR USING L_SEP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE P_AMOUNT TO P_AMOUNT_STRING.&lt;/P&gt;&lt;P&gt;REPLACE L_SEP WITH ' ' INTO P_AMOUNT_STRING.&lt;/P&gt;&lt;P&gt;CONDENSE P_AMOUNT_STRING NO-GAPS.&lt;/P&gt;&lt;P&gt;WRITE P_AMOUNT_STRING TO P_AMOUNT_STRING RIGHT-JUSTIFIED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_THOUSAND_SEPERATOR USING P_SEP.&lt;/P&gt;&lt;P&gt;DATA: L_AMOUNT LIKE BSEG-DMBTR,&lt;/P&gt;&lt;P&gt;L_AMOUNT_STRING(15) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Find 1000 seperator. If decimal seperator = . then&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;1000 seperator = , else 1000 seperator = .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L_AMOUNT = '1.00'.&lt;/P&gt;&lt;P&gt;WRITE L_AMOUNT TO L_AMOUNT_STRING.&lt;/P&gt;&lt;P&gt;IF L_AMOUNT_STRING CS ','.&lt;/P&gt;&lt;P&gt;P_SEP = '.'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;P_SEP = ','.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Convert amount to/from string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HRCM_AMOUNT_TO_STRING_CONVERT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;betrg = 3000&lt;/P&gt;&lt;P&gt;WAERS = 'DKK'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NEW_DECIMAL_SEPARATOR =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NEW_THOUSANDS_SEPARATOR =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;STRING = slam&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HRCM_STRING_TO_AMOUNT_CONVERT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;string = slam2&lt;/P&gt;&lt;P&gt;DECIMAL_SEPARATOR = '.'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;THOUSANDS_SEPARATOR =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WAERS = 'HUF'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;BETRG = b2&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CONVERT_ERROR = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OTHERS = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Language depending formatting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To format a currency amount with decimals according to the currency use&lt;/P&gt;&lt;P&gt;WRITE and the CURRENCY option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currency keys an d numbers of decimals are defined in table TCURX Decimal&lt;/P&gt;&lt;P&gt;Places in Currencies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.G.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formatting an amount in Kuwatian Dinars:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dmbtr = 123456.&lt;/P&gt;&lt;P&gt;Write dmbtr currency 'KUD'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;123.456&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write dmbtr currency 'USD'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1234.56&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the formatting does not depend on the number of decimals in the&lt;/P&gt;&lt;P&gt;number in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dmbtr = '12.3456'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write dmbtr currency 'USD'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1234.56&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To format the decimal and thousand sepearators according to the settings for&lt;/P&gt;&lt;P&gt;a specific country,&lt;/P&gt;&lt;P&gt;use the statement SET COUNTRY &amp;lt;country key&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Settings for countries are defined in table T005 Countries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The country key used in the statement is field LAND1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&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;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Nov 2007 18:00:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency/m-p/3009071#M711041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-10T18:00:23Z</dc:date>
    </item>
  </channel>
</rss>

