<?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 module for Error list display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-error-list-display/m-p/4656486#M1095608</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;There are standard functions for storing and displaying messages like this, look at the following example code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'MESSAGES_INITIALIZE'.

  loop at it_bapiret2 into ls_msg.
    call function 'MESSAGE_STORE'
      exporting
        arbgb                  = ls_msg-id
        msgty                  = ls_msg-type
        msgv1                  = ls_msg-message_v1
        msgv2                  = ls_msg-message_v2
        msgv3                  = ls_msg-message_v3
        msgv4                  = ls_msg-message_v4
        txtnr                  = ls_msg-number
      exceptions
        message_type_not_valid = 1
        not_active             = 2
        others                 = 3.
  endloop.

  call function 'MESSAGES_STOP'
    exceptions
      a_message = 1
      e_message = 2
      i_message = 3
      w_message = 4
      others    = 5.

  call function 'MESSAGES_SHOW'
    exporting
      show_linno         = ' '
    exceptions
      inconsistent_range = 1
      no_messages        = 2
      others             = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Oct 2008 07:08:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-10T07:08:25Z</dc:date>
    <item>
      <title>Function module for Error list display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-error-list-display/m-p/4656485#M1095607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table for error list , that have two fields 'msgtyp' and 'text'.and this is filled with msgtyp and text .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in my module pool when user clickes the error list button then this table values should be displyed in the popub box .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there should be a function module which will take my internal tab and will display the values in the popup box .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i m not able to find out that which Function Module will work ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me and suggest any solution..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 07:04:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-error-list-display/m-p/4656485#M1095607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T07:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for Error list display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-error-list-display/m-p/4656486#M1095608</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;There are standard functions for storing and displaying messages like this, look at the following example code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'MESSAGES_INITIALIZE'.

  loop at it_bapiret2 into ls_msg.
    call function 'MESSAGE_STORE'
      exporting
        arbgb                  = ls_msg-id
        msgty                  = ls_msg-type
        msgv1                  = ls_msg-message_v1
        msgv2                  = ls_msg-message_v2
        msgv3                  = ls_msg-message_v3
        msgv4                  = ls_msg-message_v4
        txtnr                  = ls_msg-number
      exceptions
        message_type_not_valid = 1
        not_active             = 2
        others                 = 3.
  endloop.

  call function 'MESSAGES_STOP'
    exceptions
      a_message = 1
      e_message = 2
      i_message = 3
      w_message = 4
      others    = 5.

  call function 'MESSAGES_SHOW'
    exporting
      show_linno         = ' '
    exceptions
      inconsistent_range = 1
      no_messages        = 2
      others             = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 07:08:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-error-list-display/m-p/4656486#M1095608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T07:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for Error list display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-error-list-display/m-p/4656487#M1095609</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;try using FM POPUP_WITH_TABLE_DISPLAY&lt;/P&gt;&lt;P&gt;or POPUP_FOR_INFORMATION, POPUP_TO_DISPLAY_VALUE, &lt;/P&gt;&lt;P&gt;POPUP_WITH_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 07:09:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-error-list-display/m-p/4656487#M1095609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T07:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for Error list display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-error-list-display/m-p/4656488#M1095610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for ur reply but these FM are not working &lt;/P&gt;&lt;P&gt;i have to display the error msges like ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;msg typ                               text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E                                        erroneous UOM&lt;/P&gt;&lt;P&gt;E                                        dhshdkh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suggest me if u have any other solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 08:43:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-error-list-display/m-p/4656488#M1095610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T08:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for Error list display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-error-list-display/m-p/4656489#M1095611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swati,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My idea wud be to create a subscreen or dialog module , fetch the relevant data from ur 'z' table wrt msg id &amp;amp; type, and display them in ur subscreen in the form of classical report or ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 09:03:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-error-list-display/m-p/4656489#M1095611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T09:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for Error list display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-error-list-display/m-p/4656490#M1095612</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;The functions I mentioned above will do what you want, paste in the following code to see how they work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report  zmsg_test.

data: begin of itab occurs 10,
        msgty type msgty,
        msg   type msgv1,
      end of itab.

data: gv_msgid type arbgb value 'FR'.

start-of-selection.

  call function 'MESSAGES_INITIALIZE'.

  itab-msgty = 'S'.
  itab-msg = 'Test message Success'.
  append itab.
  itab-msgty = 'E'.
  itab-msg = 'Test message Error'.
  append itab.
  itab-msgty = 'I'.
  itab-msg = 'Test message Info'.
  append itab.

  loop at itab.
    call function 'MESSAGE_STORE'
      exporting
        arbgb                  = gv_msgid
        msgty                  = itab-msgty
        msgv1                  = itab-msg
        txtnr                  = '600'
      exceptions
        message_type_not_valid = 1
        not_active             = 2
        others                 = 3.
  endloop.

  call function 'MESSAGES_STOP'
    exceptions
      a_message = 1
      e_message = 2
      i_message = 3
      w_message = 4
      others    = 5.

  call function 'MESSAGES_SHOW'
    exporting
      show_linno         = ' '
    exceptions
      inconsistent_range = 1
      no_messages        = 2
      others             = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 09:30:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-error-list-display/m-p/4656490#M1095612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T09:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for Error list display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-error-list-display/m-p/4656491#M1095613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we use the FM C_POPUP_WITH_TABLE in backround jobs?&lt;/P&gt;&lt;P&gt;Will it create a spool list which we can see it later?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 09:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-error-list-display/m-p/4656491#M1095613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T09:09:44Z</dc:date>
    </item>
  </channel>
</rss>

