<?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: Unlock material in BDC program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unlock-material-in-bdc-program/m-p/10051336#M1809879</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 can create two different BDC sessions one for first and one for second plant. If session for first plant has completed for all materials without errors you can start the second session for the other plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using CALL TRANSACTION you can try update modes 'S' and 'L'. Additional if needed you can use the lock loop mechanism &lt;A _jive_internal="true" href="https://answers.sap.com/people/raymond.giuseppi"&gt;Raymond&lt;/A&gt; suggested.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jan 2014 09:24:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-01-15T09:24:10Z</dc:date>
    <item>
      <title>Unlock material in BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unlock-material-in-bdc-program/m-p/10051334#M1809877</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;I am writing a BDC program to process material masters. The program going to create same material for 2 plant. The material creation for 2nd plant referring to 1st plant.&lt;/P&gt;&lt;P&gt;The process for 2nd plant only initiated after the process in 1st plant is completed. The 2nd process failed because the material created in 1st process is locked. I need help on how to resolve this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 08:45:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unlock-material-in-bdc-program/m-p/10051334#M1809877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-15T08:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unlock material in BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unlock-material-in-bdc-program/m-p/10051335#M1809878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use BAPI and WAIT option in the COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With BDC you wont have many options if response time are not excellent, as there is a delay between the end of the transaction (COMMIT) and the end of the update tasks that actually update database and share the lock during the process.&lt;/P&gt;&lt;P&gt;If you are using CALL TRANSACTION and not sessions you could try to lock the material reference (FM ENQUEUE_EMMARAE) til successful then release it and CALL the second TRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 09:03:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unlock-material-in-bdc-program/m-p/10051335#M1809878</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-01-15T09:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unlock material in BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unlock-material-in-bdc-program/m-p/10051336#M1809879</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 can create two different BDC sessions one for first and one for second plant. If session for first plant has completed for all materials without errors you can start the second session for the other plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using CALL TRANSACTION you can try update modes 'S' and 'L'. Additional if needed you can use the lock loop mechanism &lt;A _jive_internal="true" href="https://answers.sap.com/people/raymond.giuseppi"&gt;Raymond&lt;/A&gt; suggested.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 09:24:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unlock-material-in-bdc-program/m-p/10051336#M1809879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-15T09:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unlock material in BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unlock-material-in-bdc-program/m-p/10051337#M1809880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Boon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of BDC, in the past I found myself quite confortable with MATERIAL_MAINTAIN_DARK function module, for a very similar requirement.&lt;/P&gt;&lt;P&gt;It's a well documented FM. You can pass almost all material fields in the available structures. It's easy to be used and efficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this could be of any help. If you need further details, just let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flavio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 21:39:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unlock-material-in-bdc-program/m-p/10051337#M1809880</guid>
      <dc:creator>Flavio</dc:creator>
      <dc:date>2014-01-15T21:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unlock material in BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unlock-material-in-bdc-program/m-p/10051338#M1809881</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;I think, do you need use the Lock Object Function Module after process first material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENQUEUE_*MAT*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEQUEUE_*MAT*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by check is material is locked use the ENQUEUE Function Module, if you want unlock use DEQUEUE Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 22:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unlock-material-in-bdc-program/m-p/10051338#M1809881</guid>
      <dc:creator>former_member235395</dc:creator>
      <dc:date>2014-01-15T22:19:36Z</dc:date>
    </item>
  </channel>
</rss>

