<?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: Lock Error while posting document through bapi_acc_document_post in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-error-while-posting-document-through-bapi-acc-document-post/m-p/3689919#M888520</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;   No the wait parameter is not used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2008 18:58:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-15T18:58:54Z</dc:date>
    <item>
      <title>Lock Error while posting document through bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-error-while-posting-document-through-bapi-acc-document-post/m-p/3689917#M888518</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;   We are trying to Post documents in R/3 using Bapi_acc_document_post from BW system using ABAP report. The report groups data using certain criteria and makes a Bapi call for each group. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem : The program has 2 modes test mode and actual run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the program was run in a test mode 15 groups were created. Hence 15 documents should get created in R/3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when the actual run was done the program gave an output saying doc1 created,doc2 created....doc11 created.. and suddenly Bapi error .. doc1 is locked by another user, doc1 is locked by another user, doc1 is locked by another user, doc1 is locked by another user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover Doc1 never got created in R/3. Doc 2 to Doc11 were created in R/3 and then the BApi error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me understand why this could have happened?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S : We use same Bapi for Check run as well as Actual run. Only difference is that in actual run a BApi_commit is done.&lt;/P&gt;&lt;P&gt;Do you think using BAP_ACC_DOCUMENT_CHECK during check run will help ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLease advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 18:09:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-error-while-posting-document-through-bapi-acc-document-post/m-p/3689917#M888518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T18:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Error while posting document through bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-error-while-posting-document-through-bapi-acc-document-post/m-p/3689918#M888519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you calling BAPI_TRANSACTION_COMMIT with WAIT = 'X' after a successful call to BAPI_ACC_DOCUMENT_POST?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 18:19:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-error-while-posting-document-through-bapi-acc-document-post/m-p/3689918#M888519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T18:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Error while posting document through bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-error-while-posting-document-through-bapi-acc-document-post/m-p/3689919#M888520</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;   No the wait parameter is not used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 18:58:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-error-while-posting-document-through-bapi-acc-document-post/m-p/3689919#M888520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T18:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Error while posting document through bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-error-while-posting-document-through-bapi-acc-document-post/m-p/3689920#M888521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Setting the WAIT parameter = 'X' will make your updates synchronous which might solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try and let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 19:00:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-error-while-posting-document-through-bapi-acc-document-post/m-p/3689920#M888521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T19:00:42Z</dc:date>
    </item>
  </channel>
</rss>

