<?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 locked - IDOC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-locked-idoc/m-p/7815373#M1588436</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;Try this way.. You call the 'ENQUEUE_E_TABLE'  and 'DEQUEUE_E_TABLE' function module in program and if you find already the record is locked with the help of SY-subrc then again call the function module in a do-loop unless until the lock is removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION...'ENQUEUE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function..'DEQUEUE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit.&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;enddo.&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, 24 May 2011 11:52:28 GMT</pubDate>
    <dc:creator>former_member404244</dc:creator>
    <dc:date>2011-05-24T11:52:28Z</dc:date>
    <item>
      <title>Material locked - IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-locked-idoc/m-p/7815372#M1588435</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 using Message type u2018MBGMCRu2019 for Goods movement posting.&lt;/P&gt;&lt;P&gt;Each Idoc has few line items (Segment E1BP2017_GM_ITEM_CREATE) with different material numbers. Now if any two consecutive Idocs have common material numbers, the current idoc goes into error without posting the document (Error - Valuation data for material &amp;amp; is locked by the user &amp;amp;). Is there a solution for this (Apart from reprocessing)?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Goutham.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 11:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-locked-idoc/m-p/7815372#M1588435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-24T11:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Material locked - IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-locked-idoc/m-p/7815373#M1588436</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;Try this way.. You call the 'ENQUEUE_E_TABLE'  and 'DEQUEUE_E_TABLE' function module in program and if you find already the record is locked with the help of SY-subrc then again call the function module in a do-loop unless until the lock is removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION...'ENQUEUE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function..'DEQUEUE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit.&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;enddo.&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, 24 May 2011 11:52:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-locked-idoc/m-p/7815373#M1588436</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2011-05-24T11:52:28Z</dc:date>
    </item>
  </channel>
</rss>

