<?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/1548887#M249264</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 allways use this BADI. There may be other ways but it works fine and not complex to implement.&lt;/P&gt;&lt;P&gt;Here comes the docu of the BADI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Business Add-In: Check Line Before Copying to the Blocking Table                                                                                &lt;/P&gt;&lt;P&gt;Use                                                                                &lt;/P&gt;&lt;P&gt;This Business Add-In (BAdI) is used in the application component MM-IM          &lt;/P&gt;&lt;P&gt;    (MM-Bestandsführung).                                                                                &lt;/P&gt;&lt;P&gt;You can use this BAdI to perform checks at item level when you post             &lt;/P&gt;&lt;P&gt;    goods movements. The structures MKPF (header data) and MSEG (item data)         &lt;/P&gt;&lt;P&gt;    are returned.                                                                                &lt;/P&gt;&lt;P&gt;The structures DM07M (dialog control) and VM07M (update control) are            &lt;/P&gt;&lt;P&gt;    also available. However, the data from these structures is not stored in        &lt;/P&gt;&lt;P&gt;    a database table, but instead is only used for internal control. For            &lt;/P&gt;&lt;P&gt;    this reason, SAP reserves the right to change the use of these fields as        &lt;/P&gt;&lt;P&gt;    required.                                                                                &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Sep 2006 05:00:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-04T05:00:32Z</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/1548882#M249259</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 implemented one implementation to the badi MB_DOCUMENT_BAD.&lt;/P&gt;&lt;P&gt;while performing the 101 I have used two checks in my program.if In case chek failed I have to raise a error and stop the 101.&lt;/P&gt;&lt;P&gt;I Have used the code in following manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ROLLBACK WORK.&lt;/P&gt;&lt;P&gt;ERROR MESSAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After getting the error message if user trying to come out from the left arrow we got a short dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short dump its mentioned that we can not use the ERROR MESSAGE to the MB_DOCUMENT_BEFORE_UPDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one please suggest me what are the other ways to reaise a message in the user exit??&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>Mon, 04 Sep 2006 04:20:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1548882#M249259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T04:20:01Z</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/1548883#M249260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u cannt Raise Error Message In BADI , but u can Put a message in Application Log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this.&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;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 04:27:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1548883#M249260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T04:27:53Z</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/1548884#M249261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;You can use the Badi MB_CHECK_LINE_BADI to do any checks before posting is started.&lt;/P&gt;&lt;P&gt;It works really fine...&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 point would be nice if that helped a bit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 04:33:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1548884#M249261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T04:33:48Z</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/1548885#M249262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rainer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for uor response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What the other options to raise a error message if u r using MB_DOCUMENT_UPDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;awaiting for your respones.&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>Mon, 04 Sep 2006 04:50:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1548885#M249262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T04:50:00Z</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/1548886#M249263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BADI: MB_QUAN_CHECK_BADI.&lt;/P&gt;&lt;P&gt;Method: CHECK_ITEM_DATA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 04:58:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1548886#M249263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T04:58:36Z</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/1548887#M249264</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 allways use this BADI. There may be other ways but it works fine and not complex to implement.&lt;/P&gt;&lt;P&gt;Here comes the docu of the BADI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Business Add-In: Check Line Before Copying to the Blocking Table                                                                                &lt;/P&gt;&lt;P&gt;Use                                                                                &lt;/P&gt;&lt;P&gt;This Business Add-In (BAdI) is used in the application component MM-IM          &lt;/P&gt;&lt;P&gt;    (MM-Bestandsführung).                                                                                &lt;/P&gt;&lt;P&gt;You can use this BAdI to perform checks at item level when you post             &lt;/P&gt;&lt;P&gt;    goods movements. The structures MKPF (header data) and MSEG (item data)         &lt;/P&gt;&lt;P&gt;    are returned.                                                                                &lt;/P&gt;&lt;P&gt;The structures DM07M (dialog control) and VM07M (update control) are            &lt;/P&gt;&lt;P&gt;    also available. However, the data from these structures is not stored in        &lt;/P&gt;&lt;P&gt;    a database table, but instead is only used for internal control. For            &lt;/P&gt;&lt;P&gt;    this reason, SAP reserves the right to change the use of these fields as        &lt;/P&gt;&lt;P&gt;    required.                                                                                &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 05:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-mb-document-before-update/m-p/1548887#M249264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T05:00:32Z</dc:date>
    </item>
  </channel>
</rss>

