<?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 Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1249783#M144618</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;&lt;/P&gt;&lt;P&gt;I am trying to upload data from a flat file into tcode xk01. Say , I have 100 reorsds to be updated. If I get a problem while updating 50 th record how should I handle the error ? Generaly what could be the strategy to such kind of situations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Mar 2006 15:04:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-15T15:04:16Z</dc:date>
    <item>
      <title>BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1249783#M144618</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;&lt;/P&gt;&lt;P&gt;I am trying to upload data from a flat file into tcode xk01. Say , I have 100 reorsds to be updated. If I get a problem while updating 50 th record how should I handle the error ? Generaly what could be the strategy to such kind of situations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 15:04:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1249783#M144618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T15:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1249784#M144619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varun,&lt;/P&gt;&lt;P&gt;  When you do a session method for your BDC program,it will shoe you the error records &amp;amp; success records in the LOG.If you want to stop the BDC when you get error say 50th records in your 100 records,you can check the SY-SUBRC = 0 &amp;amp; stop the BDC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 15:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1249784#M144619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T15:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1249785#M144620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my personal experience, the best way is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;upload all data, tha 100 records. Then in a loop call to the transaction for each of the records, the result tables of every bdc call transaction is stored in a big table.&lt;/P&gt;&lt;P&gt;After all the reacords have been treated , you can show the big table to the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don´t know if this answers your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ibai Ramirez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 15:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1249785#M144620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T15:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1249786#M144621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest to use Session method for the same.&lt;/P&gt;&lt;P&gt;Say I_XK01 contain all data which needs to be uploaded using tcode XK01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_XK01.&lt;/P&gt;&lt;P&gt;  Populate BDC TAB for the record&lt;/P&gt;&lt;P&gt;  CALL TRANSACTION XK01 IN NO SCREEN MODE&lt;/P&gt;&lt;P&gt;  Read Messages Table Last Record.&lt;/P&gt;&lt;P&gt;  If Message Type is 'A' OR 'E', &lt;/P&gt;&lt;P&gt;    Create a session using function BDC_OPEN_GROUP.&lt;/P&gt;&lt;P&gt;    Insert I_BDCTAB to function BDC_INSERT.&lt;/P&gt;&lt;P&gt;    Close session using function BDC_CLOSE_GROUP&lt;/P&gt;&lt;P&gt;  Endif.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not want to create session for erroneous entries, you can format messages for Call Transaction using function module FORMAT_MESSAGE. And display log in report output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 15:22:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1249786#M144621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T15:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1249787#M144622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest way would be to use standard SAP program RFBIKR00. This will create a batch input session and the errors can be processed later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 15:24:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1249787#M144622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T15:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1249788#M144623</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;There two ways to find that error records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. if you are running the BDC in session method error stores in error log with you can see through SM35.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. if your running BDC in Call tranction mode error record stroes in BDCMSGCOLL Structure .then you need catupre all error records for each item into a internal table and you show them in out put . this structure holds both error as well success records also,hope this will use full to you,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you,&lt;/P&gt;&lt;P&gt;salee.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 15:35:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1249788#M144623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T15:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1249789#M144624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have session created in SM35 then process it in background? if you have any errors session you can find in error logs..i hope this helps you.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 21:29:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1249789#M144624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T21:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1249790#M144625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varun,&lt;/P&gt;&lt;P&gt;   The data can be uploaded using Call Transaction.&lt;/P&gt;&lt;P&gt;If there are any errors such as the one mentioned in your quesiton, then those errors can be captured and then displayed on the screen. To process the error records, the user has to depend on the Data file again. This is a very labourious process. To avoid such siuations, Session method is called for error records only. This will help the user to know the error records. He/She can process the records at his/her convienence.&lt;/P&gt;&lt;P&gt;This the procedure that we follow in our company.&lt;/P&gt;&lt;P&gt; This again may not be considered as a standard procedure. All depends on the client's requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 21:49:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1249790#M144625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T21:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1249791#M144626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't want to use RFBIKR00, then the session method is better than call transaction in most cases. As the others have said, after the session is complete, if there are any errors, they are much easier to deal with by processing the error session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally, the only time I use call transaction is if I either want to show the user immediately the status or if further processing depends on the success or failure of the current transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 22:02:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1249791#M144626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T22:02:21Z</dc:date>
    </item>
  </channel>
</rss>

