<?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: BADi / User exit after MIGO COMMIT ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-user-exit-after-migo-commit/m-p/1726197#M316536</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;Setting the value for the field 'BYPASS_LOCK' to 'X', I am able to avoid the exception 'lock_on_plant'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP says that it is not possible to create a batch and change it's characteristic values, other than the batch expiration date, in MIGO using BADi 'MB_DOCUMENT_UPDATE', as the create and change would be part of the same LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note 92550 lists the inconsistencies that can occur if a separate COMMIT is called in the user exit / BADi. This would happen if a wrapper FM to 'VB_CHANGE_BATCH' is created and called 'IN UPDATE TASK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ashok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Dec 2006 09:43:34 GMT</pubDate>
    <dc:creator>Ash_ok</dc:creator>
    <dc:date>2006-12-05T09:43:34Z</dc:date>
    <item>
      <title>BADi / User exit after MIGO COMMIT ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-user-exit-after-migo-commit/m-p/1726195#M316534</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 need to populate some characteristic values for a batch of a material while running txn. code MIGO, after the MIGO COMMIT. We have used BADi 'MB_DOCUMENT_UPDATE' to write the bespoke code. However, while updating the characteristic values, using FM 'VB_CHANGE_BATCH', we are getting EXCEPTION 'lock_on_plant'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sounds like FM 'VB_CHANGE_BATCH' is COMMITting at the same time / before MIGO is COMMITting. Is there a BADI / user exit that works after MIGO 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;Cheers,&lt;/P&gt;&lt;P&gt;Ashok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 12:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-user-exit-after-migo-commit/m-p/1726195#M316534</guid>
      <dc:creator>Ash_ok</dc:creator>
      <dc:date>2006-10-25T12:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: BADi / User exit after MIGO COMMIT ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-user-exit-after-migo-commit/m-p/1726196#M316535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM 'VB_CHANGE_BATCH' is a normal function module, and might be commit-ing as you mentioned. &lt;/P&gt;&lt;P&gt;You can try creating an UPDATE function module as a wrapper to VB_CHANGE_BATCH, and call the so created FM 'IN UPDATE TASK', in the same BAdI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you!. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sajan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 16:13:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-user-exit-after-migo-commit/m-p/1726196#M316535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-25T16:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: BADi / User exit after MIGO COMMIT ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-user-exit-after-migo-commit/m-p/1726197#M316536</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;Setting the value for the field 'BYPASS_LOCK' to 'X', I am able to avoid the exception 'lock_on_plant'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP says that it is not possible to create a batch and change it's characteristic values, other than the batch expiration date, in MIGO using BADi 'MB_DOCUMENT_UPDATE', as the create and change would be part of the same LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note 92550 lists the inconsistencies that can occur if a separate COMMIT is called in the user exit / BADi. This would happen if a wrapper FM to 'VB_CHANGE_BATCH' is created and called 'IN UPDATE TASK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ashok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 09:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-user-exit-after-migo-commit/m-p/1726197#M316536</guid>
      <dc:creator>Ash_ok</dc:creator>
      <dc:date>2006-12-05T09:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: BADi / User exit after MIGO COMMIT ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-user-exit-after-migo-commit/m-p/1726198#M316537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you check MB_DOCUMENT_BADI??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 12:14:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-user-exit-after-migo-commit/m-p/1726198#M316537</guid>
      <dc:creator>Nkrish</dc:creator>
      <dc:date>2006-12-05T12:14:52Z</dc:date>
    </item>
  </channel>
</rss>

