<?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 Problems SAPSQL_ARRAY_INSERT_DUPREC on different client in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-sapsql-array-insert-duprec-on-different-client/m-p/2831440#M662744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before this I develop an upload program for grant... I run the program in client DEV 230 to upload the data. The data was successful upload into the table.&lt;/P&gt;&lt;P&gt;But the real problem occur in DEV 250 where when I want to upload the data the error 'SAPSQL_ARRAY_INSERT_DUPREC' was encounter and the data did not insert into the table. I'm calling BAPI to upload the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice will be appreciate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Oct 2007 00:58:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-06T00:58:24Z</dc:date>
    <item>
      <title>Problems SAPSQL_ARRAY_INSERT_DUPREC on different client</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-sapsql-array-insert-duprec-on-different-client/m-p/2831440#M662744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before this I develop an upload program for grant... I run the program in client DEV 230 to upload the data. The data was successful upload into the table.&lt;/P&gt;&lt;P&gt;But the real problem occur in DEV 250 where when I want to upload the data the error 'SAPSQL_ARRAY_INSERT_DUPREC' was encounter and the data did not insert into the table. I'm calling BAPI to upload the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice will be appreciate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 00:58:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-sapsql-array-insert-duprec-on-different-client/m-p/2831440#M662744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T00:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problems SAPSQL_ARRAY_INSERT_DUPREC on different client</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-sapsql-array-insert-duprec-on-different-client/m-p/2831441#M662745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;analysis...&lt;/P&gt;&lt;P&gt;The problem is a client specific. updates..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by default whenever u pass and open SQL query it passes mandt = sy-mandt (current logon user client)... so if u r trying to update client DEV250 while login tru client DEV230 user.. it wont work ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;solution.. &lt;/P&gt;&lt;P&gt;1&amp;gt; log on with user of client DEV230 and run the same.. it will work...&lt;/P&gt;&lt;P&gt;2&amp;gt; if u dont have access to user of client DEV230 then create a client specified query .. and mention mandt in where clause..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 09:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-sapsql-array-insert-duprec-on-different-client/m-p/2831441#M662745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T09:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problems SAPSQL_ARRAY_INSERT_DUPREC on different client</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-sapsql-array-insert-duprec-on-different-client/m-p/2831442#M662746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Best way to avoid this error is clear the buffer data.Search for the similar BAPI which clears the buffer data.And one more thing is check the data file properly, there may exist duplicate records.If you are using any reference field to link multiple files, then check there are duplicate ref keys.Hope this helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2007 03:59:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-sapsql-array-insert-duprec-on-different-client/m-p/2831442#M662746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-07T03:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problems SAPSQL_ARRAY_INSERT_DUPREC on different client</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-sapsql-array-insert-duprec-on-different-client/m-p/2831443#M662747</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;Thanks Alnoor... but the problem still da same.&lt;/P&gt;&lt;P&gt;The situation here is where in DEV230 my program will run successful n the upload data was insert into table while in DEV250, the program can't insert the data into table and error 'SAPSQL_ARRAY_INSERT_DUPREC' were occured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've already checking tru my coding but still can't find any problem in my coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need solution A.S.A.P...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 01:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-sapsql-array-insert-duprec-on-different-client/m-p/2831443#M662747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T01:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problems SAPSQL_ARRAY_INSERT_DUPREC on different client</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-sapsql-array-insert-duprec-on-different-client/m-p/2831444#M662748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saiful,&lt;/P&gt;&lt;P&gt;This error occurs when you try to insert a record into a table with the same key field values.&lt;/P&gt;&lt;P&gt;Since you said you are using a BAPI, which BAPI is it for. If you can specify it, we can help you. It would be more helpful if you can paste your part of code which shows this dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason can be because in client 230 the data which you are creating might be new data. Where as in client 250 the data which you create might already be existing, due to which it says can not insert duplicate records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 01:49:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-sapsql-array-insert-duprec-on-different-client/m-p/2831444#M662748</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-10-08T01:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problems SAPSQL_ARRAY_INSERT_DUPREC on different client</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-sapsql-array-insert-duprec-on-different-client/m-p/2831445#M662749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopi,&lt;/P&gt;&lt;P&gt;It's right that it might because of duplicate record.. but that's not the problem because the program will check the data first before upload it. I'm using 'BAPI_0035_CREATE' to upload grant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my BAPI coding :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at itab_val.&lt;/P&gt;&lt;P&gt;    refresh : i_return_bapi.&lt;/P&gt;&lt;P&gt;    clear   : ibudget_header, ibudget_header_add, ibudget_short,&lt;/P&gt;&lt;P&gt;              ibudget_desc, i_return_bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform map_data_BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'Z_BAPI_0035_CREATE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      LANGUAGE                 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        HEADER_DATA              = ibudget_header&lt;/P&gt;&lt;P&gt;        HEADER_DATA_ADD          = ibudget_header_add&lt;/P&gt;&lt;P&gt;        SHORT_DESC               = ibudget_short&lt;/P&gt;&lt;P&gt;        DESCRIPTION              = ibudget_desc&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      TESTRUN                  = 'X'              "Test Run&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        TESTRUN                  = ' '              "Actual Run&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FMAREA                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      DOCUMENTYEAR             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      DOCUMENTNUMBER           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      ITEM_DATA                = ibudget_item&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      SENDER_ITEM_DATA         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      PERIOD_DATA              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      SENDER_PERIOD_DATA       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      LONG_TEXT                = ibudget_ltext&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      EXTENSION_IN             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        RETURN                   = i_return_bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    delete adjacent duplicates from i_return_bapi comparing type.&lt;/P&gt;&lt;P&gt;*Do error handling&lt;/P&gt;&lt;P&gt;    LOOP AT I_RETURN_BAPI.&lt;/P&gt;&lt;P&gt;      IF I_RETURN_BAPI-TYPE = 'E'.&lt;/P&gt;&lt;P&gt;        DONT_POST = 'x'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        check: I_RETURN_BAPI-id ne 'BAPI'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       move-corresponding w to iexceptn.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        move-corresponding w to ireport.&lt;/P&gt;&lt;P&gt;        concatenate I_RETURN_BAPI-type ':' I_RETURN_BAPI-id&lt;/P&gt;&lt;P&gt;                    I_RETURN_BAPI-number  I_RETURN_BAPI-message&lt;/P&gt;&lt;P&gt;        into ireport-remarks separated by space.&lt;/P&gt;&lt;P&gt;        append ireport. clear ireport.&lt;/P&gt;&lt;P&gt;        append iexceptn. clear iexceptn.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       move-corresponding w to isuccess.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        move-corresponding w to ireport.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       concatenate I_RETURN_BAPI-type ':' I_RETURN_BAPI-id&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   I_RETURN_BAPI-number  I_RETURN_BAPI-message&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       into ireport-remarks separated by space.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        ireport-remarks = 'Successful'.&lt;/P&gt;&lt;P&gt;        append ireport. clear ireport.&lt;/P&gt;&lt;P&gt;        append isuccess. clear isuccess.&lt;/P&gt;&lt;P&gt;        EXIT.&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;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Do Commit. Do implement error handling!                              *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;    IF DONT_POST NE 'x'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;      WAIT          = 'X'&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       RETURN        = i_return_commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Do some meaningful error handling                                    *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;      LOOP AT I_RETURN_COMMIT.&lt;/P&gt;&lt;P&gt;        IF I_RETURN_COMMIT-TYPE = 'E'.&lt;/P&gt;&lt;P&gt;          COMMIT_ERROR = 'x'.&lt;/P&gt;&lt;P&gt;          EXIT.&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;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;Saiful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 04:18:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-sapsql-array-insert-duprec-on-different-client/m-p/2831445#M662749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T04:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problems SAPSQL_ARRAY_INSERT_DUPREC on different client</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-sapsql-array-insert-duprec-on-different-client/m-p/2831446#M662750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure there are no duplicate entries in the internal table "ibudget_header", hope this works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 21:31:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-sapsql-array-insert-duprec-on-different-client/m-p/2831446#M662750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T21:31:21Z</dc:date>
    </item>
  </channel>
</rss>

