<?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 function module bal_log_create in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bal-log-create/m-p/4574637#M1079384</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 am trying to create a log for a condition using the function  module &lt;/P&gt;&lt;P&gt;bal_log_create&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i donot know how to use this fm.&lt;/P&gt;&lt;P&gt;wat are the input and output parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points promised for helpful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Sep 2008 11:03:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-29T11:03:17Z</dc:date>
    <item>
      <title>function module bal_log_create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bal-log-create/m-p/4574637#M1079384</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 am trying to create a log for a condition using the function  module &lt;/P&gt;&lt;P&gt;bal_log_create&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i donot know how to use this fm.&lt;/P&gt;&lt;P&gt;wat are the input and output parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points promised for helpful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 11:03:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bal-log-create/m-p/4574637#M1079384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-29T11:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: function module bal_log_create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bal-log-create/m-p/4574638#M1079385</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;Check thiss:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&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.

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.

==&amp;gt;Note:
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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VIshwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 11:05:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bal-log-create/m-p/4574638#M1079385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-29T11:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: function module bal_log_create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bal-log-create/m-p/4574639#M1079386</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;create itab with msgid, mgno,msgtype,text1,text2,text3,text4 in this case it is t_msg_log&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM f_createlog USING '002' 'E' sy-msgno sy-msgv1&lt;/P&gt;&lt;P&gt;            sy-msgv2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_createlog  USING    p_mesid               &lt;/P&gt;&lt;P&gt;                           p_msgtyp                        &lt;/P&gt;&lt;P&gt;                           p_msgnbr                        &lt;/P&gt;&lt;P&gt;                           p_msgv1                        &lt;/P&gt;&lt;P&gt;                           p_msgv2.                        &lt;/P&gt;&lt;P&gt;  CLEAR: wa_msg_log.&lt;/P&gt;&lt;P&gt;  wa_msg_log-msgid = p_mesid.&lt;/P&gt;&lt;P&gt;  wa_msg_log-msgty = p_msgtyp.&lt;/P&gt;&lt;P&gt;  wa_msg_log-msgno = p_msgnbr.&lt;/P&gt;&lt;P&gt;  wa_msg_log-msg_text_1 =  p_msgv1.&lt;/P&gt;&lt;P&gt;  wa_msg_log-msg_text_2 =  p_msgv2.&lt;/P&gt;&lt;P&gt;  APPEND wa_msg_log TO t_msg_log.&lt;/P&gt;&lt;P&gt;ENDFORM.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u hav to populate these fileds find values in your system&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  l_log_handle TYPE balloghndl,&lt;/P&gt;&lt;P&gt;  l_s_log TYPE bal_s_log,&lt;/P&gt;&lt;P&gt;  l_dummy TYPE string,&lt;/P&gt;&lt;P&gt;  l_ext_no TYPE bal_s_log-extnumber,&lt;/P&gt;&lt;P&gt;  l_s_mdef TYPE bal_s_mdef.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_s_log-object = i_log_object. &lt;/P&gt;&lt;P&gt;    l_s_log-extnumber = i_extnumber.&lt;/P&gt;&lt;P&gt;    l_s_log-subobject = i_subobj.&lt;/P&gt;&lt;P&gt;    l_s_log-alprog = i_prog.&lt;/P&gt;&lt;P&gt;&lt;/P&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                 = l_s_log&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        e_log_handle            = l_log_handle&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        log_header_inconsistent = 1&lt;/P&gt;&lt;P&gt;        OTHERS                  = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just giving outline .Hope it helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rhea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 11:20:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bal-log-create/m-p/4574639#M1079386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-29T11:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: function module bal_log_create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bal-log-create/m-p/4574640#M1079387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thansk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 06:53:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bal-log-create/m-p/4574640#M1079387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T06:53:32Z</dc:date>
    </item>
  </channel>
</rss>

