<?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 Validation / Message 'E'  in User Exit, is it safe ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-message-e-in-user-exit-is-it-safe/m-p/6329879#M1395955</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;  I'm making a validation in OKC7. I need to display 20 different messages, but don't want to make 20 different validations. I'd like to make a single User Exit preparing a certain message to be displayed. I've managed to get the result using this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    PERFORM build_msg.

    MESSAGE s_msg TYPE 'E' RAISING errormessage.

    b_result = b_true.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to display my custom error message inside the User Exit and then suppress the message defined in OKC7 by setting b_result to true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, is it safe to do it this way ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2009 10:37:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-27T10:37:07Z</dc:date>
    <item>
      <title>Validation / Message 'E'  in User Exit, is it safe ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-message-e-in-user-exit-is-it-safe/m-p/6329879#M1395955</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;  I'm making a validation in OKC7. I need to display 20 different messages, but don't want to make 20 different validations. I'd like to make a single User Exit preparing a certain message to be displayed. I've managed to get the result using this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    PERFORM build_msg.

    MESSAGE s_msg TYPE 'E' RAISING errormessage.

    b_result = b_true.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to display my custom error message inside the User Exit and then suppress the message defined in OKC7 by setting b_result to true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, is it safe to do it this way ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 10:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-message-e-in-user-exit-is-it-safe/m-p/6329879#M1395955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T10:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Validation / Message 'E'  in User Exit, is it safe ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-message-e-in-user-exit-is-it-safe/m-p/6329880#M1395956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing the same problem, so maybe any expert can answer this?&lt;/P&gt;&lt;P&gt;I have read the validation documentation and I know that there is the information about no error messages in validation user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But can anyone tell me the difference between...&lt;/P&gt;&lt;P&gt;(1) Putting the error message in the user-exit&amp;nbsp; and&lt;/P&gt;&lt;P&gt;(2) set b_result to false and put the error message in the validation step?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both cases its an error message which results that the document creation is stopped until the error is corrected, isn't it? When facing batch input, in both cases it will cause error message in SM35 which need to be corrected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 09:22:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-message-e-in-user-exit-is-it-safe/m-p/6329880#M1395956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-08-04T09:22:02Z</dc:date>
    </item>
  </channel>
</rss>

