<?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: user exit - stop processing with error message displayed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-stop-processing-with-error-message-displayed/m-p/2718942#M630759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this happens with 'POPUP_DISPLAY_MESSAGE'.&lt;/P&gt;&lt;P&gt;so instead use &lt;/P&gt;&lt;P&gt;message e001(zmesg) type 'E'.&lt;/P&gt;&lt;P&gt;gve desription in long text of message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        abapuser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2007 07:34:04 GMT</pubDate>
    <dc:creator>former_member188827</dc:creator>
    <dc:date>2007-08-29T07:34:04Z</dc:date>
    <item>
      <title>user exit - stop processing with error message displayed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-stop-processing-with-error-message-displayed/m-p/2718941#M630758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My scenario is like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whil doing migo for the same batch number more than 3 times i should not allow to post the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the material number and batch number in a seperate ztable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for checking this found out there is an exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enhacmenet - MBCF0002&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT_SAPMM07M_001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written code in the above exit as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select count(*) from ztable&lt;/P&gt;&lt;P&gt;    into t_charg&lt;/P&gt;&lt;P&gt;     where matnr eq i_mseg-matnr&lt;/P&gt;&lt;P&gt;    and charg eq i_mseg-charg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if t_charg gt 3.&lt;/P&gt;&lt;P&gt;  call function 'POPUP_DISPLAY_MESSAGE'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      titel = 'Error Message'&lt;/P&gt;&lt;P&gt;      msgid = 'BD'&lt;/P&gt;&lt;P&gt;      msgty = 'E'&lt;/P&gt;&lt;P&gt;      msgno = '899'&lt;/P&gt;&lt;P&gt;      msgv1 = 'Batch Already Received 3 Times'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-ucomm = 'OKAY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif sy-ucomm = 'RW'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program works fine and gives a pop up message and when i post the document &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it still gets posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should not allow to post the document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help me on this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 07:31:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-stop-processing-with-error-message-displayed/m-p/2718941#M630758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T07:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: user exit - stop processing with error message displayed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-stop-processing-with-error-message-displayed/m-p/2718942#M630759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this happens with 'POPUP_DISPLAY_MESSAGE'.&lt;/P&gt;&lt;P&gt;so instead use &lt;/P&gt;&lt;P&gt;message e001(zmesg) type 'E'.&lt;/P&gt;&lt;P&gt;gve desription in long text of message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        abapuser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 07:34:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-stop-processing-with-error-message-displayed/m-p/2718942#M630759</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2007-08-29T07:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: user exit - stop processing with error message displayed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-stop-processing-with-error-message-displayed/m-p/2718943#M630760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx for the reply &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ihave created a message class z001 and maintained a message(001)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i am trying to activate it says &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field "Z001" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement . . . . . . . . . .		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whether i need to include anything  in the program for message class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 09:28:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-stop-processing-with-error-message-displayed/m-p/2718943#M630760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T09:28:54Z</dc:date>
    </item>
  </channel>
</rss>

