<?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: Doubt regrading Bath Input File in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regrading-bath-input-file/m-p/2205568#M471673</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;  In Sesssion method, u no need to worry about the error records in the input file SM35 will take care of it,so u have to run the BDC by Call Transaction Only to display the errors in the output at SE38 level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Declare an internal table of the same structure as ur input file to capture Error records (eg.IT_ERROR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Call transaction, when the Sy-Subrc is NE 0 mean the record is an Error record, so simply append that record to IT_ERROR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at last u display IT_ERROR data as error records, better if u maintain the index of the record also which give more accurate error record in the input file,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 May 2007 20:04:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-01T20:04:33Z</dc:date>
    <item>
      <title>Doubt regrading Bath Input File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regrading-bath-input-file/m-p/2205566#M471671</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 have requirement something like that:&lt;/P&gt;&lt;P&gt; -Select of releavant Items&lt;/P&gt;&lt;P&gt; -Process MB04 on the selected items&lt;/P&gt;&lt;P&gt; -Collect errorneous records in batch input file&lt;/P&gt;&lt;P&gt; -Display  results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please let me know that &amp;lt;i&amp;gt;Collect errorneous records &amp;lt;b&amp;gt;in batch input file&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;I don't understand &amp;lt;b&amp;gt;what is batch input file&amp;lt;/b&amp;gt; and how here I ensure that I have to do Call transaction or Session method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; As per my understanding I should do &amp;lt;b&amp;gt;Call transaction MB04&amp;lt;/b&amp;gt; to post the data and if there is error record &amp;lt;b&amp;gt;create the session&amp;lt;/b&amp;gt; and do the&amp;lt;b&amp;gt; bdc_Insert&amp;lt;/b&amp;gt; so all error records will be stored in the session.But i not sure about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;PK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 05:33:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regrading-bath-input-file/m-p/2205566#M471671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T05:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt regrading Bath Input File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regrading-bath-input-file/m-p/2205567#M471672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      As per your requirement you need to run call transaction on MB04 for the selected fields and save the error records in a message table using BDCMSGCOLL and display those records as output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  Jayaram..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 15:57:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regrading-bath-input-file/m-p/2205567#M471672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T15:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt regrading Bath Input File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regrading-bath-input-file/m-p/2205568#M471673</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;  In Sesssion method, u no need to worry about the error records in the input file SM35 will take care of it,so u have to run the BDC by Call Transaction Only to display the errors in the output at SE38 level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Declare an internal table of the same structure as ur input file to capture Error records (eg.IT_ERROR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Call transaction, when the Sy-Subrc is NE 0 mean the record is an Error record, so simply append that record to IT_ERROR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at last u display IT_ERROR data as error records, better if u maintain the index of the record also which give more accurate error record in the input file,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 20:04:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regrading-bath-input-file/m-p/2205568#M471673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T20:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt regrading Bath Input File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regrading-bath-input-file/m-p/2205569#M471674</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;After inserting the erroneous data in the internal table (like bdcmsgcoll) you need to pick the text of the message, which u can do wither by using Fm format_message or by using table t100 and take that text into some other itab and show it at the end for checking the exact problem for the creation of MB04 record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;gaurav&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        gaurav gupta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        gaurav gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 20:49:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regrading-bath-input-file/m-p/2205569#M471674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T20:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt regrading Bath Input File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regrading-bath-input-file/m-p/2205570#M471675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pk&lt;/P&gt;&lt;P&gt;After calling a transaction . You can use the standard function module to store the success and error message.&lt;/P&gt;&lt;P&gt;MESSAGE_TEXT_BUILD' use this function module. with that you can get the info of succesfully posted and error document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if its helpfull&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 03:19:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regrading-bath-input-file/m-p/2205570#M471675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T03:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt regrading Bath Input File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regrading-bath-input-file/m-p/2205571#M471676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;your view is right,but you have to Down load error records into file even you have to use BDCMSGCOLL for erro hadlling.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 04:22:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-regrading-bath-input-file/m-p/2205571#M471676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T04:22:32Z</dc:date>
    </item>
  </channel>
</rss>

