<?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: Error log in background processing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-in-background-processing/m-p/3293154#M787997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;           Pass the error records into a separate internal table and append them. once the Background processing was completed then loop on that error internal table and list them in the Basiclist for the identification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Narendra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jan 2008 06:59:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-10T06:59:51Z</dc:date>
    <item>
      <title>Error log in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-in-background-processing/m-p/3293153#M787996</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 need to print an ALV report.The report will be run in background and foreground based on some conditions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is that when the program is running in background mode then the user wants an error log if the updation of some fields has not taken place..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u suggest how that error log can be created?..and where the user can see the log..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Arun Chaudhary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Jan 8, 2009 4:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 06:53:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-in-background-processing/m-p/3293153#M787996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T06:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error log in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-in-background-processing/m-p/3293154#M787997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;           Pass the error records into a separate internal table and append them. once the Background processing was completed then loop on that error internal table and list them in the Basiclist for the identification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Narendra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 06:59:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-in-background-processing/m-p/3293154#M787997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T06:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error log in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-in-background-processing/m-p/3293155#M787998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Declare internal table for errors.&lt;/P&gt;&lt;P&gt;Ex : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : BEGIN OF i_errors OCCURS 0,
            
           Your reuire firlds to display in error log  and
            desc(150), "error description  field
       END OF i_errors.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After processed all the code wirte &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  v_filepath ---This is file path where you want to store your error log&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX  :  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA :v_filepath(80)       VALUE '/data/sapdata/inc/error_log/pme_br/' ,
  v_string  TYPE string. 

*****Clolumn Names for error log

   i_errors-equnr = 'ASSET' .
    i_errors-tplnr = 'MPRN'.
    i_errors-desc  = 'Description'.

    INSERT i_errors INDEX 1.


OPEN DATASET v_filepath FOR OUTPUT IN TEXT MODE.

    IF sy-subrc EQ 0.

 LOOP AT i_errors.

***These are fields of error table 
 CONCATENATE i_errors_-plant c_coma i_errors-zzvendor
                          c_coma  i_errors-post_code1 c_coma 
                          i_errors-outcode c_coma i_errors-district 
    INTO v_string.

        TRANSFER v_string TO v_filepath.


  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to see error log&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to tcode AL11  and go to according to your path.&lt;/P&gt;&lt;P&gt;Path what ever you are ging sholud exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Jan 8, 2009 4:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 07:14:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-in-background-processing/m-p/3293155#M787998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T07:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error log in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-in-background-processing/m-p/3293156#M787999</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;if u r using session method..then automatically u will get the log in SM35,if u r using call transaction then u will get it in BDCMSGCOLL table....Now what u do is create one internal table with error..and fill the values from BDCMSGCOLL and finally use REUSE_ALV_GRID_DISPLAY,and pass the error internal table ,now u will get the error records in the output...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax for call transaction is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL TRANSACTION &amp;lt;tcode&amp;gt; USING i_bdcdata
                   mode 'N' update 'S'
                   MESSAGES INTO BDCMSGCOLL.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 4:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 07:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-in-background-processing/m-p/3293156#M787999</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2008-01-10T07:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error log in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-in-background-processing/m-p/3293157#M788000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 21:23:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-in-background-processing/m-p/3293157#M788000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T21:23:58Z</dc:date>
    </item>
  </channel>
</rss>

