<?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 on table OBJK - after WS_DELIVERY_UPDATE (FM) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-on-table-objk-after-ws-delivery-update-fm/m-p/6084989#M1357604</link>
    <description>&lt;P&gt;it resolved my problem.&lt;/P&gt;&lt;P&gt;Thank you Meghasyam.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 07:13:09 GMT</pubDate>
    <dc:creator>former_member557245</dc:creator>
    <dc:date>2020-03-31T07:13:09Z</dc:date>
    <item>
      <title>SAPSQL_ARRAY_INSERT_DUPREC on table OBJK - after WS_DELIVERY_UPDATE (FM)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-on-table-objk-after-ws-delivery-update-fm/m-p/6084981#M1357596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi fellow SAP dudes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Got a pretty big problemo. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I am using the BAPI - BAPI_OUTB_DELIVERY_CHANGE to create batch splits and add serial no's to an outbound delivery (type H)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I then call the FM - WS_DELIVERY_UPDATE to post goods issue the delivery. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Problem being is that Im hitting a short dump - See Below:   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Has anyone hit this before?  I pretty sure it has to do with the Serial Numbers (they are updating in table OBJK). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Any help would be ace. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Todd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Runtime Errors         SAPSQL_ARRAY_INSERT_DUPREC&lt;/P&gt;&lt;P&gt;Except.                CX_SY_OPEN_SQL_DB&lt;/P&gt;&lt;P&gt;Date and Time          25.08.2009 15:06:20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Short text&lt;/P&gt;&lt;P&gt;     The ABAP/4 Open SQL array insert results in duplicate database records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; What happened?&lt;/P&gt;&lt;P&gt;     Error in the ABAP Application Program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     The current ABAP program "SAPLIPW1" had to be terminated because it has&lt;/P&gt;&lt;P&gt;     come across a statement that unfortunately cannot be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; What can you do?&lt;/P&gt;&lt;P&gt;     Note down which actions and inputs caused the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     To process the problem further, contact you SAP system&lt;/P&gt;&lt;P&gt;     administrator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Using Transaction ST22 for ABAP Dump Analysis, you can look&lt;/P&gt;&lt;P&gt;     at and manage termination messages, and you can also&lt;/P&gt;&lt;P&gt;     keep them for a long time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Error analysis&lt;/P&gt;&lt;P&gt;     An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt;     The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught&lt;/P&gt;&lt;P&gt;      in&lt;/P&gt;&lt;P&gt;     procedure "OBJK_POST_UPDATE_N" "(FUNCTION)", nor was it propagated by a RAISING&lt;/P&gt;&lt;P&gt;      clause.&lt;/P&gt;&lt;P&gt;     Since the caller of the procedure could not have anticipated that the&lt;/P&gt;&lt;P&gt;     exception would occur, the current program is terminated.&lt;/P&gt;&lt;P&gt;     The reason for the exception is:&lt;/P&gt;&lt;P&gt;     If you use an ABAP/4 Open SQL array insert to insert a record in&lt;/P&gt;&lt;P&gt;     the database and that record already exists with the same key,&lt;/P&gt;&lt;P&gt;     this results in a termination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     (With an ABAP/4 Open SQL single record insert in the same error&lt;/P&gt;&lt;P&gt;     situation, processing does not terminate, but SY-SUBRC is set to 4.)&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Todd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 07:35:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-on-table-objk-after-ws-delivery-update-fm/m-p/6084981#M1357596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T07:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSQL_ARRAY_INSERT_DUPREC on table OBJK - after WS_DELIVERY_UPDATE (FM)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-on-table-objk-after-ws-delivery-update-fm/m-p/6084982#M1357597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Todd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like an entry is already present in table 'OBJK' (which is being updated here) for the OBKNR(Object list number) &amp;amp; OBZAE(Object list counters) combination for the serial numbers that are being added.&lt;/P&gt;&lt;P&gt;Please check if the data being added is already present in that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 08:45:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-on-table-objk-after-ws-delivery-update-fm/m-p/6084982#M1357597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T08:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSQL_ARRAY_INSERT_DUPREC on table OBJK - after WS_DELIVERY_UPDATE (FM)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-on-table-objk-after-ws-delivery-update-fm/m-p/6084983#M1357598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you are calling the function module in the loop then Check if you are clearing all the variables after each iteration of loop before passing to WS_DELIVERY_UPDATE. You can use function modules like LE_DELIVERY_REFRESH_BUFFER to clear buffer areas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR Jaideep,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 09:14:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-on-table-objk-after-ws-delivery-update-fm/m-p/6084983#M1357598</guid>
      <dc:creator>jaideepsharma</dc:creator>
      <dc:date>2009-08-25T09:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSQL_ARRAY_INSERT_DUPREC on table OBJK - after WS_DELIVERY_UPDATE (FM)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-on-table-objk-after-ws-delivery-update-fm/m-p/6084984#M1357599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dhanya  - Thanks for your reply but that is the whole problem.  Im not putting anything in that table the SAP standard FM's are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jaideep - That's exactly what I thought, and I have tried the buffer refresh to no avail. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really stuck on this. Anyone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 22:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-on-table-objk-after-ws-delivery-update-fm/m-p/6084984#M1357599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T22:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSQL_ARRAY_INSERT_DUPREC on table OBJK - after WS_DELIVERY_UPDATE (FM)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-on-table-objk-after-ws-delivery-update-fm/m-p/6084985#M1357600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've found a way around it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Called the WS_DELIVERY_UPDATE in a seperate program via a SUBMIT call.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not the best solution - but it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 05:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-on-table-objk-after-ws-delivery-update-fm/m-p/6084985#M1357600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-26T05:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSQL_ARRAY_INSERT_DUPREC on table OBJK - after WS_DELIVERY_UPDATE (FM)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-on-table-objk-after-ws-delivery-update-fm/m-p/6084986#M1357601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had the same problem. I solved it by calling SERIAL_INTTAB_REFRESH before WS_DELIVERY_UPDATE.&lt;/P&gt;&lt;P&gt;I found the solution by looking the the IDoc handler for DELVRY : Function module IDOC_INPUT_DELVRY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 11:45:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-on-table-objk-after-ws-delivery-update-fm/m-p/6084986#M1357601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-27T11:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSQL_ARRAY_INSERT_DUPREC on table OBJK - after WS_DELIVERY_UPDATE (FM)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-on-table-objk-after-ws-delivery-update-fm/m-p/6084987#M1357602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kim.&lt;/P&gt;&lt;P&gt;You solved my issue!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 12:01:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-on-table-objk-after-ws-delivery-update-fm/m-p/6084987#M1357602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-09T12:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSQL_ARRAY_INSERT_DUPREC on table OBJK - after WS_DELIVERY_UPDATE (FM)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-on-table-objk-after-ws-delivery-update-fm/m-p/6084988#M1357603</link>
      <description>&lt;P&gt;When a Delivery is created using Bapi and if updating Serial
