<?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 BDC error  handling in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/9223774#M1717700</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi EXPERTS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in BDC.I have read five files from application server and upload it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using call transaction method.while uploading if there is any error i have record the error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;description along with the file name and record that genrated error and send a mail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to a particular id.I dont know how to create error log details with the file name and record that genrated error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noufal.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Dec 2012 11:03:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-12-20T11:03:43Z</dc:date>
    <item>
      <title>BDC error  handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/9223774#M1717700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi EXPERTS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in BDC.I have read five files from application server and upload it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using call transaction method.while uploading if there is any error i have record the error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;description along with the file name and record that genrated error and send a mail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to a particular id.I dont know how to create error log details with the file name and record that genrated error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noufal.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 11:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/9223774#M1717700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-20T11:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: BDC error  handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/9223775#M1717701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear noufal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the call transaction with message table addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA it_message type table of BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;DATA wa_messafe like line of it_message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'XK01' USING BDCDATA MODE 'N'&lt;/P&gt;&lt;P&gt;MESSAGES INTO it_MESSage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_message into wa_message where msgtyp = 'E'.&lt;/P&gt;&lt;P&gt;"use format_message FM.&lt;/P&gt;&lt;P&gt;append your error table here with the filename as one column and other columns needed&lt;/P&gt;&lt;P&gt;with the message.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use FM &lt;SPAN style="color: #000000; font-size: 11px; background-color: #ffffff;"&gt;'SO_NEW_DOCUMENT_SEND_API1'&lt;/SPAN&gt; to send mail&lt;/P&gt;&lt;P&gt;the FM documentation has a sample code for it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 06:22:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/9223775#M1717701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-21T06:22:52Z</dc:date>
    </item>
  </channel>
</rss>

