<?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: ABAP Application log in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-application-log/m-p/5574930#M1271544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Baran ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As because &lt;STRONG&gt;e_log_handle is a optional parameter&lt;/STRONG&gt; , so no need to worry about it.&lt;/P&gt;&lt;P&gt;Whenever you import this parameter you will get a unique number (LOG  HANDLE) &lt;/P&gt;&lt;P&gt;in that parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 May 2009 13:31:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-13T13:31:59Z</dc:date>
    <item>
      <title>ABAP Application log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-application-log/m-p/5574929#M1271543</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;I have created a sample program for testing ABAP application log. I have used SBAL_DEMO examples as templates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However what I dont understand is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The call for creating the log is:&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAL_LOG_CREATE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which gives you back the parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e_log_handle which is some kind of id for identifying the log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. When do I need to use that parameter? I dont use it and everything is saved properly anyways. Can anyone show me an example where is NECESSARY to use that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. After I create my log with only the statement   CALL FUNCTION 'BAL_LOG_CREATE' and do things like add_message_to_log. How does the system know where to put my text messages although i do not specify the e_log_handle?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Baran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 13:18:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-application-log/m-p/5574929#M1271543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T13:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Application log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-application-log/m-p/5574930#M1271544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Baran ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As because &lt;STRONG&gt;e_log_handle is a optional parameter&lt;/STRONG&gt; , so no need to worry about it.&lt;/P&gt;&lt;P&gt;Whenever you import this parameter you will get a unique number (LOG  HANDLE) &lt;/P&gt;&lt;P&gt;in that parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 13:31:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-application-log/m-p/5574930#M1271544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T13:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Application log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-application-log/m-p/5574931#M1271545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;This unique number will identify the log which you have created by the FM &lt;/P&gt;&lt;P&gt;BAL_LOG_CREATE on that execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you want to change the header data using the FM BAL_LOG_HDR_CHANGE, &lt;/P&gt;&lt;P&gt;then to identify the log you need to know the &lt;STRONG&gt;log handle (e_log_handle )&lt;/STRONG&gt; which you have imported from&lt;/P&gt;&lt;P&gt;the FM BAL_LOG_CREATE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly if you want to add a message using FM  BAL_LOG_MSG_ADD, you need&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;to identify the log by the e_log_handle&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;To add an an exception text to a allready created LOG by  BAL_LOG_EXCEPTION_ADD,&lt;/P&gt;&lt;P&gt;you will require the &lt;STRONG&gt;e_log_handle&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy from the documentation of the function module -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Short Text
Log handle

The function module BAL_LOG_CREATE returns the log handle (LOG_HANDLE, CHAR22).
The LOG_HANDLE is a GUID (globally unique identifier) which uniquely identifies a log. 
You can access this log with this handle, for example, to subsequently change the header 
data ( BAL_LOG_HDR_CHANGE) or to add a message ( BAL_LOG_MSG_ADD) 
or an exception text ( BAL_LOG_EXCEPTION_ADD) to the log.
The LOG_HANDLE has its permanent value straight away, so it remains valid after saving.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 13:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-application-log/m-p/5574931#M1271545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T13:39:32Z</dc:date>
    </item>
  </channel>
</rss>

