<?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_DOCUMENT_CHANGE2 in a batch program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-document-change2-in-a-batch-program/m-p/8145191#M1620789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using Function Module BAPI_DOCUMENT_CHANGE2 to process Vendor Safety DMS records in batch processing. There may be several hundred to several thousand records on any given night. The job is scheduled to run one time per night. It runs under the username of BATCH. Virtually, every night we get one or both of these errors, which cause the job to end in error status. We are not sure why the errors occur or how to trouble shoot. Any suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) ONSHORE_SAFETY_RATING .... Document &amp;amp;1 does not exist&lt;/P&gt;&lt;P&gt;Example: &amp;amp;1 = CN1/1102364/* &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Document CN1/1100058/000/00 is locked by BATCH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-don.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2011 18:15:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-24T18:15:08Z</dc:date>
    <item>
      <title>BAPI_DOCUMENT_CHANGE2 in a batch program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-document-change2-in-a-batch-program/m-p/8145191#M1620789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using Function Module BAPI_DOCUMENT_CHANGE2 to process Vendor Safety DMS records in batch processing. There may be several hundred to several thousand records on any given night. The job is scheduled to run one time per night. It runs under the username of BATCH. Virtually, every night we get one or both of these errors, which cause the job to end in error status. We are not sure why the errors occur or how to trouble shoot. Any suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) ONSHORE_SAFETY_RATING .... Document &amp;amp;1 does not exist&lt;/P&gt;&lt;P&gt;Example: &amp;amp;1 = CN1/1102364/* &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Document CN1/1100058/000/00 is locked by BATCH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-don.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 18:15:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-document-change2-in-a-batch-program/m-p/8145191#M1620789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-24T18:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_DOCUMENT_CHANGE2 in a batch program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-document-change2-in-a-batch-program/m-p/8145192#M1620790</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;It also depends upon the dependency of the records and also the connectivity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can place some wait after each record is processed. This will be helpful to unlock the record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 18:51:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-document-change2-in-a-batch-program/m-p/8145192#M1620790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-24T18:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_DOCUMENT_CHANGE2 in a batch program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-document-change2-in-a-batch-program/m-p/8145193#M1620791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorryfor the delay in closing this out. I put a wait in the program of 5 seconds which resolved the record loclking. We had to write a custom program to delete orphan records from the DRAD table for the other error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-don.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 19:17:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-document-change2-in-a-batch-program/m-p/8145193#M1620791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T19:17:33Z</dc:date>
    </item>
  </channel>
</rss>

