<?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 Convert Warning Message into Error Message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-warning-message-into-error-message/m-p/2968034#M700452</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 am working with HR functional team. We found one strange thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PA30, if user tries to change any employee outside his personnel area, the sytem is throwing Warning message saying " No authorization for specifig organizational assignment exists" Message NO RP078 This is good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when user hit enter, the system allows him to save data even if he is not authorized. He should not allow to make changes if he is not authorized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOW CAN I CONVERT THIS WARNING MESSAGE INTO HARD ERROR MESSAGE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any program changes required OR is there any table we can maintain error messages?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tejas Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2007 15:12:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-23T15:12:29Z</dc:date>
    <item>
      <title>Convert Warning Message into Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-warning-message-into-error-message/m-p/2968034#M700452</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 am working with HR functional team. We found one strange thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PA30, if user tries to change any employee outside his personnel area, the sytem is throwing Warning message saying " No authorization for specifig organizational assignment exists" Message NO RP078 This is good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when user hit enter, the system allows him to save data even if he is not authorized. He should not allow to make changes if he is not authorized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOW CAN I CONVERT THIS WARNING MESSAGE INTO HARD ERROR MESSAGE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any program changes required OR is there any table we can maintain error messages?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tejas Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 15:12:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-warning-message-into-error-message/m-p/2968034#M700452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T15:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Warning Message into Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-warning-message-into-error-message/m-p/2968035#M700453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Taking a look into the ABAP source code (MP000130) reveals:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
module check_orgda.
  data: cho_rcode type x.
  perform check_orgda(sapfp50p) using p0001 cho_rcode.
  if cho_rcode ne rc_ok.
    cho_rcode = rc_ok.
    message w078.
  endif.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message is hard-coded as "warning" (w) message.&lt;/P&gt;&lt;P&gt;In order to change this, the coding needs to be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My proposal:&lt;/P&gt;&lt;P&gt;replace "&amp;lt;b&amp;gt;message w078&amp;lt;/b&amp;gt;" with "&amp;lt;b&amp;gt;message e078 display like 'W'&amp;lt;/b&amp;gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I consider this a bug - and encourage you to report this to SAP (message component "PA-PA").&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 17:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-warning-message-into-error-message/m-p/2968035#M700453</guid>
      <dc:creator>Wolfgang_Janzen</dc:creator>
      <dc:date>2007-10-23T17:04:01Z</dc:date>
    </item>
  </channel>
</rss>

