<?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: Message type 'E' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-e/m-p/1844630#M358558</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;This should be like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;when '5'.
MESSAGE e300(301) WITH 'TOO MANY DECIMALS'.
endcase.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves ur problem.&lt;/P&gt;&lt;P&gt;Reward points and close thread if this solves else get back with queries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jan 2007 13:14:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-09T13:14:43Z</dc:date>
    <item>
      <title>Message type 'E'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-e/m-p/1844622#M358550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I m using message type E. for that i should get an error message in red color in the status bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i m not getting like that.For me an information message is raised with stop symbol &amp;amp; the program exits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to diaplay an error message in the status bar.&lt;/P&gt;&lt;P&gt;I m writing the message in the exception handling.&lt;/P&gt;&lt;P&gt;i.e after execution of the FM i m checking the sy-subrc. if sy-subrc is one of the exception number in FM i want to write the error message in red color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one solve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 11:27:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-e/m-p/1844622#M358550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T11:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Message type 'E'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-e/m-p/1844623#M358551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It Depends upon Mode of Program what u are using .&lt;/P&gt;&lt;P&gt;&lt;/P&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>Tue, 09 Jan 2007 11:30:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-e/m-p/1844623#M358551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T11:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Message type 'E'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-e/m-p/1844624#M358552</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;After exceptions check the sy-subrc:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF SY-SUBRC &amp;gt; 0.
  MESSAGE EXXX(YY) WITH &amp;lt;TEXT&amp;gt;.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 11:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-e/m-p/1844624#M358552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T11:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Message type 'E'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-e/m-p/1844625#M358553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the FM raises an exception then the system itself will give a error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that u need to uncomment the following&lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt; IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt; ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this also doesn't solves ur problem then paste ur code where u r calling that FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful reward.&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 11:32:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-e/m-p/1844625#M358553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T11:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Message type 'E'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-e/m-p/1844626#M358554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kalapana,&lt;/P&gt;&lt;P&gt;try with the message type s might be solve your problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 11:32:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-e/m-p/1844626#M358554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T11:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Message type 'E'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-e/m-p/1844627#M358555</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;try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;message e001(e) with 'no record found (text)'.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 11:34:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-e/m-p/1844627#M358555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T11:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Message type 'E'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-e/m-p/1844628#M358556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the decimal is greater than number of characters i want to give an error message.&lt;/P&gt;&lt;P&gt;Check sy-subrc = 5 for that. But i m getting an popup message and the program exits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'CTCV_GENERATE_PATTERN'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    charact_format          = attribute&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   USER_NEUTRAL            = X&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; importing&lt;/P&gt;&lt;P&gt;   pattern                 = grid_str_header-template&lt;/P&gt;&lt;P&gt;   new_format              = attribute&lt;/P&gt;&lt;P&gt; exceptions&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVALID_FORMAT          = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   LENGTH_MISSING          = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   TOO_LITTLE_PLACES       = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   too_many_places         = 4&lt;/P&gt;&lt;P&gt;   too_many_decimals       = 5&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   NO_EXP_FOR_CURR         = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TOO_SHORT               = 7&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;case sy-subrc.&lt;/P&gt;&lt;P&gt;when '4'.&lt;/P&gt;&lt;P&gt;  if grid_str_header-data_type = 'CHAR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IF GRID_STR_HEADER-NO_OF_CHAR &amp;gt; 30.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      grid_str_header-no_of_char = 30.&lt;/P&gt;&lt;P&gt;      message s109(109) with 'MAX OF 30 CHARS ONLY ALLOWED'.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;      grid_str_header-no_of_char = 15.&lt;/P&gt;&lt;P&gt;      message s109(109) with 'MAX OF 15 CHARS ONLY ALLOWED'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when '5'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     MESSAGE W300(301) WITH 'TOO MANY DECIMALS'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       message 'ERROR' type 'E' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one solve this problem.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 11:41:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-e/m-p/1844628#M358556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T11:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Message type 'E'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-e/m-p/1844629#M358557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Check report demo_messages&lt;/P&gt;&lt;P&gt;this is also available from transaction ABAPDOCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Rob dielemans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 13:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-e/m-p/1844629#M358557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T13:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Message type 'E'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-e/m-p/1844630#M358558</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;This should be like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;when '5'.
MESSAGE e300(301) WITH 'TOO MANY DECIMALS'.
endcase.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves ur problem.&lt;/P&gt;&lt;P&gt;Reward points and close thread if this solves else get back with queries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 13:14:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-e/m-p/1844630#M358558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T13:14:43Z</dc:date>
    </item>
  </channel>
</rss>

