<?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: Error message in MB_DOCUMENT_BEFORE_UPDATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475170#M222831</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;  If that is the case, you can insert the entries ( With PO number, Tolerance limit with the status ) in the custom table, after the message, you can use the following,&lt;/P&gt;&lt;P&gt;ROLL BACK WORK.&lt;/P&gt;&lt;P&gt;leave program.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;This will stop the standard transaction from saving the material document details in the relevant standard tables, still there will be an entry with the status maintained in the custom table, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Aug 2006 06:50:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-03T06:50:26Z</dc:date>
    <item>
      <title>Error message in MB_DOCUMENT_BEFORE_UPDATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475162#M222823</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 have to use a error message in MB_DOCUMENT_BEFORE UPDATE method. before error message I need to  update one customize tabele.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I used like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ROLLBACK WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE customize table.&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will it create any inconsistency in MM and ML even I am using COMMIT work in MB_DOCUMENT_BEFORE_UPDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me as its very urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 06:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475162#M222823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T06:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in MB_DOCUMENT_BEFORE_UPDATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475163#M222824</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 cant issue error message of type 'E' inside the BADI, you can use fm 'POPUP_TO_CONFIRM' to display the message in a popup screen, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you dont want to update both custom &amp;amp; standard tables after the error message you can issue 'LEAVE PROGRAM', command to leave the control out of the program, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 06:14:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475163#M222824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T06:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in MB_DOCUMENT_BEFORE_UPDATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475164#M222825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sandeep , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; u cannt use BADI to raise Error messages ? what u can do is u can make use  of Error Log ? in that u can like this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    msg-vbeln  = w_lips-vbeln.
    msg-posnr  = w_lips-posnr.
    msg-msgty  = 'E'.
    msg-msgid  = 'YW2'.
    msg-msgno  = '042'.
    msg-msgv1  =
    'Avail.dt for this Item/batch is later than today'.
    msg-msgv2  = w_lips-lfimg.
    msg-msgv3  = w_lips-meins.
    msg-msgv4  = w_lips-charg.
    append msg to ct_log.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;b&amp;gt;in addition to RB , u cannt rollback , but what u can do is u can change data in the table which are avail at this stage ? and u can update ur Ztable with Update Command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and coming to error message ? try @ ur end and let me know the status.&amp;lt;/b&amp;gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Prabhu Peram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Prabhu Peram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 06:19:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475164#M222825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T06:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in MB_DOCUMENT_BEFORE_UPDATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475165#M222826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, I have seen in the previous implementation that some one has used the erroe message in BADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I need to roll back the work and also update the customize table then what should I do??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLease.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 06:21:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475165#M222826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T06:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in MB_DOCUMENT_BEFORE_UPDATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475166#M222827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Prabhu, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;question is that can I use ROLLBACK WORK to back out the changes to the standard table and COMMIT WORK in BADI for udpating the customize table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds,&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 06:24:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475166#M222827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T06:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in MB_DOCUMENT_BEFORE_UPDATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475167#M222828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;Never do any COMMIT or ROLLBACK within a BADI or User-Exit.&lt;/P&gt;&lt;P&gt;You will interrupt the DB-Transaction (LUW) of the original-program !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can do...&lt;/P&gt;&lt;P&gt;You can call a Function-Module in TRFC. Within that you can update your own table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some points would be fine of that helped a bit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 06:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475167#M222828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T06:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in MB_DOCUMENT_BEFORE_UPDATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475168#M222829</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;  Error messages are not allowed inside the BADI, you can check by giving the message of type 'E' and see, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I dont see any reason why you want to update the Custom table when the standard table is not getting updated with the 'Material document number' generated , then the integration with the custom table is not going to be proper, though this can be achievable by updating the table with the material document generated and issuing the 'roll back work' and leaving the program, it is not advisable to do so,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 06:28:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475168#M222829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T06:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in MB_DOCUMENT_BEFORE_UPDATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475169#M222830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sailatha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just let me know the functionality to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While performing GR(101) we need to check tolerance in BADI for produced material and in case if have tolerance error then we have to raise a error message and ROLLBACK the works. apart from this we need to maintain status to the customize table that we have failed in performing the GR in this table we dont have material doucment number field.&lt;/P&gt;&lt;P&gt;what could u suggest on this.??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 06:40:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475169#M222830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T06:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in MB_DOCUMENT_BEFORE_UPDATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475170#M222831</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;  If that is the case, you can insert the entries ( With PO number, Tolerance limit with the status ) in the custom table, after the message, you can use the following,&lt;/P&gt;&lt;P&gt;ROLL BACK WORK.&lt;/P&gt;&lt;P&gt;leave program.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;This will stop the standard transaction from saving the material document details in the relevant standard tables, still there will be an entry with the status maintained in the custom table, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 06:50:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475170#M222831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T06:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in MB_DOCUMENT_BEFORE_UPDATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475171#M222832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as per uoer suggestion my understanding is given blow please confirm it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE customize table.&lt;/P&gt;&lt;P&gt;MEssage&lt;/P&gt;&lt;P&gt;ROLLBACK WORK.&lt;/P&gt;&lt;P&gt;LEAVE Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this is the case i m not sure I will be able to roll back the work after giving the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 06:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475171#M222832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T06:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in MB_DOCUMENT_BEFORE_UPDATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475172#M222833</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;  Yes, check with this logic, revert for any clarifications, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 08:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1475172#M222833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-03T08:55:31Z</dc:date>
    </item>
  </channel>
</rss>

