<?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: how to maintain Error logs in the program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-maintain-error-logs-in-the-program/m-p/2186234#M465557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANKS FOR REPLY.&lt;/P&gt;&lt;P&gt;YES I AM GETTING total data from the text file.&lt;/P&gt;&lt;P&gt;now i have to check it with the data base table data.&lt;/P&gt;&lt;P&gt;is it possible with out using fm also?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls guide me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;lokesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2007 05:50:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-26T05:50:46Z</dc:date>
    <item>
      <title>how to maintain Error logs in the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-maintain-error-logs-in-the-program/m-p/2186228#M465551</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 have problem to maintain the error log files in my program.&lt;/P&gt;&lt;P&gt;Actually my requirement is to craete sales orders getting required data from the application server.&lt;/P&gt;&lt;P&gt;1st actually i have to check that coming data(customer no,material number) is exixting in the master data base tables.&lt;/P&gt;&lt;P&gt;if it is there means one message i have to keep in one file.and even that data is not existing in the master data base tables means error messages i have to store in one file.&lt;/P&gt;&lt;P&gt;i dont have idea how can i maintain the error log files in my program?&lt;/P&gt;&lt;P&gt;and how can i sent that file to my user directly when i am executing program.&lt;/P&gt;&lt;P&gt;every message has to sent to user mail id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if any one knows solution pls help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 11:53:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-maintain-error-logs-in-the-program/m-p/2186228#M465551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T11:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to maintain Error logs in the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-maintain-error-logs-in-the-program/m-p/2186229#M465552</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;Coz u are using Application server..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write a select to check if the record is existing in the database..&lt;/P&gt;&lt;P&gt;If sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open dataset for 'FILE1' Appending in text mode encoding default.&lt;/P&gt;&lt;P&gt;Transfer wa to 'FILE1'.&lt;/P&gt;&lt;P&gt;Close dataset 'FILE1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open dataset for 'FILE2' Appending in text mode encoding default.&lt;/P&gt;&lt;P&gt;Transfer wa to 'FILE2'.&lt;/P&gt;&lt;P&gt;Close dataset 'FILE2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EndIf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 11:57:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-maintain-error-logs-in-the-program/m-p/2186229#M465552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T11:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to maintain Error logs in the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-maintain-error-logs-in-the-program/m-p/2186230#M465553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply Santhosh.&lt;/P&gt;&lt;P&gt;Actually i dont have idea how to check the my incoming text file data with database table data.&lt;/P&gt;&lt;P&gt;if u have example code.pls can u send it to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;lokesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 12:03:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-maintain-error-logs-in-the-program/m-p/2186230#M465553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T12:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to maintain Error logs in the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-maintain-error-logs-in-the-program/m-p/2186231#M465554</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 material existance by using the bapi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_MATERIAL_EXISTENCECHECK,]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to check if customer exists use FM CUSTOMER_EXISTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 12:10:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-maintain-error-logs-in-the-program/m-p/2186231#M465554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T12:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to maintain Error logs in the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-maintain-error-logs-in-the-program/m-p/2186232#M465555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you getting the required data in a text file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 12:11:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-maintain-error-logs-in-the-program/m-p/2186232#M465555</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2007-04-25T12:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to maintain Error logs in the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-maintain-error-logs-in-the-program/m-p/2186233#M465556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put the extracted data in an internal table.&lt;/P&gt;&lt;P&gt;loop at that table &lt;/P&gt;&lt;P&gt; read master data with key eequal to customer no and matnr&lt;/P&gt;&lt;P&gt; if record exists &lt;/P&gt;&lt;P&gt; --&amp;gt;append to file&lt;/P&gt;&lt;P&gt; else &lt;/P&gt;&lt;P&gt;--&amp;gt;append to internal table for errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after processing put tha data you got in a text file and send to  client&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 12:15:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-maintain-error-logs-in-the-program/m-p/2186233#M465556</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2007-04-25T12:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to maintain Error logs in the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-maintain-error-logs-in-the-program/m-p/2186234#M465557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANKS FOR REPLY.&lt;/P&gt;&lt;P&gt;YES I AM GETTING total data from the text file.&lt;/P&gt;&lt;P&gt;now i have to check it with the data base table data.&lt;/P&gt;&lt;P&gt;is it possible with out using fm also?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls guide me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;lokesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 05:50:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-maintain-error-logs-in-the-program/m-p/2186234#M465557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T05:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to maintain Error logs in the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-maintain-error-logs-in-the-program/m-p/2186235#M465558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can download the file to an internal table with either one of the following  ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1).&lt;/P&gt;&lt;P&gt; w_filename  TYPE string.&lt;/P&gt;&lt;P&gt;   w_filename = p_file.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        filename                = w_filename&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        data_tab                = wt_file&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        file_open_error         = 1&lt;/P&gt;&lt;P&gt;        file_read_error         = 2&lt;/P&gt;&lt;P&gt;        no_batch                = 3&lt;/P&gt;&lt;P&gt;        gui_refuse_filetransfer = 4&lt;/P&gt;&lt;P&gt;        invalid_type            = 5&lt;/P&gt;&lt;P&gt;        no_authority            = 6&lt;/P&gt;&lt;P&gt;        unknown_error           = 7&lt;/P&gt;&lt;P&gt;        bad_data_format         = 8&lt;/P&gt;&lt;P&gt;        header_not_allowed      = 9&lt;/P&gt;&lt;P&gt;        separator_not_allowed   = 10&lt;/P&gt;&lt;P&gt;        header_too_long         = 11&lt;/P&gt;&lt;P&gt;        unknown_dp_error        = 12&lt;/P&gt;&lt;P&gt;        access_denied           = 13&lt;/P&gt;&lt;P&gt;        dp_out_of_memory        = 14&lt;/P&gt;&lt;P&gt;        disk_full               = 15&lt;/P&gt;&lt;P&gt;        dp_timeout              = 16&lt;/P&gt;&lt;P&gt;        OTHERS                  = 17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2).&lt;/P&gt;&lt;P&gt;    w_name(60) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'FILE_GET_NAME'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        logical_filename = w_name&lt;/P&gt;&lt;P&gt;        parameter_1      = w_numlot1&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        file_name        = w_filenme2&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        file_not_found   = 1&lt;/P&gt;&lt;P&gt;        OTHERS           = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    OPEN DATASET w_filenme2 FOR input IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;append error message&amp;lt;----&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      do.&lt;/P&gt;&lt;P&gt;      READ DATASET w_filenme2 INTO ws_file.&lt;/P&gt;&lt;P&gt;      IF sy-SUBRC = 0.&lt;/P&gt;&lt;P&gt;        APPEND ws_file TO wt_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        exit.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      enddo.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    CLOSE DATASET .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you loop at that table &lt;/P&gt;&lt;P&gt;  read from master table with key kunnr and matnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if su-subrc ne 0 --&amp;gt; append error table&lt;/P&gt;&lt;P&gt;else do processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you!&lt;/P&gt;&lt;P&gt;Regards ,&lt;/P&gt;&lt;P&gt;Sooness&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 06:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-maintain-error-logs-in-the-program/m-p/2186235#M465558</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2007-04-26T06:23:48Z</dc:date>
    </item>
  </channel>
</rss>