numbers , use the FM &lt;/P&gt;&lt;P&gt;CALL
FUNCTION 'SERIAL_INTTAB_REFRESH' &lt;/P&gt;&lt;P&gt;EXPORTING
objects_status_refresh = 'C'. This resolves the issue while doing PGI.&lt;/P&gt;&lt;P&gt;Or
else call fm WS_DELIVERY_UPDATE2 using DESTINATION 'NONE'&lt;/P&gt;&lt;P&gt;PS: For
reference I am updating this thread.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 14:13:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-on-table-objk-after-ws-delivery-update-fm/m-p/6084988#M1357603</guid>
      <dc:creator>former_member314224</dc:creator>
      <dc:date>2019-11-28T14:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSQL_ARRAY_INSERT_DUPREC on table OBJK - after WS_DELIVERY_UPDATE (FM)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-on-table-objk-after-ws-delivery-update-fm/m-p/6084989#M1357604</link>
      <description>&lt;P&gt;it resolved my problem.&lt;/P&gt;&lt;P&gt;Thank you Meghasyam.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 07:13:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapsql-array-insert-duprec-on-table-objk-after-ws-delivery-update-fm/m-p/6084989#M1357604</guid>
      <dc:creator>former_member557245</dc:creator>
      <dc:date>2020-03-31T07:13:09Z</dc:date>
    </item>
  </channel>
</rss>

