<?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: Question on BAL_LOG_CREATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-bal-log-create/m-p/2956557#M697458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It opens the application log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SAP documentation&amp;lt;/b&amp;gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module BAL_LOG_CREATE opens the Application Log whose header data is in the Importing parameter I_S_LOG_HEADER, which has the structure BAL_S_LOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module BAL_LOG_CREATE returns the log handle (LOG_HANDLE, CHAR22).&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;The LOG_HANDLE has its permanent value straight away, so it remains valid after saving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt;Note:&lt;/P&gt;&lt;P&gt;Logs in memory and in the database are referred to in the new Application Log by the log handle (LOG_HANDLE), but the previous LOGNUMBER, which is assigned from number range interval 01 of number range object APPL_LOG when you save, still exists. A lot of applications have a reference to this LOGNUMBER in their structures, so it is still supported. The LOGNUMBER is also more understandable for users than the LOG_HANDLE. There is a 1:1 relationship between LOG_HANDLE and LOGNUMBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aneesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2007 12:07:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-16T12:07:54Z</dc:date>
    <item>
      <title>Question on BAL_LOG_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-bal-log-create/m-p/2956556#M697457</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;  I want to know what does this function module do. Does this create an application log or open an application log that is already.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 12:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-bal-log-create/m-p/2956556#M697457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T12:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Question on BAL_LOG_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-bal-log-create/m-p/2956557#M697458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It opens the application log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SAP documentation&amp;lt;/b&amp;gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module BAL_LOG_CREATE opens the Application Log whose header data is in the Importing parameter I_S_LOG_HEADER, which has the structure BAL_S_LOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module BAL_LOG_CREATE returns the log handle (LOG_HANDLE, CHAR22).&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;The LOG_HANDLE has its permanent value straight away, so it remains valid after saving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt;Note:&lt;/P&gt;&lt;P&gt;Logs in memory and in the database are referred to in the new Application Log by the log handle (LOG_HANDLE), but the previous LOGNUMBER, which is assigned from number range interval 01 of number range object APPL_LOG when you save, still exists. A lot of applications have a reference to this LOGNUMBER in their structures, so it is still supported. The LOGNUMBER is also more understandable for users than the LOG_HANDLE. There is a 1:1 relationship between LOG_HANDLE and LOGNUMBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aneesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 12:07:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-bal-log-create/m-p/2956557#M697458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T12:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Question on BAL_LOG_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-bal-log-create/m-p/2956558#M697459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Application Log: Log: Create with Header Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ctionality&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The function module BAL_LOG_CREATE opens the Application Log whose&lt;/P&gt;&lt;P&gt; header data is in the Importing parameter I_S_LOG_HEADER, which has the&lt;/P&gt;&lt;P&gt; structure BAL_S_LOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The function module BAL_LOG_CREATE returns the log handle (LOG_HANDLE,&lt;/P&gt;&lt;P&gt; CHAR22).&lt;/P&gt;&lt;P&gt; The LOG_HANDLE is a GUID (globally unique identifier) which uniquely&lt;/P&gt;&lt;P&gt; identifies a log. You can access this log with this handle, for example,&lt;/P&gt;&lt;P&gt; to subsequently change the header data ( BAL_LOG_HDR_CHANGE) or to add a&lt;/P&gt;&lt;P&gt; message (BAL_LOG_MSG_ADD) or an exception text (BAL_LOG_EXCEPTION_ADD)&lt;/P&gt;&lt;P&gt; to the log.&lt;/P&gt;&lt;P&gt; The LOG_HANDLE has its permanent value straight away, so it remains&lt;/P&gt;&lt;P&gt; valid after saving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ==&amp;gt;Note:&lt;/P&gt;&lt;P&gt; Logs in memory and in the database are referred to in the new&lt;/P&gt;&lt;P&gt; Application Log by the log handle (LOG_HANDLE), but the previous&lt;/P&gt;&lt;P&gt; LOGNUMBER, which is assigned from number range interval 01 of number&lt;/P&gt;&lt;P&gt; range object APPL_LOG when you save, still exists. A lot of applications&lt;/P&gt;&lt;P&gt; have a reference to this LOGNUMBER in their structures, so it is still&lt;/P&gt;&lt;P&gt; supported. The LOGNUMBER is also more understandable for users than the&lt;/P&gt;&lt;P&gt; LOG_HANDLE. There is a 1:1 relationship between LOG_HANDLE and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Related function modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Simple log creation call&lt;/P&gt;&lt;P&gt;     Methods of collecting messages&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   BAL_DSP_LOG_DISPLAY displays the collected messages. It can be called&lt;/P&gt;&lt;P&gt;   without parameters, in which case all messages in memory are displayed&lt;/P&gt;&lt;P&gt;   in a standard format (this standard format is also used in the&lt;/P&gt;&lt;P&gt;   transaction SLG1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ==&amp;gt;Note&lt;/P&gt;&lt;P&gt;   The log handle is optional for function modules such as BAL_LOG_MSG_ADD,&lt;/P&gt;&lt;P&gt;   BAL_LOG_MSG_CUMULATE, BAL_LOG_MSG_ADD_FREE_TEXT, etc.&lt;/P&gt;&lt;P&gt;   If it is not specified, the default log, which can be set, with other&lt;/P&gt;&lt;P&gt;   default data, with BAL_GLB_MSG_DEFAULTS_SET is used. If no default log&lt;/P&gt;&lt;P&gt;   is defined, it is set automatically by BAL_LOG_CREATE (see here).&lt;/P&gt;&lt;P&gt; The 'Application Log' is a tool for collecting messages, saving, reading&lt;/P&gt;&lt;P&gt; and deleting logs in the database, and displaying logs. It is introduced&lt;/P&gt;&lt;P&gt; and described in the following documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 12:11:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-bal-log-create/m-p/2956558#M697459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T12:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Question on BAL_LOG_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-bal-log-create/m-p/2956559#M697460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION 'BAL_LOG_CREATE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            i_s_log      = ls_log&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            e_log_handle = pc_log_handle&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS       = 1.&lt;/P&gt;&lt;P&gt;&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;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE s000(/bmw/gis_tp_par01) WITH 'Log Created' pc_log_handle&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    msgtype = 'S'.&lt;/P&gt;&lt;P&gt;    msgno = '000'.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'Log Created' pc_log_handle INTO l_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM log_add_msg USING pc_log_handle msgtype msgno l_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this FM create Application log with log handle as key ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM log_add_msg USING  pu_log_handle TYPE balloghndl&lt;/P&gt;&lt;P&gt;                        msgtype TYPE char1&lt;/P&gt;&lt;P&gt;                        msgno LIKE sy-msgno&lt;/P&gt;&lt;P&gt;                        l_msg TYPE char100  .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add Message to Application Log&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    ls_msg TYPE bal_s_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CHECK: NOT pus_msg-type IS INITIAL.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_msg-msgty = msgtype.&lt;/P&gt;&lt;P&gt;  ls_msg-msgid = '/BMW/GIS_TP_PAR01'.&lt;/P&gt;&lt;P&gt;  ls_msg-msgno = msgno.&lt;/P&gt;&lt;P&gt;  ls_msg-msgv1 = l_msg.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ls_msg-msgv2 = pus_msg-message_v2.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ls_msg-msgv3 = pus_msg-message_v3.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ls_msg-msgv4 = pus_msg-message_v4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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  = pu_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 = 0&lt;/P&gt;&lt;P&gt;            OTHERS        = 1.&lt;/P&gt;&lt;P&gt;&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ELSE.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE s000(/bmw/gis_tp_par01) WITH 'Message added to log'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; pc_log_handle.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 12:16:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-bal-log-create/m-p/2956559#M697460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T12:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Question on BAL_LOG_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-bal-log-create/m-p/2956560#M697461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I would like to know one more doubt. do I ned to call this function all the time before adding the message? If you can give me some more details regarding the usage, that would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sham.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 14:24:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-bal-log-create/m-p/2956560#M697461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T14:24:13Z</dc:date>
    </item>
  </channel>
</rss>

