<?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: Sending Errors to Application Logging (SLG1) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-errors-to-application-logging-slg1/m-p/3963563#M946791</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank-You but unfortunately we are in 4.6C and I do not see tis Function Group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if you weant to use a log variant for App Logging what can be used. I use to use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If you are running a batch program, be sure to log the variant&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;information.  Do not log the variant if you are not using one.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if not sy-slset is initial.&lt;/P&gt;&lt;P&gt;  move sy-repid to report.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'Z_GNU_LOG_VARIANT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            REPORT               = report&lt;/P&gt;&lt;P&gt;            VARIANT              = SY-SLSET&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            VARIANT_NON_EXISTENT = 1&lt;/P&gt;&lt;P&gt;            VARIANT_OBSOLETE     = 2&lt;/P&gt;&lt;P&gt;            REPORT_NOT_EXISTENT  = 3&lt;/P&gt;&lt;P&gt;            OTHERS               = 4.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Thank-You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2008 13:40:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-23T13:40:59Z</dc:date>
    <item>
      <title>Sending Errors to Application Logging (SLG1)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-errors-to-application-logging-slg1/m-p/3963558#M946786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its been awhile since I used this process to capture interface errors. I remember there were three basic steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)Init App Log&lt;/P&gt;&lt;P&gt;2)Write Errors&lt;/P&gt;&lt;P&gt;3)Close App Log&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Function Mdules I used awhile back ago seem obsolete. Can anyone tell me the basic steps to App Logging? Is there a better way? Anycode would also be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Thank-You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 13:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-errors-to-application-logging-slg1/m-p/3963558#M946786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T13:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Errors to Application Logging (SLG1)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-errors-to-application-logging-slg1/m-p/3963559#M946787</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 try using the data set stattements.&lt;/P&gt;&lt;P&gt;Open data set &lt;/P&gt;&lt;P&gt;transfer dataset and close dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open the file in the application server and transfer the log internal table data to the dataset and finally close the dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u got this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regadrs&lt;/P&gt;&lt;P&gt;Abhilash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 13:27:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-errors-to-application-logging-slg1/m-p/3963559#M946787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T13:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Errors to Application Logging (SLG1)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-errors-to-application-logging-slg1/m-p/3963560#M946788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the Function group CCMSV:&lt;/P&gt;&lt;P&gt;CCMSV_INIT_APPL_LOG - Initialize appl logs&lt;/P&gt;&lt;P&gt;CCMSV_ADD_MSG_ALOG - add messages to app log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******Reward points if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran Bobbala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 13:29:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-errors-to-application-logging-slg1/m-p/3963560#M946788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T13:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Errors to Application Logging (SLG1)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-errors-to-application-logging-slg1/m-p/3963561#M946789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for App Log (SLG1) Development Function Modules to send the errors to the App Log, or sample code....Thank-You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 13:30:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-errors-to-application-logging-slg1/m-p/3963561#M946789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T13:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Errors to Application Logging (SLG1)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-errors-to-application-logging-slg1/m-p/3963562#M946790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See function modules in function group SBAL (for example fm BAL_LOG_CREATE).&lt;/P&gt;&lt;P&gt;There's a quite good documentation for these modules in the system (SE37).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this too:&lt;/P&gt;&lt;P&gt;[http://help.sap.com/saphelp_46c/helpdata/en/2a/fa023d493111d182b70000e829fbfe/frameset.htm]&lt;/P&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 13:39:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-errors-to-application-logging-slg1/m-p/3963562#M946790</guid>
      <dc:creator>Maciej_DomagaBa</dc:creator>
      <dc:date>2008-06-23T13:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Errors to Application Logging (SLG1)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-errors-to-application-logging-slg1/m-p/3963563#M946791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank-You but unfortunately we are in 4.6C and I do not see tis Function Group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if you weant to use a log variant for App Logging what can be used. I use to use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If you are running a batch program, be sure to log the variant&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;information.  Do not log the variant if you are not using one.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if not sy-slset is initial.&lt;/P&gt;&lt;P&gt;  move sy-repid to report.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'Z_GNU_LOG_VARIANT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            REPORT               = report&lt;/P&gt;&lt;P&gt;            VARIANT              = SY-SLSET&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            VARIANT_NON_EXISTENT = 1&lt;/P&gt;&lt;P&gt;            VARIANT_OBSOLETE     = 2&lt;/P&gt;&lt;P&gt;            REPORT_NOT_EXISTENT  = 3&lt;/P&gt;&lt;P&gt;            OTHERS               = 4.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Thank-You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 13:40:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-errors-to-application-logging-slg1/m-p/3963563#M946791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T13:40:59Z</dc:date>
    </item>
  </channel>
</rss>

