<?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 error msg in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-msg/m-p/1588453#M265063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;This is more or less like a follow up to my previous post.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2432055"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I was told that I can store the msg as text like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MESSAGE ID '5r' TYPE 'e' NUMBER '125' INTO err_msg.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;however, in the case of e125(5r), the error is &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   Error in write target file &amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;where after the &amp;amp; is supposed to be the file name.&lt;/P&gt;&lt;P&gt;My question is:&lt;/P&gt;&lt;P&gt;How can I pass in the file name to the code above so that the entire error msg and the file name would be stored in err_msg. Should I use a "with"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&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;Anyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Sep 2006 17:45:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-21T17:45:35Z</dc:date>
    <item>
      <title>error msg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-msg/m-p/1588453#M265063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;This is more or less like a follow up to my previous post.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2432055"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I was told that I can store the msg as text like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MESSAGE ID '5r' TYPE 'e' NUMBER '125' INTO err_msg.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;however, in the case of e125(5r), the error is &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   Error in write target file &amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;where after the &amp;amp; is supposed to be the file name.&lt;/P&gt;&lt;P&gt;My question is:&lt;/P&gt;&lt;P&gt;How can I pass in the file name to the code above so that the entire error msg and the file name would be stored in err_msg. Should I use a "with"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&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;Anyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 17:45:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-msg/m-p/1588453#M265063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T17:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: error msg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-msg/m-p/1588454#M265064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must use the WITH extenstion.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MESSAGE ID '5r' TYPE 'e' NUMBER '125' &amp;lt;b&amp;gt;WITH &amp;lt;filename&amp;gt;&amp;lt;/b&amp;gt;
INTO err_msg.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;filename&amp;gt; can be a literal or a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 17:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-msg/m-p/1588454#M265064</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-21T17:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: error msg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-msg/m-p/1588455#M265065</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;MESSAGE ID '5r' TYPE 'e' NUMBER '125' INTO err_msg.&lt;/P&gt;&lt;P&gt;Replace '&amp;amp;' with &amp;lt;filename&amp;gt; into err_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID '5r' TYPE 'e' NUMBER '125' WITH &amp;lt;filename&amp;gt; INTO err_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 17:48:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-msg/m-p/1588455#M265065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T17:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: error msg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-msg/m-p/1588456#M265066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anyi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE statement with WITH clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;        WITH V_FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case this will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MESSAGE ID '5r' TYPE 'e' NUMBER '125' WITH V_FILENAME INTO err_msg.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your messages You need to use &amp;amp; to replace with the content of V_FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message should be like this in your messages window.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;E125  &amp;amp;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for MESSAGE statement.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/message.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/message.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 17:50:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-msg/m-p/1588456#M265066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T17:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: error msg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-msg/m-p/1588457#M265067</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;You need write like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID '5r' TYPE 'E' NUMBER '125' WITH &amp;lt;File name&amp;gt; INTO err_msg. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 17:53:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-msg/m-p/1588457#M265067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T17:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: error msg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-msg/m-p/1588458#M265068</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;You can try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID '5r' TYPE 'e' NUMBER '125' WITH &amp;lt;filename&amp;gt; INTO err_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 17:59:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-msg/m-p/1588458#M265068</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-09-21T17:59:08Z</dc:date>
    </item>
  </channel>
</rss>

