<?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: Extracting Long text from message class with parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283046#M1388630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ritesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;althought question is already marked as answered, I would like to make an additional remark. In WebDynpro, one should use the message manager for issueing messages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Oct 2009 10:53:55 GMT</pubDate>
    <dc:creator>Sm1tje</dc:creator>
    <dc:date>2009-10-26T10:53:55Z</dc:date>
    <item>
      <title>Extracting Long text from message class with parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283040#M1388624</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 would like to extract the long text from a message class. However, the long text has 4 parameters and I have to retrieve them after they have been replaced by the actual parameters. Is there any Function Module/Class that would help me in doing this operation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Ritesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 13:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283040#M1388624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-22T13:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Long text from message class with parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283041#M1388625</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;&lt;/P&gt;&lt;P&gt;data :  wa_msgtab TYPE   bdcmsgcoll,&lt;/P&gt;&lt;P&gt;            ist_msgtab  TYPE table of bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to capture these message in &lt;STRONG&gt;CALL TRANSACTION&lt;/STRONG&gt; statement of BDC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ist_msgtab into wa_msgtab.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        id        = wa_msgtab-msgid&lt;/P&gt;&lt;P&gt;        lang      = sy-langu&lt;/P&gt;&lt;P&gt;        no        = wa_msgtab-msgnr&lt;/P&gt;&lt;P&gt;        v1        = wa_msgtab-msgv1&lt;/P&gt;&lt;P&gt;        v2        = wa_msgtab-msgv2&lt;/P&gt;&lt;P&gt;        v3        = wa_msgtab-msgv3&lt;/P&gt;&lt;P&gt;        v4        = wa_msgtab-msgv4&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        msg       = g_errmsg&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        not_found = 1&lt;/P&gt;&lt;P&gt;        OTHERS    = 2.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above FM returns all the values required , now you can concatenate all these values into a String and pass them to WebDynpro Component by using &lt;STRONG&gt;SET_ATTRIBUTE&lt;/STRONG&gt; method of &lt;STRONG&gt;WD_CONTEXT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more info go throught the &lt;STRONG&gt;Interface referring to WD_CONTEXT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ramchander Krishnamraju on Oct 26, 2009 5:54 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Oct 2009 06:13:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283041#M1388625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-24T06:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Long text from message class with parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283042#M1388626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;function module FORMAT_MESSAGE should not be used anymore as an ABAP statement exists (since a very long time now):&lt;/P&gt;&lt;P&gt;MESSAGE ... WITH &amp;lt;parameters&amp;gt; &lt;STRONG&gt;INTO variable&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Oct 2009 16:22:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283042#M1388626</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-10-24T16:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Long text from message class with parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283043#M1388627</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 cannot use MESSAGE statement as I have to display the long text within a WebDynPro component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Ritesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 04:50:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283043#M1388627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T04:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Long text from message class with parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283044#M1388628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I reacted to the previous message, which did not answer to your question (note also that MESSAGE ... INTO variable do not send message to dynpro, but store SHORT message text into a variable, so you could use it if you wanted to retrieve the SHORT text).&lt;/P&gt;&lt;P&gt;For the LONG text (your question), search the forum (BAPI_MESSAGE_GETDETAIL, RPY_MESSAGE_COMPOSE, etc.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 10:03:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283044#M1388628</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-10-26T10:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Long text from message class with parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283045#M1388629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 10:44:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283045#M1388629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T10:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Long text from message class with parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283046#M1388630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ritesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;althought question is already marked as answered, I would like to make an additional remark. In WebDynpro, one should use the message manager for issueing messages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 10:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283046#M1388630</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-10-26T10:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Long text from message class with parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283047#M1388631</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;Yes, I do use the message manager. However, I still have to extract the Long text from the message class to use it within the message manager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Ritesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 11:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283047#M1388631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T11:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Long text from message class with parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283048#M1388632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe it's just me, but I don't really understand. There is a method called: &lt;STRONG&gt;REPORT_T100_MESSAGE&lt;/STRONG&gt;. In here you only have to pass the message class, number, type and placeholders and the message will be formatted and issued for you. I guess you are using another method, but not sure why.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 11:41:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283048#M1388632</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-10-26T11:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Long text from message class with parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283049#M1388633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Micky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe T100 is only for the short text and not for the long texts. Please correct me if I am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Ritesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 04:37:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-long-text-from-message-class-with-parameters/m-p/6283049#M1388633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T04:37:30Z</dc:date>
    </item>
  </channel>
</rss>

