<?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: Commit Problem with BAPI_SHIPMENT_CHANGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-problem-with-bapi-shipment-change/m-p/2743196#M637561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Could anyone please help?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2007 02:44:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-10T02:44:21Z</dc:date>
    <item>
      <title>Commit Problem with BAPI_SHIPMENT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-problem-with-bapi-shipment-change/m-p/2743191#M637556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, all, thank you very much for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I'm trying with &amp;lt;b&amp;gt;BAPI_SHIPMENT_CHANGE&amp;lt;/b&amp;gt;, to change a shipment's Planning_Status. The Planning_Status is successfully updated. But, the LOCK of the shipment is NOT automatically released after the bapi commit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Following is my detailed processing:&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  1. Write an ABAP LIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  2. Press a button on the ABAP LIST's Application tool bar to call the bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;      AT USER-COMMAND.
         CASE sy-ucomm.
             WHEN 'CALL_BAPI'.
                  CALL FUNCTION 'BAPI_SHIPMENT_CHANGE'
                  ......
                  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                  ......
         ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  3. After the bapi, stay at the current ABAP LIST wihout leaving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I commit the bapi explicitly, and the planned update succeeds, the processing shipment &amp;lt;b&amp;gt;stays being locked&amp;lt;/b&amp;gt; by me, &amp;lt;b&amp;gt;unless I leave the ABAP LIST&amp;lt;/b&amp;gt;. And just when I leave the current screen, the lock is released.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wondering, hasn't the BAPI_TRANSACTION_COMMIT committed successfully? Or, do I miss some steps?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Sep 2007 10:38:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-problem-with-bapi-shipment-change/m-p/2743191#M637556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-08T10:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Problem with BAPI_SHIPMENT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-problem-with-bapi-shipment-change/m-p/2743192#M637557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have questions :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1/ what transaction is telling you that the processing shipment is locked by you ?&lt;/P&gt;&lt;P&gt;2/ In your program do you have any other function with name '%enqueue%' ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Sep 2007 13:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-problem-with-bapi-shipment-change/m-p/2743192#M637557</guid>
      <dc:creator>chaouki_akir</dc:creator>
      <dc:date>2007-09-08T13:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Problem with BAPI_SHIPMENT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-problem-with-bapi-shipment-change/m-p/2743193#M637558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, chaouki,&lt;/P&gt;&lt;P&gt;    Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     1). Transaction 'VT02N' tells me the shipment is being locked by myself, if I haven't leave the ABAP LIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     2). There is NO extra '&lt;STRONG&gt;ENQUE&lt;/STRONG&gt;' processing in my program. Only BAPI_SHIPMENT_CHANGE and BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2007 10:20:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-problem-with-bapi-shipment-change/m-p/2743193#M637558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-09T10:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Problem with BAPI_SHIPMENT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-problem-with-bapi-shipment-change/m-p/2743194#M637559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1/Do you know what is the use of ENQUEUE/DEQUEUE function module ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2/My point of vue is : the VT02N is trying to lock the Shipment entry (created by the BAPI) by calling an ENQUEUE function module. By debbuging the VT02N transaction, you can know the name of the ENQUEUE function module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2007 10:56:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-problem-with-bapi-shipment-change/m-p/2743194#M637559</guid>
      <dc:creator>chaouki_akir</dc:creator>
      <dc:date>2007-09-09T10:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Problem with BAPI_SHIPMENT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-problem-with-bapi-shipment-change/m-p/2743195#M637560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with you on the lock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wondering, why BAPI_TRANSACTION_COMMIT doesn't release the lock? Why Leaving_Screen releases the lock?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2007 12:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-problem-with-bapi-shipment-change/m-p/2743195#M637560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-09T12:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Problem with BAPI_SHIPMENT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-problem-with-bapi-shipment-change/m-p/2743196#M637561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Could anyone please help?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 02:44:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-problem-with-bapi-shipment-change/m-p/2743196#M637561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T02:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Problem with BAPI_SHIPMENT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-problem-with-bapi-shipment-change/m-p/2743197#M637562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your problem have already been encountered in this forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="123198"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt; So, what you have done is correct. And to unlock the entry, you just have to call function 'DEQUEUE_ALL'  (as explained in thread &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="123198"&gt;&lt;/A&gt; ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 09:24:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-problem-with-bapi-shipment-change/m-p/2743197#M637562</guid>
      <dc:creator>chaouki_akir</dc:creator>
      <dc:date>2007-09-10T09:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Problem with BAPI_SHIPMENT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-problem-with-bapi-shipment-change/m-p/2743198#M637563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chaouki, thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 01:53:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-problem-with-bapi-shipment-change/m-p/2743198#M637563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T01:53:47Z</dc:date>
    </item>
  </channel>
</rss>

