<?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: Inconsistent currency information in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inconsistent-currency-information/m-p/12184233#M1980121</link>
    <description>&lt;P&gt;Hi Marek,&lt;/P&gt;&lt;P&gt;This ITEMNO_ACC '0000000002' is for account tax.&lt;/P&gt;&lt;P&gt;My question is if i don't pass CURR_TYPE = 10 and CURRENCY 'PHP' for this particular record,&lt;/P&gt;&lt;P&gt;why dont it calculate automatically the local currency.&lt;/P&gt;&lt;P&gt;If i pass local currency for any record then is it mandatory to pass local currency for all recirds in currency table.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jun 2020 06:05:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2020-06-23T06:05:33Z</dc:date>
    <item>
      <title>Inconsistent currency information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inconsistent-currency-information/m-p/12184227#M1980115</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
  &lt;P&gt;I am getting error " Inconsistent currency information " in BAPI BAPI_ACC_DOCUMENT_POST.&lt;/P&gt;
  &lt;P&gt;I got the requirement to pass local currency as well to the BAPI but i am getting above error in existing code after adding my code.&lt;/P&gt;
  &lt;P&gt;i am getting error for second record ( as per below Screenshot ), USD is my header text currency if i change it to local currency in debug mode i.r PHP then it is working fine.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1818575-currency.png" /&gt;&lt;/P&gt;
  &lt;P&gt;.Can anyone help me with this.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 11:22:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inconsistent-currency-information/m-p/12184227#M1980115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-06-22T11:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent currency information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inconsistent-currency-information/m-p/12184228#M1980116</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;101257251592&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;what you must archive is thatthe subtotal per Currency Type (CURR_TYPE) in all of the lines of  your internal table GT_CURRENCY must be 0. This makes sure that debit = credit in document and accounting document is correct.&lt;/P&gt;&lt;P&gt;Please make sure that:&lt;/P&gt;&lt;P&gt;1) You deliver currency type in each line. Currency type for document currency is 00.&lt;/P&gt;&lt;P&gt;2) Each ITEMNO_ACC exists in table twice - once with currency type 00 (document currency) and once with currency type 10 (local currency)&lt;/P&gt;&lt;P&gt;So your entry for currency type should be (example for line 1):&lt;/P&gt;&lt;P&gt;first line: &lt;/P&gt;&lt;P&gt;ITEMNO_ACC = 0000000001&lt;/P&gt;&lt;P&gt;CURR_TYPE = 00&lt;/P&gt;&lt;P&gt;CURRENCY = USD&lt;/P&gt;&lt;P&gt;AMT_DOCCUR = 555577.8480-&lt;/P&gt;&lt;P&gt;second line: &lt;/P&gt;&lt;P&gt;ITEMNO_ACC = 0000000001&lt;/P&gt;&lt;P&gt;CURR_TYPE = 10&lt;/P&gt;&lt;P&gt;CURRENCY = PHP&lt;/P&gt;&lt;P&gt;AMT_DOCCUR = amount in PHP also with minus like 11555577.8480-&lt;/P&gt;&lt;P&gt;In your example you have 3 times line 1 referenced - that is incorrect - it should be only 2 times and line 2 should be existing also 2 times and not once. &lt;/P&gt;&lt;P&gt;Please also do not mix the currencies - once you have CURR_TYPE = 10 with value PHP and once with USD.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marek&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 12:08:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inconsistent-currency-information/m-p/12184228#M1980116</guid>
      <dc:creator>MarekTurczynski</dc:creator>
      <dc:date>2020-06-22T12:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent currency information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inconsistent-currency-information/m-p/12184229#M1980117</link>
      <description>&lt;P&gt;Thanks Marek.&lt;/P&gt;&lt;P&gt;But there's code written in program were FM "CALCULATE_TAX_FROM_GROSSAMOUNT" has been used to calculate GrossAmount .&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'CALCULATE_TAX_FROM_GROSSAMOUNT'&lt;BR /&gt; EXPORTING&lt;BR /&gt; i_bukrs = lwa_accountgl-comp_code&lt;BR /&gt; i_mwskz = lwa_accountgl-tax_code&lt;BR /&gt; i_txjcd = lwa_accountgl-taxjurcode&lt;BR /&gt; i_waers = gwa_icjv_header-waers&lt;BR /&gt; i_wrbtr = lv_wrbtr&lt;BR /&gt; i_taxps = lwa_accountgl-itemno_tax&lt;BR /&gt; IMPORTING&lt;BR /&gt; e_fwste = lv_fwste&lt;BR /&gt; TABLES&lt;BR /&gt; t_mwdat = lt_mwdat&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;BR /&gt; IF lv_taxes_item IS NOT INITIAL.&lt;BR /&gt; lwa_accountgl-itemno_tax = lwa_accountgl-itemno_acc.&lt;BR /&gt; ENDIF.&lt;BR /&gt;&lt;BR /&gt; IF lv_fwste IS NOT INITIAL.&lt;BR /&gt; lwa_currency-amt_doccur = lwa_currency-amt_doccur - lv_fwste.&lt;BR /&gt; ENDIF.&lt;BR /&gt;&lt;BR /&gt; LOOP AT lt_mwdat INTO lwa_mwdat.&lt;/P&gt;&lt;P&gt;lv_count = lv_count + 1.&lt;BR /&gt;&lt;STRONG&gt;lwa_currency_tax-itemno_acc = lv_count.&lt;BR /&gt; lwa_currency_tax-currency = gwa_icjv_header-waers.&lt;BR /&gt; lwa_currency_tax-amt_doccur = lwa_mwdat-wmwst.&lt;BR /&gt; lwa_currency_tax-amt_base = lwa_currency-amt_doccur.&lt;BR /&gt; APPEND lwa_currency_tax TO gt_currency.&lt;/STRONG&gt;&lt;BR /&gt; CLEAR lwa_currency_tax.&lt;BR /&gt; ENDLOOP.&lt;BR /&gt; ENDIF.&lt;/P&gt;&lt;P&gt;So it is appending the amount three times &lt;/P&gt;&lt;P&gt;1. Local currency&lt;/P&gt;&lt;P&gt;2. Header currency&lt;/P&gt;&lt;P&gt;3. For gross amount with header currency&lt;/P&gt;&lt;P&gt; before adding my local currency code it was working fine, below is the Screenshot of table currencyamount before adding my code :&lt;/P&gt;&lt;P&gt; &lt;IMG alt="" style="font-size: 15px; color: rgb(84, 84, 84);" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 12:34:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inconsistent-currency-information/m-p/12184229#M1980117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-06-22T12:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent currency information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inconsistent-currency-information/m-p/12184230#M1980118</link>
      <description>&lt;P&gt;Sorry but FM CALCULATE_TAX_FROM_GROSSAMOUNT calculates the tax 
