<?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: Using the MESSAGE statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-message-statement/m-p/4177660#M998626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;When you use this addition, the icon of the message type specified in dtype is displayed instead of the associated icon. A character-type data object is expected for dtype. This data object has to contain one of the values "A", "E", "I", "S" or "W" in upper-case letters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message short text is still displayed as a dialog window for messages that are displayed this way by default. Messages with the type "E" or "W" (except those for PBO and LOAD-OF-PROGRAM) are displayed as a dialog window if dtype contains "A" or "I". Messages with the type "S" are always displayed in the status bar, independently of dtype. The latter also applies to messages of the type "I" for PBO and LOAD-OF-PROGRAM. Messages of the type "X" always cause a runtime error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE text-m02 TYPE 'X' DISPLAY LIKE 'E'.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above statement lead to Dump, as per the SAP documentation. So change your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jul 2008 19:40:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-22T19:40:59Z</dc:date>
    <item>
      <title>Using the MESSAGE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-message-statement/m-p/4177658#M998624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a program that will, among other things, process inbound files.  If the filename specified does not exist I thought I would use the MESSAGE command to generate a runtime error using a parameterized Text Symbol which would have the name of the errant file; something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text-m02 = "File &amp;amp;1 Not Found'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE text-m02 TYPE 'X' DISPLAY LIKE 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I add the "WITH dobj" (where dobj is a string var w/ the name of the file) it won't compile saying that the "WITH dobj" statement is unexpected (regardless of where I put it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that got me thinking - is this the best approach?  This program will be ran and the selection screen saved as a variant for each input file but it is entirely possible the file may not be around when this program fires off so I have to account for that possibility, along with processing errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a recommended or "best" practice for handling errors in applications that will be ran in batch?  If so, what are they?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 15:27:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-message-statement/m-p/4177658#M998624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T15:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using the MESSAGE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-message-statement/m-p/4177659#M998625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'File' v_filename 'Not found' INTO msg SEPARATED BY space.&lt;/P&gt;&lt;P&gt; MESSAGE msg TYPE 'E' DISPLAY LIKE 'E' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;Create your message class in SE93/ or use existing appropriate message class and use below syntax&lt;/P&gt;&lt;P&gt;message e001(zmsg) with FILENAME&lt;/P&gt;&lt;P&gt;where 001 = u201CFile &amp;amp; Not Foundu201D defined in SE93 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using message in batch processing program does not raise any problem. All message will be logged for batch job and can be used result, status, problem investigation etcu2026&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nisarg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 19:23:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-message-statement/m-p/4177659#M998625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T19:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using the MESSAGE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-message-statement/m-p/4177660#M998626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;When you use this addition, the icon of the message type specified in dtype is displayed instead of the associated icon. A character-type data object is expected for dtype. This data object has to contain one of the values "A", "E", "I", "S" or "W" in upper-case letters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message short text is still displayed as a dialog window for messages that are displayed this way by default. Messages with the type "E" or "W" (except those for PBO and LOAD-OF-PROGRAM) are displayed as a dialog window if dtype contains "A" or "I". Messages with the type "S" are always displayed in the status bar, independently of dtype. The latter also applies to messages of the type "I" for PBO and LOAD-OF-PROGRAM. Messages of the type "X" always cause a runtime error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE text-m02 TYPE 'X' DISPLAY LIKE 'E'.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above statement lead to Dump, as per the SAP documentation. So change your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 19:40:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-message-statement/m-p/4177660#M998626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T19:40:59Z</dc:date>
    </item>
  </channel>
</rss>

