<?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 entry problem.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-entry-problem/m-p/1378884#M185290</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 is not useful both "Commit work" and "BAPI~COMMIT".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I think two ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use Submit.&lt;/P&gt;&lt;P&gt;   -. After the 1st Item created, It invokes the 2nd Item using Submit.&lt;/P&gt;&lt;P&gt;   -. The pgm of the 1st item is terminated and releases lock entries..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use Dequeue Fucntion..&lt;/P&gt;&lt;P&gt;   -. I check the lock entry of the sales order.&lt;/P&gt;&lt;P&gt;   -. if it exist, dequeue entries.&lt;/P&gt;&lt;P&gt;   -. And then creates the 2nd item of the sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kil..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jun 2006 08:23:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-26T08:23:19Z</dc:date>
    <item>
      <title>Lock entry problem..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-entry-problem/m-p/1378880#M185286</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;*****************************&lt;/P&gt;&lt;P&gt;  Sales Order # : 11&lt;/P&gt;&lt;P&gt;          items : 10 , 20&lt;/P&gt;&lt;P&gt;*****************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make each Delivery Notes(below DN) of a sales order(which has a lot of items) by using BAPI[BAPI_DELIVERYPROCESSING_EXEC] in a work process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, item #10 is created normally. I check the lock entry in SM12.&lt;/P&gt;&lt;P&gt;Sales Order #11 and new DN # is enrolled in the lock entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, When item #20 is created, the old lock entries is still exist.&lt;/P&gt;&lt;P&gt;So, I can't make new DN of Item # 20, because of existing old lock entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, Let me know how to make the second item and disappear the old lock entries in BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Kil-Nam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2006 01:40:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-entry-problem/m-p/1378880#M185286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-26T01:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lock entry problem..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-entry-problem/m-p/1378881#M185287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. use BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;P&gt;  after callling  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  BAPI_DELIVERYPROCESSING_EXEC (for 1st item)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_DELIVERYPROCESSING_EXEC (for 1st item)&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;P&gt;BAPI_DELIVERYPROCESSING_EXEC (for 2nd item)&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2006 06:28:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-entry-problem/m-p/1378881#M185287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-26T06:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Lock entry problem..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-entry-problem/m-p/1378882#M185288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not useful "BAPI_TRANSACTION_COMMIT".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I call the BAPI as aRFC for Multi-processing.&lt;/P&gt;&lt;P&gt;Is it problem..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;kil..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2006 07:18:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-entry-problem/m-p/1378882#M185288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-26T07:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Lock entry problem..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-entry-problem/m-p/1378883#M185289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I call the BAPI as aRFC for Multi-processing.&lt;/P&gt;&lt;P&gt;Is it problem..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not get this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Even if u do like this,&lt;/P&gt;&lt;P&gt;  we should COMMIT (BAPI_TRANSACTION_COMMIT)&lt;/P&gt;&lt;P&gt;  so that the LOCKED ENTRIES are deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2006 07:46:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-entry-problem/m-p/1378883#M185289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-26T07:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lock entry problem..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-entry-problem/m-p/1378884#M185290</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 is not useful both "Commit work" and "BAPI~COMMIT".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I think two ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use Submit.&lt;/P&gt;&lt;P&gt;   -. After the 1st Item created, It invokes the 2nd Item using Submit.&lt;/P&gt;&lt;P&gt;   -. The pgm of the 1st item is terminated and releases lock entries..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use Dequeue Fucntion..&lt;/P&gt;&lt;P&gt;   -. I check the lock entry of the sales order.&lt;/P&gt;&lt;P&gt;   -. if it exist, dequeue entries.&lt;/P&gt;&lt;P&gt;   -. And then creates the 2nd item of the sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kil..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2006 08:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-entry-problem/m-p/1378884#M185290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-26T08:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lock entry problem..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-entry-problem/m-p/1378885#M185291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I have had the same problem. Are you closing the connection at each iteration? Use following sequence of commit &amp;amp; Close at every loop -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;   DESTINATION 'destination name'&amp;lt;/b&amp;gt;      &lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;        WAIT = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'RFC_CONNECTION_CLOSE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;    DESTINATION      = 'Destination name'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        DESTINATION_NOT_OPEN = 1&lt;/P&gt;&lt;P&gt;        OTHERS               = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2006 08:41:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-entry-problem/m-p/1378885#M185291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-26T08:41:39Z</dc:date>
    </item>
  </channel>
</rss>

