<?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: problem with badi WORKORDER_UPDATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-badi-workorder-update/m-p/2316284#M507948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ester,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the BADI documentation which says :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Note that no system messages may be sent in the methods. The only exception is the AT_SAVE method. Within this method, a system message may be issued, but only if you trigger the exception ERROR_WITH_MESSAGE at the same time."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So reading this , I feel that you need to code in the AT_SAVE method to display the error messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Disha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2007 06:02:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-30T06:02:58Z</dc:date>
    <item>
      <title>problem with badi WORKORDER_UPDATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-badi-workorder-update/m-p/2316283#M507947</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 need to put error message at method BEFORE_UPDATE during save for CJ20N , it ends up making the system short dump: ON-COMMIT processing must not be interrupted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my coding:&lt;/P&gt;&lt;P&gt;method IF_EX_WORKORDER_UPDATE~BEFORE_UPDATE .&lt;/P&gt;&lt;P&gt;INCLUDE mm_messages_mac.&lt;/P&gt;&lt;P&gt;data: w_comp like line of iT_COMPONENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_component into w_comp where matnr = '000000000060002322'.&lt;/P&gt;&lt;P&gt;  mmpur_message_forced 'E' 'ZZ' '055' 'test' 'ester' '' ''.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any way i can trigger the error without making the system short dump? i hv tried in method IN_UPDATE, another warning inbox occurs, please advice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 03:05:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-badi-workorder-update/m-p/2316283#M507947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T03:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: problem with badi WORKORDER_UPDATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-badi-workorder-update/m-p/2316284#M507948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ester,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the BADI documentation which says :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Note that no system messages may be sent in the methods. The only exception is the AT_SAVE method. Within this method, a system message may be issued, but only if you trigger the exception ERROR_WITH_MESSAGE at the same time."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So reading this , I feel that you need to code in the AT_SAVE method to display the error messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Disha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 06:02:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-badi-workorder-update/m-p/2316284#M507948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T06:02:58Z</dc:date>
    </item>
  </channel>
</rss>

