<?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: FUNCTION 'MESSAGE_STORE' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-message-store/m-p/3976818#M949826</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 a lot for the quick answers. I found out that i can put it directly in the following parameter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MESSAGE_STORE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    ARBGB                         = 'Z_DOCEX_MM'&lt;/P&gt;&lt;P&gt;   EXCEPTION_IF_NOT_ACTIVE       = ' '&lt;/P&gt;&lt;P&gt;    MSGTY                         = 'E'&lt;/P&gt;&lt;P&gt;    TXTNR                         = '001'&lt;/P&gt;&lt;P&gt;   ZEILE                         = here i put the material.     &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACT_SEVERITY                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAX_SEVERITY                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MESSAGE_TYPE_NOT_VALID        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOT_ACTIVE                    = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                        = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot, points 4 the answers ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mário.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2008 17:56:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-23T17:56:47Z</dc:date>
    <item>
      <title>FUNCTION 'MESSAGE_STORE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-message-store/m-p/3976814#M949822</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'm using this function module, it's working fine :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MESSAGES_INITIALIZE'.&lt;/P&gt;&lt;P&gt;LOOP AT gt_return.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'MESSAGE_STORE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              arbgb                   = gt_return-id&lt;/P&gt;&lt;P&gt;              exception_if_not_active = ' '&lt;/P&gt;&lt;P&gt;              msgty                   = gt_return-type&lt;/P&gt;&lt;P&gt;              msgv1                   = gt_return-message_v1&lt;/P&gt;&lt;P&gt;              msgv2                   = gt_return-message_v2&lt;/P&gt;&lt;P&gt;              msgv3                   = gt_return-message_v3&lt;/P&gt;&lt;P&gt;              msgv4                   = gt_return-message_v4&lt;/P&gt;&lt;P&gt;              txtnr                   = gt_return-number&lt;/P&gt;&lt;P&gt;              zeile                   = ' '&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              message_type_not_valid  = 1&lt;/P&gt;&lt;P&gt;              not_active              = 2&lt;/P&gt;&lt;P&gt;              OTHERS                  = 3.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however, can u please explain me how can i use this FM with the following requirement : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to show the message, but displaying the material number. for example with this instruction it's possíble :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; message e003(Z_DOCEX_MM) with wa_material-matnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i do that using this function module ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mário.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Julius Bussche on Jun 23, 2008 8:34 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 17:31:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-message-store/m-p/3976814#M949822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T17:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION 'MESSAGE_STORE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-message-store/m-p/3976815#M949823</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;Just put the value in the parameters &lt;STRONG&gt;msgv1, msgv2, msgv3 and msgv4&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'MESSAGE_STORE'
EXPORTING
arbgb = Z_DOCEX_MM
msgty = 'E'
msgv1 = wa_material-matnr
txtnr = '003'
zeile = ' '
EXCEPTIONS
message_type_not_valid = 1
not_active = 2
OTHERS = 3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 17:36:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-message-store/m-p/3976815#M949823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T17:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION 'MESSAGE_STORE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-message-store/m-p/3976816#M949824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there.. after the FM call and inside the loop do like this..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;read table gt_return index 1.
if sy-subrc eq 0.
concatenate gt_return-message_v1 matnr into gt_return-message_v1.

"&amp;lt;&amp;lt;do what you want to do with the message..
end if.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 17:36:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-message-store/m-p/3976816#M949824</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-06-23T17:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION 'MESSAGE_STORE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-message-store/m-p/3976817#M949825</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;if i am wrong please correct me.&lt;/P&gt;&lt;P&gt;Is it you want to show the error messages after using this above FM? is that your question? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

If  msgty = 'E' (ie error)
concatenate msgv1 msgv2 msgv3 msgv4 into wa_material-matnr.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally all your error message will be in wa_material-matnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Virkanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Khimavath Vikranth on Jun 23, 2008 7:43 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 17:42:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-message-store/m-p/3976817#M949825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T17:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION 'MESSAGE_STORE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-message-store/m-p/3976818#M949826</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 a lot for the quick answers. I found out that i can put it directly in the following parameter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MESSAGE_STORE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    ARBGB                         = 'Z_DOCEX_MM'&lt;/P&gt;&lt;P&gt;   EXCEPTION_IF_NOT_ACTIVE       = ' '&lt;/P&gt;&lt;P&gt;    MSGTY                         = 'E'&lt;/P&gt;&lt;P&gt;    TXTNR                         = '001'&lt;/P&gt;&lt;P&gt;   ZEILE                         = here i put the material.     &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACT_SEVERITY                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAX_SEVERITY                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MESSAGE_TYPE_NOT_VALID        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOT_ACTIVE                    = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                        = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot, points 4 the answers ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mário.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 17:56:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-message-store/m-p/3976818#M949826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T17:56:47Z</dc:date>
    </item>
  </channel>
</rss>

