<?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 Problem with SLG1 log application in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-slg1-log-application/m-p/2980347#M703680</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some problem with the SAP application log.&lt;/P&gt;&lt;P&gt;I would like to create a log and write message to the log and at last close my log&lt;/P&gt;&lt;P&gt;The problem is when i created log first time messages are written in the log as well. But when I created a new log my messages are written wihin the previous log and no message have been witten within the new log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it necessary to call a commit work after saving message into a log? Or is there a standard function to close the log? For instance I used the function BAL_DB_SAVE to write message in my log and then to close it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your answer.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2007 10:44:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-14T10:44:33Z</dc:date>
    <item>
      <title>Problem with SLG1 log application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-slg1-log-application/m-p/2980347#M703680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some problem with the SAP application log.&lt;/P&gt;&lt;P&gt;I would like to create a log and write message to the log and at last close my log&lt;/P&gt;&lt;P&gt;The problem is when i created log first time messages are written in the log as well. But when I created a new log my messages are written wihin the previous log and no message have been witten within the new log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it necessary to call a commit work after saving message into a log? Or is there a standard function to close the log? For instance I used the function BAL_DB_SAVE to write message in my log and then to close it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your answer.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 10:44:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-slg1-log-application/m-p/2980347#M703680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T10:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SLG1 log application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-slg1-log-application/m-p/2980348#M703681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Philippe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think you need to create new log with different object or different subobject name.&lt;/P&gt;&lt;P&gt;if u create this by same name, the message will be written in the old log only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also check whether you are saving the log when you finish with all your messages.&lt;/P&gt;&lt;P&gt;here is a code to the save the log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If log created, save to database&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if e_bal_hndl is not initial.&lt;/P&gt;&lt;P&gt;    refresh: bal_hndl.&lt;/P&gt;&lt;P&gt;    append e_bal_hndl to bal_hndl.&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_client         = sy-mandt&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       i_in_update_task = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        i_t_log_handle   = bal_hndl&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;        e_new_lognumbers = log_no&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 10:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-slg1-log-application/m-p/2980348#M703681</guid>
      <dc:creator>VikasB</dc:creator>
      <dc:date>2007-11-14T10:54:19Z</dc:date>
    </item>
  </channel>
</rss>

