<?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: Displaying message from Tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message-from-tables/m-p/6668336#M1447409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&amp;lt;li&amp;gt;You can check message type in the message internal table .
 
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Mar 2010 09:51:11 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2010-03-03T09:51:11Z</dc:date>
    <item>
      <title>Displaying message from Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message-from-tables/m-p/6668331#M1447404</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 have a requirement to display the message from the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is I m maintaining message class, msg type and msg Id in custom table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to code this in Loop and I m getting message class, msg type and msg Id dynamically from the custom  tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards&lt;/P&gt;&lt;P&gt;Uday KIran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 09:35:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message-from-tables/m-p/6668331#M1447404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-03T09:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying message from Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message-from-tables/m-p/6668332#M1447405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi, 
&amp;lt;li&amp;gt;Pass those parameters inside LOOP-ENDLOOP to &lt;STRONG&gt;FORMAT_MESSAGE&lt;/STRONG&gt; . It will give formatted message. 

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 09:39:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message-from-tables/m-p/6668332#M1447405</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2010-03-03T09:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying message from Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message-from-tables/m-p/6668333#M1447406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just use a [MESSAGE|http://help.sap.com/abapdocu_70/en/ABAPMESSAGE.htm] [ID mid TYPE mtype NUMBER num|http://help.sap.com/abapdocu_70/en/ABAPMESSAGE_MSG.htm#!ABAP_ALTERNATIVE_3@3@] [WITH dobj1 ... dobj4|http://help.sap.com/abapdocu_70/en/ABAPMESSAGE_OPTIONS.htm#!ABAP_ADDITION_4@4@] [INTO text|http://help.sap.com/abapdocu_70/en/ABAPMESSAGE_OPTIONS.htm#!ABAP_ADDITION_3@3@] &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MESSAGE ID wa-id TYPE wa-type NUMBER wa-number [WITH wa-field1 ... wa-field4] [INTO wa-text]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 09:43:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message-from-tables/m-p/6668333#M1447406</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-03-03T09:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying message from Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message-from-tables/m-p/6668334#M1447407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m passing message Id and message class which parameter I have to use for message type parameter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 09:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message-from-tables/m-p/6668334#M1447407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-03T09:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying message from Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message-from-tables/m-p/6668335#M1447408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT IT_MSG INTO WA_MSG.

"To display the Message
MESSAGE ID wa_msg-mid TYPE wa_msg-mtype NUMBER wa_msg-num.

"To get the Message Text
MESSAGE ID wa_msg-mid TYPE wa_msg-mtype NUMBER wa_msg-num INTO v_string.

ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do not need to use any FM to get the message text. SAP provides a standard addition MESSAGE ... INTO which does the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Uday: As per your original post you have the Message Type with you in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Raymond: That was cool !!! You had the patience to do that formatting &lt;SPAN __jive_emoticon_name="grin"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Mar 3, 2010 3:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 09:47:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message-from-tables/m-p/6668335#M1447408</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-03-03T09:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying message from Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message-from-tables/m-p/6668336#M1447409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&amp;lt;li&amp;gt;You can check message type in the message internal table .
 
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 09:51:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message-from-tables/m-p/6668336#M1447409</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2010-03-03T09:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying message from Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message-from-tables/m-p/6668337#M1447410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the helpful answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again I have to pass this anywhere or is it enough&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 09:56:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message-from-tables/m-p/6668337#M1447410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-03T09:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying message from Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message-from-tables/m-p/6668338#M1447411</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;Keep in mind that the function module FORMAT_MESSAGE is not released by SAP, it would be much better to follow Raymond's suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Actually, I think Raymond's is the better suggestion even if FORMAT_MESSAGE was released) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 09:59:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message-from-tables/m-p/6668338#M1447411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-03T09:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying message from Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message-from-tables/m-p/6668339#M1447412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Again I have to pass this anywhere or is it enough&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand your question !!!  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use MESSAGE ... INTO &amp;lt;v_text&amp;gt;, the variable V_TEXT will contain the message text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in this case the message type does not effect the behavior of the program. Please read the F1 documentation on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@NIck: Rightly pointed out by you. Who wants to call an FM when a single line can do the job for you &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Mar 3, 2010 3:34 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 10:01:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-message-from-tables/m-p/6668339#M1447412</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-03-03T10:01:39Z</dc:date>
    </item>
  </channel>
</rss>

