<?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: Displaying error messages from application log in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-messages-from-application-log/m-p/3050204#M722139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vartika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to save that log after creating and appending to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is a code to save that 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;P&gt;*********************************************&lt;/P&gt;&lt;P&gt;u have to write this code after appending info to Log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Nov 2007 07:25:05 GMT</pubDate>
    <dc:creator>VikasB</dc:creator>
    <dc:date>2007-11-27T07:25:05Z</dc:date>
    <item>
      <title>Displaying error messages from application log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-messages-from-application-log/m-p/3050203#M722138</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 am using the function module RV_DELIVERY_CREATE for creating delivery in my program. If the sy-subrc is not zero i.e if delivery is not created, i have to display error messages collected inside the application.How can i do this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The object nd subobject are existing in SLG0 but when i&lt;/P&gt;&lt;P&gt;tried to see the object and subobject in SLG1 transaction , no logs were found.&lt;/P&gt;&lt;P&gt;Do we need to activate the object and sunobject somewhere before logging can take place??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following code in my program to display the logs but it is displaying no logs found:  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'APPL_LOG_SET_OBJECT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        object                    = 'ZCH_SCL'&lt;/P&gt;&lt;P&gt;        subobject                 = 'DL'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LOG_HANDLE                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_LOG                    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJECT_NOT_FOUND          = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SUBOBJECT_NOT_FOUND       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                    = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'APPL_LOG_INIT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt; OBJECT                    = 'ZCH_SCL'&lt;/P&gt;&lt;P&gt;   SUBOBJECT                 = 'DL'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LOG_HANDLE                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJECT_NOT_FOUND          = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SUBOBJECT_NOT_FOUND       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                    = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM z_call_rv_delivery_create. " to call fm rv_delivery_create&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'APPL_LOG_DISPLAY_INTERN'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    object                               = 'ZCH_SCL'&lt;/P&gt;&lt;P&gt;   subobject                            = 'DL'&lt;/P&gt;&lt;P&gt;   title_list_screen                    = 'Error Logs'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  COLUMN_SELECTION                     = '11112221122   '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  COLUMN_SELECTION_MSG_JUMP            = '1'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXTERNAL_NUMBER_DISPLAY_LENGTH       = 20&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_S_DISPLAY_PROFILE                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NUMBER_OF_PROTOCOLS                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJECT_NOT_FOUND                     = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SUBOBJECT_NOT_FOUND                  = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                               = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;...................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;vartika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 07:17:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-messages-from-application-log/m-p/3050203#M722138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T07:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying error messages from application log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-messages-from-application-log/m-p/3050204#M722139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vartika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to save that log after creating and appending to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is a code to save that 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;P&gt;*********************************************&lt;/P&gt;&lt;P&gt;u have to write this code after appending info to Log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 07:25:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-messages-from-application-log/m-p/3050204#M722139</guid>
      <dc:creator>VikasB</dc:creator>
      <dc:date>2007-11-27T07:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying error messages from application log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-messages-from-application-log/m-p/3050205#M722140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell the entire process in detail.&lt;/P&gt;&lt;P&gt;i.e which function module is for creating the logs and appending data to it and to the database and how to display the logs through the ABAP code&lt;/P&gt;&lt;P&gt;As the function module i m using prezsently is not writing data to DB nor displaying the logs.i guess i m using wrong function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;vartika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 07:38:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-messages-from-application-log/m-p/3050205#M722140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T07:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying error messages from application log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-messages-from-application-log/m-p/3050206#M722141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gupta , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cann't use BAPI instead of FM ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 07:52:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-messages-from-application-log/m-p/3050206#M722141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T07:52:04Z</dc:date>
    </item>
  </channel>
</rss>

