<?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 Fetching Message from message class into variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-message-from-message-class-into-variable/m-p/6530284#M1426480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone please tell me that how can i fetch the message from message class?&lt;/P&gt;&lt;P&gt;because i have to take that message in one variable and have to pass it in function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards saurabh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Dec 2009 03:57:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-23T03:57:02Z</dc:date>
    <item>
      <title>Fetching Message from message class into variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-message-from-message-class-into-variable/m-p/6530284#M1426480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone please tell me that how can i fetch the message from message class?&lt;/P&gt;&lt;P&gt;because i have to take that message in one variable and have to pass it in function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards saurabh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 03:57:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-message-from-message-class-into-variable/m-p/6530284#M1426480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-23T03:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching Message from message class into variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-message-from-message-class-into-variable/m-p/6530285#M1426481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this in this way :&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;                INTO mtext&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 04:05:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-message-from-message-class-into-variable/m-p/6530285#M1426481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-23T04:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching Message from message class into variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-message-from-message-class-into-variable/m-p/6530286#M1426482</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;PRE&gt;&lt;CODE&gt;DATA : MESSAGE TYPE STRING.
Select TEXT from t100 into MESSAGE where SPRSL = 'EN' ARBGB = 'YOUR_MESSAGE_CLASS'
msgnr = 'YOUR_MSGNR'
or if you want all the messages to fetch in a single query to avoid performance issue
Select * from t100 into itab where SPRSL = 'EN' ARBGB = 'YOUR_MESSAGE_CLASS'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 04:09:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-message-from-message-class-into-variable/m-p/6530286#M1426482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-23T04:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching Message from message class into variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-message-from-message-class-into-variable/m-p/6530287#M1426483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  After getting the message with the above syntax you can pass the variable into teh function module by declaring a import paramater of type STRING or BALMSGTXTP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 04:14:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-message-from-message-class-into-variable/m-p/6530287#M1426483</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2009-12-23T04:14:27Z</dc:date>
    </item>
  </channel>
</rss>

