<?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 Application Log &amp; Backup files in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-backup-files/m-p/882383#M51843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two quaries..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In my program whenever errors occurs i am writing that error message in internal table and the same will be stored in application log.. here my query is how can we write error message in application log... can you explain the functionality of application log... do we need to define any internal table for application log.. please help me in tis regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I am creating four different named files in application server..... the same files will be taken backup in different backup folder.. how can i acheive this ....can anybody gone through this earlier...give me clear solution...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;R Nittala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 May 2005 05:33:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-11T05:33:53Z</dc:date>
    <item>
      <title>Application Log &amp; Backup files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-backup-files/m-p/882383#M51843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two quaries..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In my program whenever errors occurs i am writing that error message in internal table and the same will be stored in application log.. here my query is how can we write error message in application log... can you explain the functionality of application log... do we need to define any internal table for application log.. please help me in tis regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I am creating four different named files in application server..... the same files will be taken backup in different backup folder.. how can i acheive this ....can anybody gone through this earlier...give me clear solution...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;R Nittala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2005 05:33:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-backup-files/m-p/882383#M51843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-11T05:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Application Log &amp; Backup files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-backup-files/m-p/882384#M51844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Application Log functionality can be realized by using the function modules in the function group SBAL. Go To SE80 and look at the Function Modules in this Function Group. They are all very well documented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also go to SE38 and Execute the program SBAL_DOCUMENTATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2005 06:02:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-backup-files/m-p/882384#M51844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-11T06:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Application Log &amp; Backup files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-backup-files/m-p/882385#M51845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;SLG1 is the transaction to view application logs.&lt;/P&gt;&lt;P&gt;To add messages or create a new one, you will need to refer to the Function group SLG0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some FMs are:&lt;/P&gt;&lt;P&gt;Create                                  &lt;/P&gt;&lt;P&gt;APPL_LOG_INIT_MESSAGES         Application Log: (Partially) Initialize log in local memory    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPL_LOG_SET_OBJECT            Appplication log: Set current object and subobject             &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPL_LOG_WRITE_DB              Application log: Copy local memory data into DB tables         &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPL_LOG_WRITE_HEADER          Application log: Enter log header data                         &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPL_LOG_WRITE_MESSAGES        Application log: Enter messages without parameter              &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPL_LOG_WRITE_SINGLE_MESSAGE  Application log: Enter single message without parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this does answer ur question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2005 08:16:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-backup-files/m-p/882385#M51845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-11T08:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Application Log &amp; Backup files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-backup-files/m-p/882386#M51846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Anand &amp;amp; Prasanth...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will go through the given solutions...&lt;/P&gt;&lt;P&gt;can you look at my second query please...I need your help in this regad also&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2005 10:42:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-backup-files/m-p/882386#M51846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-11T10:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Application Log &amp; Backup files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-backup-files/m-p/882387#M51847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;I am afraid there r no standard way to do this.&lt;/P&gt;&lt;P&gt;You might have to write a report to do this. Which ofcourse you can schedule it as a background job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What u cud do is, read the contents fo the file on the application server, and write it to another file and save it. u can have a routine to also generate appropriate names for backup files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S:&lt;/P&gt;&lt;P&gt;If ur Q is solved, kindly reward the answers that helped you solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prashanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2005 13:05:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-backup-files/m-p/882387#M51847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-11T13:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Application Log &amp; Backup files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-backup-files/m-p/882388#M51848</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;&lt;/P&gt;&lt;P&gt;What is an Application Log?&lt;/P&gt;&lt;P&gt;The Application Log is a tool for collecting messages, saving, reading and deleting logs in the database and displaying logs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use of Application Log: &lt;/P&gt;&lt;P&gt;You can analyze the logs and their messages, and get more information about them, in the Display log dialog box. The log display is used in many SAP system applications, and has a slightly different format depending on the number of messages and the data structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Features of Application Log:&lt;/P&gt;&lt;P&gt;In applications with a (potentially) large number of messages, the display is divided into areas. A navigation tree provides an overview and allows navigation among the messages, and either all or a selection of messages are displayed in a list (ABAP List Viewer). The navigation tree can be either above or to the left of the list. Applications with little data have no navigation tree. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function module used to create Application Log&lt;/P&gt;&lt;P&gt;BAL_LOG_CREATE --&amp;gt; Create log with header data&lt;/P&gt;&lt;P&gt;BAL_LOG_MSG_ADD --&amp;gt; Put message in log&lt;/P&gt;&lt;P&gt;BAL_DB_SAVE --&amp;gt; Save logs in the database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction Codes:&lt;/P&gt;&lt;P&gt;SLG0: Creation of Object and Sub object&lt;/P&gt;&lt;P&gt;SLG1: Display Application Logs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step by Step procedure for Creation of Application Log:&lt;/P&gt;&lt;P&gt;Step 1: Open the transaction code SLG0. This transaction code is used to create Object and Sub object.&lt;/P&gt;&lt;P&gt;Step 2: Check for the Object which is already in created and in use by your company/team/project. Else, Create a New Entry starting with Z or Y.&lt;/P&gt;&lt;P&gt;Step 3: After creating (if not exist) the object, select the object and go to its sub-objects.&lt;/P&gt;&lt;P&gt;Step 4: If corresponding sub-objects doesn¡¦t exists, create a sub object.&lt;/P&gt;&lt;P&gt;Step 5: Now the ¡¥Object¡¦ and ¡¥Sub Object¡¦ are used in creation of Application Log.&lt;/P&gt;&lt;P&gt;Step 6: Three function modules are basically used to create the application log&lt;/P&gt;&lt;P&gt;Step 7: 'BAL_LOG_CREATE' &amp;#132;³ this function module creates the log handle&lt;/P&gt;&lt;P&gt;Step 8: 'BAL_LOG_MSG_ADD' &amp;#132;³ this function module is used to populate the messages into the created application log. If we have more than one message to be passed into the same log, then we can loop at the messages and pass them through this function module.&lt;/P&gt;&lt;P&gt;Step 9: 'BAL_DB_SAVE' &amp;#132;³ this function module is used to save the log. The creation of log and addition of messages into the log are performed in the first two function modules mentioned. This function module saves the log so that the user can view the log in SAP.Transaction Code the view the log: SLG1.&lt;/P&gt;&lt;P&gt;SAMPLE CODE&lt;/P&gt;&lt;P&gt;data: ls_log 		TYPE bal_s_log,&lt;/P&gt;&lt;P&gt;      ls_log_handle 	TYPE balloghndl,&lt;/P&gt;&lt;P&gt;      ls_log_handle 	TYPE balloghndl,&lt;/P&gt;&lt;P&gt;      ls_msg 		TYPE bal_s_msg,&lt;/P&gt;&lt;P&gt;      lt_new_lognumbers TYPE bal_t_lgnm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	clear: ls_log, ls_log_handle.&lt;/P&gt;&lt;P&gt;      ls_log-aluser    = sy-uname.&lt;/P&gt;&lt;P&gt;      ls_log-alprog    = sy-repid.&lt;/P&gt;&lt;P&gt;      ls_log-object    = .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAL_LOG_MSG_ADD'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;   	i_log_handle     = ls_log_handle&lt;/P&gt;&lt;P&gt;   	i_s_msg          = ls_msg&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;   	log_not_found    = 1&lt;/P&gt;&lt;P&gt;   	msg_inconsistent = 2&lt;/P&gt;&lt;P&gt;   	log_is_full      = 3&lt;/P&gt;&lt;P&gt;   OTHERS              = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAL_DB_SAVE'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   	i_t_log_handle   = lt_log_handle&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;   	e_new_lognumbers = lt_new_lognumbers&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;   	log_not_found    = 1&lt;/P&gt;&lt;P&gt;  	   	save_not_allowed = 2&lt;/P&gt;&lt;P&gt;   	numbering_error  = 3&lt;/P&gt;&lt;P&gt;   OTHERS              = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to view Application Logs?&lt;/P&gt;&lt;P&gt;1. Choose the transaction SLG1. You go to the Analyze Application Log dialog box. &lt;/P&gt;&lt;P&gt;2. Enter Object, Subobject and Ext. number. &lt;/P&gt;&lt;P&gt;3. Choose a Time restriction. &lt;/P&gt;&lt;P&gt;4. Specify Log caused by. &lt;/P&gt;&lt;P&gt;5. Choose the Log class and Log creation. &lt;/P&gt;&lt;P&gt;6. Choose Execute.&lt;/P&gt;&lt;P&gt;You go to the Display log dialog box.&lt;/P&gt;&lt;P&gt;FURTHER REFERENCES&lt;/P&gt;&lt;P&gt;Help URL: &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/d6/5d7f38f52f923ae10000009b38f8cf/fr" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/d6/5d7f38f52f923ae10000009b38f8cf/fr&lt;/A&gt; ameset.htm &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/EN/d6/5d7f38f52f923ae10000009b38f8cf/" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/EN/d6/5d7f38f52f923ae10000009b38f8cf/&lt;/A&gt; frameset.htm &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if it usefull to u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 04:40:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-backup-files/m-p/882388#M51848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T04:40:43Z</dc:date>
    </item>
  </channel>
</rss>

