<?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: Error in BDC_INSERT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-insert/m-p/3191240#M760189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot....for your reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i still have the same error coming up....can u pls help me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;CAPC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Dec 2007 09:49:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-28T09:49:38Z</dc:date>
    <item>
      <title>Error in BDC_INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-insert/m-p/3191238#M760187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;i have created a BDC in session method,&lt;/P&gt;&lt;P&gt;the screens and all are supposed to be correct and still i am getting this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"BDC_INSERT, screen .&amp;amp;. is invalid"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using the same screens in many different programs, so i strongly feel that there is no problem with the screen. i have come across this error for the first time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in debugging, it is going into at end of xblnr, but when going to perform bdc_insert there is some error there...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the following is the code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM SESSION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT RECORD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    REFRESH BDCDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT NEW XBLNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM HEADER_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF RECORD-NEWBS EQ '40' OR&lt;/P&gt;&lt;P&gt;           RECORD-NEWBS EQ '50'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          PERFORM LINEITEM_40_50.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ELSEIF RECORD-NEWBS EQ '01' OR&lt;/P&gt;&lt;P&gt;               RECORD-NEWBS EQ '11'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          PERFORM LINEITEM_01_11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ELSEIF RECORD-NEWBS EQ '25' OR&lt;/P&gt;&lt;P&gt;               RECORD-NEWBS EQ '35' OR&lt;/P&gt;&lt;P&gt;               RECORD-NEWBS EQ '21' OR&lt;/P&gt;&lt;P&gt;               RECORD-NEWBS EQ '31'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          PERFORM LINITEM_25_35_21_31.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ELSEIF RECORD-NEWBS EQ '29' OR&lt;/P&gt;&lt;P&gt;               RECORD-NEWBS EQ '39'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          PERFORM LINEITEM_29_39.&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;   MESSAGE E999 WITH RECORD-NEWBS 'POST KEY NOT USED IN THIS UPLOAD'.&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;AT END OF XBLNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM BDC_DYNPRO      USING 'ZSAPMF05A' '0700'.&lt;/P&gt;&lt;P&gt;  PERFORM BDC_FIELD       USING 'BDC_CURSOR' 'RF05A-NEWBS'.&lt;/P&gt;&lt;P&gt;  PERFORM BDC_FIELD       USING 'BDC_OKCODE' '=BU'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM BDC_INSERT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM BDC_CLOSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, pls let me know what i have to do to avoid this error.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAPC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Dec 2007 12:20:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-insert/m-p/3191238#M760187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-16T12:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BDC_INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-insert/m-p/3191239#M760188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change ur code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;existed code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT END OF XBLNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC_DYNPRO USING 'ZSAPMF05A' '0700'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD USING 'BDC_CURSOR' 'RF05A-NEWBS'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD USING 'BDC_OKCODE' '=BU'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC_INSERT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;new code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once control reaches to at end of xblnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do not perfrom any thing there, set a flag value = X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT END OF XBLNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_flag = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if v_flag = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC_DYNPRO USING 'ZSAPMF05A' '0700'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD USING 'BDC_CURSOR' 'RF05A-NEWBS'.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD USING 'BDC_OKCODE' '=BU'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC_INSERT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear: v_flag.&lt;/P&gt;&lt;P&gt;&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;at end of xblnr, all the fields next to the xblnr becomes zero.&lt;/P&gt;&lt;P&gt;so u can't do this inside the control statetment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this, def. it will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 18:10:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-insert/m-p/3191239#M760188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-17T18:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BDC_INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-insert/m-p/3191240#M760189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot....for your reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i still have the same error coming up....can u pls help me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;CAPC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 09:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-insert/m-p/3191240#M760189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T09:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BDC_INSERT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-insert/m-p/3191241#M760190</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;I don't think you have any issue with writing the code in at end of control statement. in any case if thats helpful retain the code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that the problem can be because of either of the 2 cases below.. check these...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In debug mode when you reach the At end of control statement check the BDCDATA table... it is possible that any of the screens populated earlier may be wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Clear the BDC table once you use BDC_INSERT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 10:25:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-insert/m-p/3191241#M760190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T10:25:10Z</dc:date>
    </item>
  </channel>
</rss>

