<?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 MESSAGE_STORE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-store/m-p/1543992#M247608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;i have the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa_itab.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI...'&lt;/P&gt;&lt;P&gt;LOOP AT i_return.&lt;/P&gt;&lt;P&gt;g_counter = g_counter + 1.&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'MESSAGE_STORE'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;    arbgb                   = i_return2-id&lt;/P&gt;&lt;P&gt;    exception_if_not_active = ' '&lt;/P&gt;&lt;P&gt;    msgty                   = i_return2-type&lt;/P&gt;&lt;P&gt;    msgv1                   = i_return2-message_v1&lt;/P&gt;&lt;P&gt;    msgv2                   = i_return2-message_v2&lt;/P&gt;&lt;P&gt;    msgv3                   = i_return2-message_v3&lt;/P&gt;&lt;P&gt;    msgv4                   = i_return2-message_v4&lt;/P&gt;&lt;P&gt;    txtnr                   = i_return2-number&lt;/P&gt;&lt;P&gt;    zeile                   = &amp;lt;b&amp;gt;g_counter&amp;lt;/b&amp;gt;&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;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what do i have to do in order to control the &amp;lt;u&amp;gt;number of the message displayed&amp;lt;/u&amp;gt; (&amp;lt;b&amp;gt;g_counter&amp;lt;/b&amp;gt;) in the popup (MESSAGES_SHOW)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Sep 2006 13:21:29 GMT</pubDate>
    <dc:creator>former_member182371</dc:creator>
    <dc:date>2006-09-07T13:21:29Z</dc:date>
    <item>
      <title>MESSAGE_STORE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-store/m-p/1543992#M247608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;i have the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa_itab.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI...'&lt;/P&gt;&lt;P&gt;LOOP AT i_return.&lt;/P&gt;&lt;P&gt;g_counter = g_counter + 1.&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'MESSAGE_STORE'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;    arbgb                   = i_return2-id&lt;/P&gt;&lt;P&gt;    exception_if_not_active = ' '&lt;/P&gt;&lt;P&gt;    msgty                   = i_return2-type&lt;/P&gt;&lt;P&gt;    msgv1                   = i_return2-message_v1&lt;/P&gt;&lt;P&gt;    msgv2                   = i_return2-message_v2&lt;/P&gt;&lt;P&gt;    msgv3                   = i_return2-message_v3&lt;/P&gt;&lt;P&gt;    msgv4                   = i_return2-message_v4&lt;/P&gt;&lt;P&gt;    txtnr                   = i_return2-number&lt;/P&gt;&lt;P&gt;    zeile                   = &amp;lt;b&amp;gt;g_counter&amp;lt;/b&amp;gt;&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;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what do i have to do in order to control the &amp;lt;u&amp;gt;number of the message displayed&amp;lt;/u&amp;gt; (&amp;lt;b&amp;gt;g_counter&amp;lt;/b&amp;gt;) in the popup (MESSAGES_SHOW)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 13:21:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-store/m-p/1543992#M247608</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2006-09-07T13:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: MESSAGE_STORE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-store/m-p/1543993#M247609</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;give this code just above g_counter = g_counter + 1..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if g_counter = 5.&lt;/P&gt;&lt;P&gt;clear g_counter.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 13:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-store/m-p/1543993#M247609</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-09-07T13:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: MESSAGE_STORE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-store/m-p/1543994#M247610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    you can control messages displayed&lt;/P&gt;&lt;P&gt;    in following way.&lt;/P&gt;&lt;P&gt;  Assume you ant to display only 2 messages &lt;/P&gt;&lt;P&gt;  of BAPI return FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;    LOOP AT itab INTO wa_itab.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI...'&lt;/P&gt;&lt;P&gt;LOOP AT i_return.&lt;/P&gt;&lt;P&gt;g_counter = g_counter + 1.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MESSAGE_STORE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;arbgb = i_return2-id&lt;/P&gt;&lt;P&gt;exception_if_not_active = ' '&lt;/P&gt;&lt;P&gt;msgty = i_return2-type&lt;/P&gt;&lt;P&gt;msgv1 = i_return2-message_v1&lt;/P&gt;&lt;P&gt;msgv2 = i_return2-message_v2&lt;/P&gt;&lt;P&gt;msgv3 = i_return2-message_v3&lt;/P&gt;&lt;P&gt;msgv4 = i_return2-message_v4&lt;/P&gt;&lt;P&gt;txtnr = i_return2-number&lt;/P&gt;&lt;P&gt;zeile = g_counter&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;  &amp;lt;b&amp;gt;if g_counter LE 2.&lt;/P&gt;&lt;P&gt;    call FM 'MESSAGE_SHOW'.&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;  endif. &lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;ENDLOOP.&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;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 13:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-store/m-p/1543994#M247610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T13:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: MESSAGE_STORE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-store/m-p/1543995#M247611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;my problem is that while processing the BAPI, the second time the loop is done it clears table i_return (which is the internal table that keeps all messages of the bapi run).&lt;/P&gt;&lt;P&gt;That is, if the BAPI is processed twice, what do i have to to in order to save the messages ob both executions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve tried to move the results to another internal table (i_return2) but when i display the results the numbers of the messages are not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose i get two messages after the execution of the bapi. They have numbers 1 and 2. Then i move them from&lt;/P&gt;&lt;P&gt;i_return to i_return2 and when i display them with fm 'MESSAGESS_SHOW' they appear with numbers 3 and 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is this happenning?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 05:52:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-store/m-p/1543995#M247611</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2006-09-08T05:52:34Z</dc:date>
    </item>
  </channel>
</rss>

