<?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: SAPSQL_ARRAY_INSERT_DUPREC using BAPI_CONTRACT_CHANGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-using-bapi-contract-change/m-p/11374480#M1923189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Runda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your advice, Kathrin!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Nov 2015 08:59:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-11-10T08:59:59Z</dc:date>
    <item>
      <title>SAPSQL_ARRAY_INSERT_DUPREC using BAPI_CONTRACT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-using-bapi-contract-change/m-p/11374474#M1923183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using BAPI_CONTRACT_CHANGE to change&amp;nbsp; conditions of contract items. &lt;BR /&gt;It works well if I do not change the condition validity in parameter ITEM_COND_VALIDITY/ITEM_COND_VALIDITYX.&lt;/P&gt;&lt;P&gt;But if I want to create a new condition validity, the update request dumps with SAPSQL_ARRAY_INSERT_DUPREC.&lt;/P&gt;&lt;P&gt;Strangely enough, if I use the same data (that creates a dump in my program) in a test sequence in SE37 (BAPI_CONTRACT_CHANGE &amp;amp; BAPI_TRANSACTION_COMMIT), there is no update error and the contract is changed as wanted.&lt;/P&gt;&lt;P&gt;Can anybody help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, Kathrin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 12:36:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-using-bapi-contract-change/m-p/11374474#M1923183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-11-09T12:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSQL_ARRAY_INSERT_DUPREC using BAPI_CONTRACT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-using-bapi-contract-change/m-p/11374475#M1923184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kathrin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check may be duplicate records exist in file&amp;nbsp; or&amp;nbsp; date related field length that you uploding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;OR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Similar Problem might be due to BALDAT/BALHDR tables as well, &lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;these hold application/system logs.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Could you check some SAP Notes, for e.g. -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Note 656967 - Application log: SAPSQL_ARRAY_INSERT_DUPREC, BALDAT&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Note 196113 - SAPSQL_ARRAY_INSERT_DUPREC, BALHDR.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Thank You&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Best of luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 12:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-using-bapi-contract-change/m-p/11374475#M1923184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-11-09T12:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSQL_ARRAY_INSERT_DUPREC using BAPI_CONTRACT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-using-bapi-contract-change/m-p/11374476#M1923185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arindam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your answer.&lt;/P&gt;&lt;P&gt;Currently, I am testing only with just one contract item, so the data I provide does not contain any duplicates.&lt;/P&gt;&lt;P&gt;The dumps occurs during in the update for table A016, function RV_KONDITION_SICHERN_V13A. I had already checked several OSS notes. There are some describing similiar Problems with BAPI_CONTRACT_CHANGE, but none of them is relevant for our release / patch level &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any more suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! Regards, Kathrin!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 12:59:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-using-bapi-contract-change/m-p/11374476#M1923185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-11-09T12:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSQL_ARRAY_INSERT_DUPREC using BAPI_CONTRACT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-using-bapi-contract-change/m-p/11374477#M1923186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assign a range to higher contract numbers!&lt;/P&gt;&lt;P&gt;And try again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 13:04:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-using-bapi-contract-change/m-p/11374477#M1923186</guid>
      <dc:creator>fabio_passoni</dc:creator>
      <dc:date>2015-11-09T13:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSQL_ARRAY_INSERT_DUPREC using BAPI_CONTRACT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-using-bapi-contract-change/m-p/11374478#M1923187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer, but, I do not quite get it. &lt;BR /&gt;I need to change an existing contract, so using a different contract number will not do.&lt;/P&gt;&lt;P&gt;Are you referring to the serial id of the condition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a test sequence SE37 the update is working with whatever serial id I am providing in parameters ITEM_COND_VALIDITY&amp;nbsp; and ITEM_CONDITION - the BAPI always creates a new serial ID here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'old' serial ID (the number determined with BAPI_CONTRACT_GETDETAIL)&lt;/P&gt;&lt;P&gt;new serial ID '0000000001'&lt;/P&gt;&lt;P&gt;temporary serial ids '$000000001'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of these work fine in SE37, but as soon as I call the BAPI in my program instead of just in SE37, I receive the update error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Kathrin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 13:24:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-using-bapi-contract-change/m-p/11374478#M1923187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-11-09T13:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSQL_ARRAY_INSERT_DUPREC using BAPI_CONTRACT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-using-bapi-contract-change/m-p/11374479#M1923188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you attach the dump please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 14:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-using-bapi-contract-change/m-p/11374479#M1923188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-11-09T14:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSQL_ARRAY_INSERT_DUPREC using BAPI_CONTRACT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-using-bapi-contract-change/m-p/11374480#M1923189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Runda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your advice, Kathrin!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 08:59:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-using-bapi-contract-change/m-p/11374480#M1923189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-11-10T08:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSQL_ARRAY_INSERT_DUPREC using BAPI_CONTRACT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-using-bapi-contract-change/m-p/11374481#M1923190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi Kathrin,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;From the dump it is clear we are trying to insert duplicate records in table A016 which in turn gets populated from ITEM_COND_VALIDITY. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Now since you are saying it works from SE37, I wonder if there is any issue in your program. Note A016 has got Valid-To-Date as Primary key. And Valid From date as a non primary field.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;So there is no solution at this moment other than debugging your code. Check if the table &lt;SPAN style="font-size: 13.3333px;"&gt;ITEM_COND_VALIDITY has got any duplicate entry or blank entry or not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 11:02:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-using-bapi-contract-change/m-p/11374481#M1923190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-11-10T11:02:50Z</dc:date>
    </item>
  </channel>
</rss>

