<?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: When using BAPI_ACC_DOCUMENT_POST- How to transfer only amounts in document currency in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-bapi-acc-document-post-how-to-transfer-only-amounts-in-document/m-p/12642485#M2014364</link>
    <description>&lt;P&gt;You missed somehow the screenshots.&lt;/P&gt;</description>
    <pubDate>Thu, 19 May 2022 13:44:49 GMT</pubDate>
    <dc:creator>Dominik_Tylczynski</dc:creator>
    <dc:date>2022-05-19T13:44:49Z</dc:date>
    <item>
      <title>When using BAPI_ACC_DOCUMENT_POST- How to transfer only amounts in document currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-bapi-acc-document-post-how-to-transfer-only-amounts-in-document/m-p/12642484#M2014363</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;
  &lt;P&gt;We upload documents from Excel file with BAPI_ACC_DOCUMENT_POST.&lt;/P&gt;
  &lt;P&gt;When we post as a parked document then it is ok. But when it is not a parked document then there is a dump.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2051463-capture1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;What happens is In include LGLT0F64:&lt;/P&gt;
  &lt;P&gt;1. In BALANCE_TAB table it searches amount&amp;lt;&amp;gt; 0 (line 149)&lt;/P&gt;
  &lt;P&gt;2. If found then sy-subrc gets the value 1. (line 153)&lt;/P&gt;
  &lt;P&gt;3. It calls INTERNAL_ERROR routine (line 157)&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2051464-capture3.png" /&gt;&lt;/P&gt;
  &lt;P&gt;1. In INTERNAL_ERROR routine it checks if sy-subrc&amp;lt;&amp;gt;0 (line 17)&lt;/P&gt;
  &lt;P&gt;2. Previously in LGLT0F64 sy-subrc was set to 1 therefore it is considered as error. And comes to line 38 which causes the dump.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2051465-capture4.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Table BALANCE_TAB has the sum of the amounts in different currency types:&lt;/P&gt;
  &lt;P&gt;1. In the document currency (00)&lt;/P&gt;
  &lt;P&gt;2. In the company currency (10)&lt;/P&gt;
  &lt;P&gt;3. In the group currency (30)&lt;/P&gt;
  &lt;P&gt;The problem is in group currency which was translated from HUF to USD.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2051467-capture5.png" /&gt;&lt;/P&gt;
  &lt;P&gt;The question is:&lt;/P&gt;
  &lt;P&gt;How can I "tell" the program to ignore small difference in CURTP &amp;lt;&amp;gt;00. Or to "tell" the program to ignore the amounts in CURTP &amp;lt;&amp;gt;00 and to calculate them again.&lt;/P&gt;
  &lt;P&gt;The last option exists in FBV2 (change parked document) (in the document header) - you can flag the indicator of "Doc.currency" which means "Only transfer amnts in document curr"&lt;/P&gt;
  &lt;P&gt;Thankyou in advance&lt;/P&gt;
  &lt;P&gt;Hagit&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 11:30:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-bapi-acc-document-post-how-to-transfer-only-amounts-in-document/m-p/12642484#M2014363</guid>
      <dc:creator>hagit</dc:creator>
      <dc:date>2022-05-19T11:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: When using BAPI_ACC_DOCUMENT_POST- How to transfer only amounts in document currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-bapi-acc-document-post-how-to-transfer-only-amounts-in-document/m-p/12642485#M2014364</link>
      <description>&lt;P&gt;You missed somehow the screenshots.&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 13:44:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-bapi-acc-document-post-how-to-transfer-only-amounts-in-document/m-p/12642485#M2014364</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2022-05-19T13:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: When using BAPI_ACC_DOCUMENT_POST- How to transfer only amounts in document currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-bapi-acc-document-post-how-to-transfer-only-amounts-in-document/m-p/12642486#M2014365</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;3a9e4ce873a94034b33dc62b0ce600ee&lt;/SPAN&gt;  What did I miss?&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 16:36:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-bapi-acc-document-post-how-to-transfer-only-amounts-in-document/m-p/12642486#M2014365</guid>
      <dc:creator>hagit</dc:creator>
      <dc:date>2022-05-19T16:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: When using BAPI_ACC_DOCUMENT_POST- How to transfer only amounts in document currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-bapi-acc-document-post-how-to-transfer-only-amounts-in-document/m-p/12642487#M2014366</link>
      <description>&lt;P&gt;Screenshots don’t show in your question&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 17:00:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-bapi-acc-document-post-how-to-transfer-only-amounts-in-document/m-p/12642487#M2014366</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2022-05-19T17:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: When using BAPI_ACC_DOCUMENT_POST- How to transfer only amounts in document currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-bapi-acc-document-post-how-to-transfer-only-amounts-in-document/m-p/12642488#M2014367</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;3a9e4ce873a94034b33dc62b0ce600ee&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;What is the problem with
the screenshots?&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 17:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-bapi-acc-document-post-how-to-transfer-only-amounts-in-document/m-p/12642488#M2014367</guid>
      <dc:creator>hagit</dc:creator>
      <dc:date>2022-05-19T17:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: When using BAPI_ACC_DOCUMENT_POST- How to transfer only amounts in document currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-bapi-acc-document-post-how-to-transfer-only-amounts-in-document/m-p/12642489#M2014368</link>
      <description>&lt;P&gt;That problem is that they are not visible. At least that's what I can see:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2053506-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 06:21:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-bapi-acc-document-post-how-to-transfer-only-amounts-in-document/m-p/12642489#M2014368</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2022-05-20T06:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: When using BAPI_ACC_DOCUMENT_POST- How to transfer only amounts in document currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-bapi-acc-document-post-how-to-transfer-only-amounts-in-document/m-p/12642490#M2014369</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here they are:&lt;/P&gt;&lt;P&gt;1-&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2051560-capture1.png" /&gt;&lt;/P&gt;&lt;P&gt;3-&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2051562-capture3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 05:28:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-bapi-acc-document-post-how-to-transfer-only-amounts-in-document/m-p/12642490#M2014369</guid>
      <dc:creator>hagit</dc:creator>
      <dc:date>2022-05-22T05:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: When using BAPI_ACC_DOCUMENT_POST- How to transfer only amounts in document currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-bapi-acc-document-post-how-to-transfer-only-amounts-in-document/m-p/12642491#M2014370</link>
      <description>&lt;P&gt;4-&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2051566-capture4.png" /&gt;&lt;/P&gt;&lt;P&gt;5-&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2051567-capture5.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 05:33:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-bapi-acc-document-post-how-to-transfer-only-amounts-in-document/m-p/12642491#M2014370</guid>
      <dc:creator>hagit</dc:creator>
      <dc:date>2022-05-22T05:33:40Z</dc:date>
    </item>
  </channel>
</rss>

