<?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 BAPI_ACC_DOCUMENT_POST posting duplicate entries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-posting-duplicate-entries/m-p/11189489#M1909421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im using the BAPI_ACC_DOCUMENT_POST for posting a FI document. &lt;BR /&gt;However the issue that im facing is that it will allow duplicate entries to be posted for the same data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we restrict that ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked SCN for the same and the only solution which I could see is using FI_DUPLICATE_INVOICE_CHECK.&lt;/P&gt;&lt;P&gt;But since its an unreleased FM we should ideally not use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other fix apart from this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Faiz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2015 18:45:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-07-13T18:45:06Z</dc:date>
    <item>
      <title>BAPI_ACC_DOCUMENT_POST posting duplicate entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-posting-duplicate-entries/m-p/11189489#M1909421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im using the BAPI_ACC_DOCUMENT_POST for posting a FI document. &lt;BR /&gt;However the issue that im facing is that it will allow duplicate entries to be posted for the same data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we restrict that ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked SCN for the same and the only solution which I could see is using FI_DUPLICATE_INVOICE_CHECK.&lt;/P&gt;&lt;P&gt;But since its an unreleased FM we should ideally not use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other fix apart from this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Faiz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 18:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-posting-duplicate-entries/m-p/11189489#M1909421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-13T18:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST posting duplicate entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-posting-duplicate-entries/m-p/11189490#M1909422</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;Please elaborate for what type of document you are posting through the said BAPI .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create your own logic and fetch the database table based on that. For eg let assume that the reference(XBLNR) field will be unique for all the document ( document types you are posting ) then you can fetch the Table BKPF and check of that Reference (XBLNR) is already given for any other document or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try and make the logic on header Table (BKPF) as it would be easy to fetch .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 07:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-posting-duplicate-entries/m-p/11189490#M1909422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-14T07:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST posting duplicate entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-posting-duplicate-entries/m-p/11189491#M1909423</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 also use BKPF check in field AWKEY to prevent duplicate postings.&lt;/P&gt;&lt;P&gt;But it still generate double finance document in with same AWKEY in sequence running number(75000000001,75000000002).&lt;/P&gt;&lt;P&gt;This happen since we execute more than 10000 transaction in one loop.&lt;/P&gt;&lt;P&gt;It seems problem came from inside &lt;SPAN style="color: #333333; font-size: 12px;"&gt;BAPI_ACC_DOCUMENT_POST.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Is there any duplicate check inside the bapi such as exit or enanchement spot, etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 03:48:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-posting-duplicate-entries/m-p/11189491#M1909423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-05T03:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST posting duplicate entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-posting-duplicate-entries/m-p/11189492#M1909424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't use a WAIT option in the commit, you won't be able to check for duplicates, nor will any SAP standard too. And even if you wait, some performance or buffer problem can prevent correct check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TWO checks required&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use some SQL statement to check between yourdata and current values in database (this one can simulate FI_DUPLICATE_INVOICE_CHECK or some AWTYP/AWKEY logic)&lt;/LI&gt;&lt;LI&gt;Check in your program data (internal tables) to block/remove duplicates in the received data&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 10:58:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-posting-duplicate-entries/m-p/11189492#M1909424</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-02-05T10:58:44Z</dc:date>
    </item>
  </channel>
</rss>

