<?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: Material is getting lock with BAPI_GOODSMVT_CREATE, in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-is-getting-lock-with-bapi-goodsmvt-create/m-p/8039433#M1610620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zafar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT is standard SAP behaviour to give error is material is locked by some other user/session/process. So, you should just put an automatic retry kind of thing for this particular error to get your BAPI run successfully as soon as material lock is released.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check that who/why is material being locked. If it some parallel process and the locks are getting released after that particular process is complete then it is Fine and NORMAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2011 03:56:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-10T03:56:30Z</dc:date>
    <item>
      <title>Material is getting lock with BAPI_GOODSMVT_CREATE,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-is-getting-lock-with-bapi-goodsmvt-create/m-p/8039428#M1610615</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 made a RFC by using BAPI_GOODSMVT_CREATE, but some some times in case the document is not posted due to some error the material is getting lock entry in SM12, and system is not allowing to perform any other work for that material the code part is below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**************&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_GOODSMVT_CREATE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;goodsmvt_header = goodsmvt_header&lt;/P&gt;&lt;P&gt;goodsmvt_code = goodsmvt_code&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TESTRUN = TESTRUN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;GOODSMVT_REF_EWM =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;goodsmvt_headret = goodsmvt_headret&lt;/P&gt;&lt;P&gt;materialdocument = materialdocument&lt;/P&gt;&lt;P&gt;matdocumentyear = matdocumentyear&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;goodsmvt_item = goodsmvt_item&lt;/P&gt;&lt;P&gt;goodsmvt_serialnumber = goodsmvt_serialnumber&lt;/P&gt;&lt;P&gt;return = return&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;GOODSMVT_SERV_PART_DATA =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXTENSIONIN =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&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;&lt;/P&gt;&lt;P&gt;****************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what can be done for this also try by adding the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT materialdocument IS INITIAL., " befoe commit FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&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;endif.&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;zafar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 10:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-is-getting-lock-with-bapi-goodsmvt-create/m-p/8039428#M1610615</guid>
      <dc:creator>former_member182379</dc:creator>
      <dc:date>2011-08-09T10:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Material is getting lock with BAPI_GOODSMVT_CREATE,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-is-getting-lock-with-bapi-goodsmvt-create/m-p/8039429#M1610616</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;Use the FM (enqueue_read) to check whether there is lock for the material&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;if you find it is locked then use the function module(DEQUEUE_ERSPLS_LOCK_SYNC) to release the lock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you use these function modules correctly in appropriate place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 11:25:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-is-getting-lock-with-bapi-goodsmvt-create/m-p/8039429#M1610616</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2011-08-09T11:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Material is getting lock with BAPI_GOODSMVT_CREATE,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-is-getting-lock-with-bapi-goodsmvt-create/m-p/8039430#M1610617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; What parameters required to be pass for this DEQUEUE_ERSPLS_LOCK_SYNC,&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; zafar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 11:28:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-is-getting-lock-with-bapi-goodsmvt-create/m-p/8039430#M1610617</guid>
      <dc:creator>former_member182379</dc:creator>
      <dc:date>2011-08-09T11:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Material is getting lock with BAPI_GOODSMVT_CREATE,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-is-getting-lock-with-bapi-goodsmvt-create/m-p/8039431#M1610618</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;You are using the standard bapi BAPI_GOODSMVT_CREATE. Its returning the exact message when the entry is locked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the problem in it ? If its locked then somebody else is using the material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kesav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 15:23:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-is-getting-lock-with-bapi-goodsmvt-create/m-p/8039431#M1610618</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-08-09T15:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Material is getting lock with BAPI_GOODSMVT_CREATE,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-is-getting-lock-with-bapi-goodsmvt-create/m-p/8039432#M1610619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  The probelm is when we execute the RFC at that time no other user using it , as we are doing iin development,  also the material get lock only when the document is not posted  means if there if some error msg.  and it is lock by same user by which we execute the RFC from non SAP system.&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; zafar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 03:49:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-is-getting-lock-with-bapi-goodsmvt-create/m-p/8039432#M1610619</guid>
      <dc:creator>former_member182379</dc:creator>
      <dc:date>2011-08-10T03:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Material is getting lock with BAPI_GOODSMVT_CREATE,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-is-getting-lock-with-bapi-goodsmvt-create/m-p/8039433#M1610620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zafar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT is standard SAP behaviour to give error is material is locked by some other user/session/process. So, you should just put an automatic retry kind of thing for this particular error to get your BAPI run successfully as soon as material lock is released.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check that who/why is material being locked. If it some parallel process and the locks are getting released after that particular process is complete then it is Fine and NORMAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 03:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-is-getting-lock-with-bapi-goodsmvt-create/m-p/8039433#M1610620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-10T03:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Material is getting lock with BAPI_GOODSMVT_CREATE,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-is-getting-lock-with-bapi-goodsmvt-create/m-p/8039434#M1610621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solve by adding below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************&lt;/P&gt;&lt;P&gt;if not materialdocument is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&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;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;RETURN = RETURN1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&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; zafar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 06:13:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-is-getting-lock-with-bapi-goodsmvt-create/m-p/8039434#M1610621</guid>
      <dc:creator>former_member182379</dc:creator>
      <dc:date>2011-08-10T06:13:30Z</dc:date>
    </item>
  </channel>
</rss>

