<?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: How to display error message with some variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491262#M1256607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sonal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the message '000' of your message class ZRFQ does not consist of a place holder.&lt;/P&gt;&lt;P&gt;Please use the transaction SE91 and check for the message 000 for message class ZRFQ. If that message doesn't consist of a place holder; do create one more message with the available number in there.&lt;/P&gt;&lt;P&gt;the message should be like this ... '&amp;lt;whatever message you would like&amp;gt; &amp;amp;1'.&lt;/P&gt;&lt;P&gt;Note down the message number that u've created.&lt;/P&gt;&lt;P&gt;let's assume that is 230.&lt;/P&gt;&lt;P&gt;Then your statement should go like this...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MESSAGE E230(ZFGQ) with wa_ekpo-matnr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you should get the message with the variable value in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2009 10:20:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-14T10:20:55Z</dc:date>
    <item>
      <title>How to display error message with some variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491252#M1256597</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 want to display errror message along with material number which is thr in d LOOP .&lt;/P&gt;&lt;P&gt;Basically i want some variable to display along with error message .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody suggest me how can i go about it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sonal musale on Apr 14, 2009 12:06 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:06:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491252#M1256597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to display error message with some variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491253#M1256598</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;use SE91 create message class, then create one message with 4 &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amitava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:08:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491253#M1256598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to display error message with some variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491254#M1256599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Use the MESSAGE keyword along with 'WITH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check documentation for MESSAGE keyword for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:09:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491254#M1256599</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2009-04-14T10:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to display error message with some variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491255#M1256600</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;As you will create the message with 4 '&amp;amp;'. It means that you can put 4 text elements or wf to be displayed with the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you should display the message as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message e(Message number)(Message class) with (Variable) (Text)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:11:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491255#M1256600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to display error message with some variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491256#M1256601</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;Thanks for ur reply&lt;/P&gt;&lt;P&gt; i have already written this code .&lt;/P&gt;&lt;P&gt;the message is getting displayed but not variable ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u suggest something ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   message e000(zrfq)  with wa_ekpo-matnr  .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:12:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491256#M1256601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to display error message with some variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491257#M1256602</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;Use as below.&lt;/P&gt;&lt;P&gt;      message e001(00) with &amp;lt;material variable&amp;gt; &amp;lt;message Text&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:14:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491257#M1256602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to display error message with some variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491258#M1256603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u need it globally &lt;/P&gt;&lt;P&gt; message class for that or you can directly write the &lt;/P&gt;&lt;P&gt;Message statement in the code with type :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Message msg type 'E' .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds ankit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491258#M1256603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to display error message with some variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491259#M1256604</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;In the message class, suppose  you use &lt;STRONG&gt;001&lt;/STRONG&gt; for &lt;STRONG&gt;invalid material&lt;/STRONG&gt; message.&lt;/P&gt;&lt;P&gt;So keep it like:-&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Invalid Material :&lt;/STRONG&gt; &amp;amp;1&lt;/P&gt;&lt;P&gt;in the message class for 001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in loop use as:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at itab into wa.
  "perform validations
  "if validation fails for current material
  MESSAGE e001 WITH wa-matnr.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similary you can use more variables:-&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Invalid Material :&lt;/STRONG&gt; &amp;amp;1 &amp;amp;2 &amp;amp;3&lt;/P&gt;&lt;P&gt;  MESSAGE e001 WITH &amp;lt;variable1&amp;gt; &amp;lt;variable2&amp;gt; &amp;lt;variable3&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491259#M1256604</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-04-14T10:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to display error message with some variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491260#M1256605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue Resolved &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, 14 Apr 2009 10:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491260#M1256605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to display error message with some variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491261#M1256606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sonal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: lv_message type string.

concatenate 'Material Number'
                   wa_mat-matnr
                   'does not exist'
                   into lv_message.

message e000(oo) with lv_message.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:20:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491261#M1256606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to display error message with some variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491262#M1256607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sonal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the message '000' of your message class ZRFQ does not consist of a place holder.&lt;/P&gt;&lt;P&gt;Please use the transaction SE91 and check for the message 000 for message class ZRFQ. If that message doesn't consist of a place holder; do create one more message with the available number in there.&lt;/P&gt;&lt;P&gt;the message should be like this ... '&amp;lt;whatever message you would like&amp;gt; &amp;amp;1'.&lt;/P&gt;&lt;P&gt;Note down the message number that u've created.&lt;/P&gt;&lt;P&gt;let's assume that is 230.&lt;/P&gt;&lt;P&gt;Then your statement should go like this...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MESSAGE E230(ZFGQ) with wa_ekpo-matnr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you should get the message with the variable value in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:20:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491262#M1256607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to display error message with some variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491263#M1256608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 09:06:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message-with-some-variable/m-p/5491263#M1256608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-07T09:06:41Z</dc:date>
    </item>
  </channel>
</rss>

