<?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 Amount Problem When Using BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-problem-when-using-bapi-acc-document-post/m-p/1412335#M198516</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;I need to post accounting documents via BAPI_ACC_DOCUMENT_POST using an input file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the input file, I have the document currency, document amount, local currency and local amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I post the 2 currencies with their amounts for each document line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that I can use the CURRENCYAMOUNT-CURR_TYPE to state '00' or '10'. However, i'm not sure how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say in my file, my company code is AU so the local currency is AUD. The document currency is USD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. in my code:&lt;/P&gt;&lt;P&gt;  currencyamount-itemno_acc   = '001'.&lt;/P&gt;&lt;P&gt;  currencyamount-curr_type    = '00'.&lt;/P&gt;&lt;P&gt;  currencyamount-currency     = 'USD'.&lt;/P&gt;&lt;P&gt;  currencyamount-amt_doccur   = 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND CURRENCYAMOUNT.&lt;/P&gt;&lt;P&gt;  CLEAR  CURRENCYAMOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, BAPI will calculate the local amount based on the exchange rate in the SAP table.&lt;/P&gt;&lt;P&gt;However, in my case, I want to use the local currency and local amount in my input file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should the code be:&lt;/P&gt;&lt;P&gt;  currencyamount-itemno_acc   = '001'.&lt;/P&gt;&lt;P&gt;  currencyamount-curr_type    = '00'.&lt;/P&gt;&lt;P&gt;  currencyamount-currency     = 'USD'.&lt;/P&gt;&lt;P&gt;  currencyamount-amt_doccur   = 1000.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;assuming USD1 = AUD1.5&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  currencyamount-EXCH_RATE    = '1.5'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND CURRENCYAMOUNT.&lt;/P&gt;&lt;P&gt;  CLEAR  CURRENCYAMOUNT.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chelsea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jul 2006 02:44:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-06T02:44:42Z</dc:date>
    <item>
      <title>Currency Amount Problem When Using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-problem-when-using-bapi-acc-document-post/m-p/1412335#M198516</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;I need to post accounting documents via BAPI_ACC_DOCUMENT_POST using an input file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the input file, I have the document currency, document amount, local currency and local amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I post the 2 currencies with their amounts for each document line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that I can use the CURRENCYAMOUNT-CURR_TYPE to state '00' or '10'. However, i'm not sure how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say in my file, my company code is AU so the local currency is AUD. The document currency is USD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. in my code:&lt;/P&gt;&lt;P&gt;  currencyamount-itemno_acc   = '001'.&lt;/P&gt;&lt;P&gt;  currencyamount-curr_type    = '00'.&lt;/P&gt;&lt;P&gt;  currencyamount-currency     = 'USD'.&lt;/P&gt;&lt;P&gt;  currencyamount-amt_doccur   = 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND CURRENCYAMOUNT.&lt;/P&gt;&lt;P&gt;  CLEAR  CURRENCYAMOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, BAPI will calculate the local amount based on the exchange rate in the SAP table.&lt;/P&gt;&lt;P&gt;However, in my case, I want to use the local currency and local amount in my input file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should the code be:&lt;/P&gt;&lt;P&gt;  currencyamount-itemno_acc   = '001'.&lt;/P&gt;&lt;P&gt;  currencyamount-curr_type    = '00'.&lt;/P&gt;&lt;P&gt;  currencyamount-currency     = 'USD'.&lt;/P&gt;&lt;P&gt;  currencyamount-amt_doccur   = 1000.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;assuming USD1 = AUD1.5&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  currencyamount-EXCH_RATE    = '1.5'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND CURRENCYAMOUNT.&lt;/P&gt;&lt;P&gt;  CLEAR  CURRENCYAMOUNT.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chelsea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 02:44:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-problem-when-using-bapi-acc-document-post/m-p/1412335#M198516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T02:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Amount Problem When Using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-problem-when-using-bapi-acc-document-post/m-p/1412336#M198517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chelsea,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I am not sure about your coding. If you are intrested you can try AC_DOCUMENT_DIRECT_INPUT FM it is having many many fields and also having local and global currency fields where you can pass the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Amit Gupta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 04:12:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-problem-when-using-bapi-acc-document-post/m-p/1412336#M198517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T04:12:01Z</dc:date>
    </item>
  </channel>
</rss>

