<?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: Error Log FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-fm/m-p/1665125#M294495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, please see example program  SBAL_DEMO_01.  It will give you an idea of how to use the function modules which will solve your problem.  Its a little more than what is in ME21N, but I think it will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Nov 2006 22:49:59 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-11-08T22:49:59Z</dc:date>
    <item>
      <title>Error Log FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-fm/m-p/1665123#M294493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does someone knows what's the FM used to display messages in a popup dialog?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example something like the one that uses the TCODE ME21N  would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this FM is tricky a little code sample would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Gilberto Li&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 22:39:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-fm/m-p/1665123#M294493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T22:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error Log FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-fm/m-p/1665124#M294494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can look at FM POPUP_TO_DISPLAY_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 22:48:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-fm/m-p/1665124#M294494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T22:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error Log FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-fm/m-p/1665125#M294495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, please see example program  SBAL_DEMO_01.  It will give you an idea of how to use the function modules which will solve your problem.  Its a little more than what is in ME21N, but I think it will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 22:49:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-fm/m-p/1665125#M294495</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-08T22:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error Log FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-fm/m-p/1665126#M294496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your replies. Really appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich, the example definitevely will solve my problem. Although I was expecting something more simple. I will leave this open see if someone can give me another FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Gilberto Li.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 22:59:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-fm/m-p/1665126#M294496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T22:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error Log FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-fm/m-p/1665127#M294497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Gilberto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering whether you are looking for POPUP_WITH_TABLE_DISPLAY, which is very easy to handle .......to display error logs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sajan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 23:09:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-fm/m-p/1665127#M294497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T23:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error Log FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-fm/m-p/1665128#M294498</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 to use the FM REUSE_ALV_POPUP_TO_SELECT..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this sample code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;        type TYPE icon-id,&lt;/P&gt;&lt;P&gt;        text(50),&lt;/P&gt;&lt;P&gt;      END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t_fieldcatalog TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;DATA: s_fieldcatalog LIKE LINE OF t_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'TYPE'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname   = 'ITAB'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-icon      = 'X'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-seltext_s   = 'Type'.&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO t_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: s_fieldcatalog.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'TEXT'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname   = 'ITAB'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-seltext_s = 'Message'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-outputlen = '50'.&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO t_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-type = '@5C@'.&lt;/P&gt;&lt;P&gt;itab-text = 'This is a Error message'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-type = '@5D@'.&lt;/P&gt;&lt;P&gt;itab-text = 'This is a Warning message'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-type = '@5B@'.&lt;/P&gt;&lt;P&gt;itab-text = 'This is a Success message'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_repid TYPE syrepid.&lt;/P&gt;&lt;P&gt;v_repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          i_title               = 'Test'&lt;/P&gt;&lt;P&gt;          i_screen_start_column = 10&lt;/P&gt;&lt;P&gt;          i_screen_start_line   = 10&lt;/P&gt;&lt;P&gt;          i_screen_end_column   = 70&lt;/P&gt;&lt;P&gt;          i_screen_end_line     = 20&lt;/P&gt;&lt;P&gt;          i_tabname             = 'ITAB'&lt;/P&gt;&lt;P&gt;          it_fieldcat           = t_fieldcatalog&lt;/P&gt;&lt;P&gt;          i_callback_program    = v_repid&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          t_outtab              = itab.&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 23:10:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-fm/m-p/1665128#M294498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T23:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error Log FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-fm/m-p/1665129#M294499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have a look at function group SMSG and the function modules contained in it. eg, MESSAGES_INITIALIZE, MESSAGE_STORE, MESSAGES_SHOW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Neil Woodruff&lt;/P&gt;&lt;P&gt;Thanks Rich. When you've been abapping as long as I have SOME of the stuff you know is bound to be useful sooner or late! (of course a lot of the other stuff is completely useless but that's not the point)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 23:43:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-fm/m-p/1665129#M294499</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-11-08T23:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error Log FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-fm/m-p/1665130#M294500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I appears that Neil has the solution.  It is pretty much like the other log in the example program I suggest above, but it is exactly what you see in ME21n, notice that there is parameter that will force an ALV grid instead of list display, I kind of like the grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

call function 'MESSAGES_INITIALIZE'
     exceptions
          others = 1.



call function 'MESSAGE_STORE'
     exporting
          arbgb                  = 'M3'
          msgty                  = 'E'
          msgv1                  = space
          msgv2                  = space
          msgv3                  = space
          msgv4                  = space
          txtnr                  = '002'
     exceptions
          message_type_not_valid = 1
          not_active             = 2
          others                 = 3.


call function 'MESSAGES_SHOW'
     exporting
          I_USE_GRID         = 'X'  " Comment for list display
          batch_list_type    = 'L'
     exceptions
          inconsistent_range = 1
          no_messages        = 2
          others             = 3.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very nice, Neil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 00:53:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-fm/m-p/1665130#M294500</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-09T00:53:08Z</dc:date>
    </item>
  </channel>
</rss>

