<?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 get Short Message from MSGID and MSG. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-short-message-from-msgid-and-msg/m-p/5072876#M1178476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use the FM FORMAT_MESSAGE for this purpose. In the put you pass MSGID &amp;amp; MSGNO and in return you get short text in the IMPORTING param MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further inputs search in SDN.&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 Jan 29, 2009 1:57 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jan 2009 08:27:34 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2009-01-29T08:27:34Z</dc:date>
    <item>
      <title>How to get Short Message from MSGID and MSG.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-short-message-from-msgid-and-msg/m-p/5072875#M1178475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In my program, I am using BDC. All the messages generated during BDC are stored in the MESS_INFO which is of the structure BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;During any error or warnings in the process of BDC execution, I am getting the MSGID and MSG but i want to get the exact short message corresponding to that MSG.&lt;/P&gt;&lt;P&gt;Please help in how to get the 'Short Message' corresponding to the MSGID and MSG. Is there any Function Module, using which i can get the Short Message by passing MSGID and MSG.&lt;/P&gt;&lt;P&gt;Ex: MSGID = PO&lt;/P&gt;&lt;P&gt;      MSG    = 378.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2009 08:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-short-message-from-msgid-and-msg/m-p/5072875#M1178475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-29T08:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Short Message from MSGID and MSG.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-short-message-from-msgid-and-msg/m-p/5072876#M1178476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use the FM FORMAT_MESSAGE for this purpose. In the put you pass MSGID &amp;amp; MSGNO and in return you get short text in the IMPORTING param MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further inputs search in SDN.&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 Jan 29, 2009 1:57 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2009 08:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-short-message-from-msgid-and-msg/m-p/5072876#M1178476</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-01-29T08:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Short Message from MSGID and MSG.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-short-message-from-msgid-and-msg/m-p/5072877#M1178477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Messages are stored in table T100, you can get the short text from there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2009 08:28:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-short-message-from-msgid-and-msg/m-p/5072877#M1178477</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2009-01-29T08:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Short Message from MSGID and MSG.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-short-message-from-msgid-and-msg/m-p/5072878#M1178478</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;check out this documentation&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/dd/4da23fa34ffb47e10000000a114084/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/dd/4da23fa34ffb47e10000000a114084/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Aakash Banga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2009 08:29:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-short-message-from-msgid-and-msg/m-p/5072878#M1178478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-29T08:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Short Message from MSGID and MSG.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-short-message-from-msgid-and-msg/m-p/5072879#M1178479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use function MESSAGE_PREPARE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2009 08:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-short-message-from-msgid-and-msg/m-p/5072879#M1178479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-29T08:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Short Message from MSGID and MSG.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-short-message-from-msgid-and-msg/m-p/5072880#M1178480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM 'MESSAGE_PREPARE' to retrieve the message text using MSGID and MSGNO&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;DATA: lv_msg_id   LIKE t100-arbgb,                   " Message Id&lt;/P&gt;&lt;P&gt;        lv_msg_no   LIKE t100-msgnr,                   " Message No&lt;/P&gt;&lt;P&gt;        lv_msg_var1 LIKE balm-msgv1,                   " Message Var1&lt;/P&gt;&lt;P&gt;        lv_msg_var2 LIKE balm-msgv2,                   " Message Var2&lt;/P&gt;&lt;P&gt;        lv_msg_var3 LIKE balm-msgv3,                   " Message Var3&lt;/P&gt;&lt;P&gt;        lv_msg_var4 LIKE balm-msgv4.                   " Message Var4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'MESSAGE_PREPARE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        language               = sy-langu&lt;/P&gt;&lt;P&gt;        msg_id                 = lv_msg_id&lt;/P&gt;&lt;P&gt;        msg_no                 = lv_msg_no&lt;/P&gt;&lt;P&gt;        msg_var1               = lv_msg_var1&lt;/P&gt;&lt;P&gt;        msg_var2               = lv_msg_var2&lt;/P&gt;&lt;P&gt;        msg_var3               = lv_msg_var3&lt;/P&gt;&lt;P&gt;        msg_var4               = lv_msg_var4&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        msg_text               = lv_msg&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        function_not_completed = 1&lt;/P&gt;&lt;P&gt;        message_not_found      = 2&lt;/P&gt;&lt;P&gt;        OTHERS                 = 3.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE i995 WITH text-002.                   " Unable to prepare message&lt;/P&gt;&lt;P&gt;LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2009 08:52:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-short-message-from-msgid-and-msg/m-p/5072880#M1178480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-29T08:52:35Z</dc:date>
    </item>
  </channel>
</rss>

