<?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: BAPI 'BAPI_ACC_DOCUMENT_POST' Gives me Error when adding more than one in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post-gives-me-error-when-adding-more-than-one/m-p/2787463#M650005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Louis, I'm facing the same error message.. how did you solve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;/AD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2007 19:15:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-29T19:15:57Z</dc:date>
    <item>
      <title>BAPI 'BAPI_ACC_DOCUMENT_POST' Gives me Error when adding more than one</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post-gives-me-error-when-adding-more-than-one/m-p/2787461#M650003</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 have created code that has a loop and adds GL Documents in SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I only add one document it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I add more than one document, the first one goes through fine. The second and anything after fail. The ones that fail give the following error &lt;/P&gt;&lt;P&gt;"FI/CO interface: Line item entered several times"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually get this error if you define more than one row with the same row number, in other words they are not unique row n numbers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the first GL Document has row id 1 for the 1st row, row id 2 for the 2nd row.&lt;/P&gt;&lt;P&gt;the second GL Document has row id 1 for the 1st row, row id 2 for the 2nd row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should not conflict with each other as each document gets "commited" before I start with the next document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing I can think of is that after I commit the bapi it is not clearing the BAPI. Does one need to clear the BAPI before adding another GL Document??? How does one clear the BAPI???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a simple example using 'BAPI_ACC_DOCUMENT_POST' where you have a loop and add a GL Document a few times???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any response is appreciated &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Sep 2007 21:16:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post-gives-me-error-when-adding-more-than-one/m-p/2787461#M650003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-15T21:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI 'BAPI_ACC_DOCUMENT_POST' Gives me Error when adding more than one</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post-gives-me-error-when-adding-more-than-one/m-p/2787462#M650004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Sep 2007 06:22:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post-gives-me-error-when-adding-more-than-one/m-p/2787462#M650004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-16T06:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI 'BAPI_ACC_DOCUMENT_POST' Gives me Error when adding more than one</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post-gives-me-error-when-adding-more-than-one/m-p/2787463#M650005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Louis, I'm facing the same error message.. how did you solve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;/AD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 19:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post-gives-me-error-when-adding-more-than-one/m-p/2787463#M650005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T19:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI 'BAPI_ACC_DOCUMENT_POST' Gives me Error when adding more than one</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post-gives-me-error-when-adding-more-than-one/m-p/2787464#M650006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my error was due to an internal table wasn't getting cleaned before the next call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;source: &lt;A href="http://www.codemare.blogspot.com" target="test_blank"&gt;http://www.codemare.blogspot.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2007 19:45:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-acc-document-post-gives-me-error-when-adding-more-than-one/m-p/2787464#M650006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-23T19:45:14Z</dc:date>
    </item>
  </channel>
</rss>

