<?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: BDC Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error/m-p/7180473#M1518419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After the loop that you have given, check the entries in the table it_bdcdata if it has all the employee numbers against the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it_bdcdata is a table with header line, clear the entire table. Refresh it_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sujay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Aug 2010 07:05:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-17T07:05:16Z</dc:date>
    <item>
      <title>BDC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error/m-p/7180469#M1518415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear, &lt;/P&gt;&lt;P&gt;i've created a BDC program to update time management status IT0007 from 7 to 1 , i got all employees number i want into table and looped at this table into work-area then wrote my BDC Code , the problem is when i run the session from sm35 it always retreive the first employee number only and do infinite loop of modify and update, Here/'s the Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_employee INTO wa_employee.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_dynpro      USING 'SAPMP50A' '1000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'RP50G-PERNR'&lt;/P&gt;&lt;P&gt;                                    wa_employee-pernr.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'RP50G-TIMR6'&lt;/P&gt;&lt;P&gt;                                    'X'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'RP50G-CHOIC'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'RP50G-CHOIC'&lt;/P&gt;&lt;P&gt;                                    '0007'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=MOD'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_dynpro      USING 'MP000700' '2000'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=UPD'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'P0007-ZTERF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'P0007-BEGDA'&lt;/P&gt;&lt;P&gt;                                    begda.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'P0007-ENDDA'&lt;/P&gt;&lt;P&gt;                                    endda.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'P0007-ZTERF'  '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'BDC_INSERT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        TCODE            = 'PA30'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        DYNPROTAB        = it_bdcdata&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        INTERNAL_ERROR   = 1&lt;/P&gt;&lt;P&gt;        NOT_OPEN         = 2&lt;/P&gt;&lt;P&gt;        QUEUE_ERROR      = 3&lt;/P&gt;&lt;P&gt;        TCODE_INVALID    = 4&lt;/P&gt;&lt;P&gt;        PRINTING_INVALID = 5&lt;/P&gt;&lt;P&gt;        POSTING_INVALID  = 6&lt;/P&gt;&lt;P&gt;        OTHERS           = 7.&lt;/P&gt;&lt;P&gt;    clear it_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 18:55:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error/m-p/7180469#M1518415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T18:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error/m-p/7180470#M1518416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The code looks ok. Try setting breakpoint to check IT_BDCDATA at each loop. Everytime BDC runs, check the SY-SUBRC value. If its 1001, there is a data related issue. Debug how each screen gets updated with what values. &lt;/P&gt;&lt;P&gt;Hope this helps. Regards, Liz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 19:25:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error/m-p/7180470#M1518416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T19:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error/m-p/7180471#M1518417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;As yo have cleared it_bdcdata similarly clear your work area before endloop and then try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 06:50:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error/m-p/7180471#M1518417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T06:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error/m-p/7180472#M1518418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still update the transaction with the first entry and never go to the second one :S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 06:57:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error/m-p/7180472#M1518418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T06:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error/m-p/7180473#M1518419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After the loop that you have given, check the entries in the table it_bdcdata if it has all the employee numbers against the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it_bdcdata is a table with header line, clear the entire table. Refresh it_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sujay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 07:05:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error/m-p/7180473#M1518419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T07:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error/m-p/7180474#M1518420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;can you please tell me how you have defined you internal table.&lt;/P&gt;&lt;P&gt;Please try this:&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DYNPROTAB = it_bdcdata[]&lt;/P&gt;&lt;P&gt;I am sure you have defined your internal table it_employee as a table without header line, and using the work area.&lt;/P&gt;&lt;P&gt;Also you are selecting your infotype as 0007 by default/hardcoded.&lt;/P&gt;&lt;P&gt;I think the problem is with your internal table.&lt;/P&gt;&lt;P&gt;please check its declaration part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lalit Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 07:08:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error/m-p/7180474#M1518420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T07:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error/m-p/7180475#M1518421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sujay Venkatesw... Now Working &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 07:10:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error/m-p/7180475#M1518421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T07:10:48Z</dc:date>
    </item>
  </channel>
</rss>