amounts only but you need to have the values in CURR_TYPE = 10 for each 
line of the accounting document and not for tax lines as well.&lt;/P&gt;&lt;P&gt;PS. There is no screenshot in your second answer.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 12:47:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inconsistent-currency-information/m-p/12184230#M1980118</guid>
      <dc:creator>MarekTurczynski</dc:creator>
      <dc:date>2020-06-22T12:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent currency information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inconsistent-currency-information/m-p/12184231#M1980119</link>
      <description>&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1818577-currency.png" /&gt;&lt;/P&gt;&lt;P&gt;Above screenshot of currency table before adding my local currency table, it was working fine.&lt;/P&gt;&lt;P&gt;The entry of ITEMNO_ACC = '0000000002' is of tax amount, which was working before adding my code.&lt;/P&gt;&lt;P&gt;but after addition of local currency logic it is not working it is giving error " Inconsistent currency information ". &lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 13:03:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inconsistent-currency-information/m-p/12184231#M1980119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-06-22T13:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent currency information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inconsistent-currency-information/m-p/12184232#M1980120</link>
      <description>&lt;P&gt;That is correct and see that there is only one currency, total of AM_DOCCUR is 0 for that one currency.&lt;/P&gt;&lt;P&gt;What you need to make sure is that each line which you see in the working version has a duplicated line with CURR_TYPE = '10' and CURRENCY = 'PHP' and amounts in fields AMT_DOCCUR and AMT_BASE are passed in PHP.&lt;/P&gt;&lt;P&gt;Maybe you can share your code?&lt;/P&gt;&lt;P&gt;Marek&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 13:19:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inconsistent-currency-information/m-p/12184232#M1980120</guid>
      <dc:creator>MarekTurczynski</dc:creator>
      <dc:date>2020-06-22T13:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent currency information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inconsistent-currency-information/m-p/12184233#M1980121</link>
      <description>&lt;P&gt;Hi Marek,&lt;/P&gt;&lt;P&gt;This ITEMNO_ACC '0000000002' is for account tax.&lt;/P&gt;&lt;P&gt;My question is if i don't pass CURR_TYPE = 10 and CURRENCY 'PHP' for this particular record,&lt;/P&gt;&lt;P&gt;why dont it calculate automatically the local currency.&lt;/P&gt;&lt;P&gt;If i pass local currency for any record then is it mandatory to pass local currency for all recirds in currency table.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 06:05:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inconsistent-currency-information/m-p/12184233#M1980121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-06-23T06:05:33Z</dc:date>
    </item>
  </channel>
</rss>

