<?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 inserting or changing rows in a sorted table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524358#M1934647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you declare the table key as UNIQUE or NON-UNIQUE?&lt;/P&gt;&lt;P&gt;Which statement syntax did you use for the insert?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Feb 2016 06:51:03 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2016-02-08T06:51:03Z</dc:date>
    <item>
      <title>Error in inserting or changing rows in a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524357#M1934646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ABAPER,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already searched SCN for similar issue,&amp;nbsp; (&lt;A _jive_internal="true" href="https://answers.sap.com/thread/2023801"&gt;post&lt;/A&gt;)for related posts although my case seems little different as the line of the table type is a data element (an not a structure with fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario:&lt;/P&gt;&lt;P&gt;I am trying to insert into sorted table but facing runtime error &lt;SPAN style="font-size: 10pt;"&gt;of&amp;nbsp;&amp;nbsp; ITAB_DUPLICATE_KEY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;please put some light on this if had similar problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;For ref: I have attached a snapshot of runtime error from st22 log as below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;pavan G&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Pavan Golesar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 06:45:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524357#M1934646</guid>
      <dc:creator>Pavan_Golesar</dc:creator>
      <dc:date>2016-02-08T06:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error in inserting or changing rows in a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524358#M1934647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you declare the table key as UNIQUE or NON-UNIQUE?&lt;/P&gt;&lt;P&gt;Which statement syntax did you use for the insert?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 06:51:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524358#M1934647</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-02-08T06:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error in inserting or changing rows in a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524359#M1934648</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;Just show your code , how u declared the table/Structure please .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 07:00:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524359#M1934648</guid>
      <dc:creator>sabirshah1</dc:creator>
      <dc:date>2016-02-08T07:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error in inserting or changing rows in a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524360#M1934649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for quick reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data Declaration of structure:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;lt_header_guid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;crmt_object_guid_tab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**** Souce code*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert wa to table it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 07:57:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524360#M1934649</guid>
      <dc:creator>Pavan_Golesar</dc:creator>
      <dc:date>2016-02-08T07:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error in inserting or changing rows in a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524361#M1934650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks sabir,&lt;/P&gt;&lt;P&gt;As mentioned above, the table type &lt;SPAN style="color: #333333; font-size: 12px;"&gt;crmt_object_guid_tab is based on a DATA ELEMENT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case how to pass the NON-unique key condition to the abap statement below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;insert wa to it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pavan G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 08:00:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524361#M1934650</guid>
      <dc:creator>Pavan_Golesar</dc:creator>
      <dc:date>2016-02-08T08:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error in inserting or changing rows in a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524362#M1934651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You got 2 simple choices based by Raymond question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="color: #333333; font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Did you declare the table key as UNIQUE or NON-UNIQUE?&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you declared the table key as UNIQUE, before the insert, you have to read the internal table to check if key already exist and only if not exist, then insert (&lt;STRONG&gt;and i think you are in this condition&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;If you declared NON-UNIQUE, you should have no problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 08:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524362#M1934651</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2016-02-08T08:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error in inserting or changing rows in a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524363#M1934652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Absolutely,&lt;/P&gt;&lt;P&gt;I'm referring to standard table type which is of type &lt;STRONG&gt;sorted&lt;/STRONG&gt; with &lt;STRONG&gt;non-unique key.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/883040" width="450" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--PG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 08:58:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524363#M1934652</guid>
      <dc:creator>Pavan_Golesar</dc:creator>
      <dc:date>2016-02-08T08:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error in inserting or changing rows in a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524364#M1934653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it a non-unique key based sorted table and line of error is as below:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/883041" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 09:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524364#M1934653</guid>
      <dc:creator>Pavan_Golesar</dc:creator>
      <dc:date>2016-02-08T09:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error in inserting or changing rows in a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524365#M1934654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the silly question, i couldn't check myself since in my system i do not have that table type &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/74/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, replace INSERT with APPEND and, magic!, it works &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/74/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check my below example program&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/883003" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/883052" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 09:05:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524365#M1934654</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2016-02-08T09:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error in inserting or changing rows in a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524366#M1934655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 09:13:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524366#M1934655</guid>
      <dc:creator>sabirshah1</dc:creator>
      <dc:date>2016-02-08T09:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error in inserting or changing rows in a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524367#M1934656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Umm, I had tried it earlier hence I am pushed to use Insert statemet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ya, It would have helped only if table type was standard table and not the SORTED TABLE (as in my case)&lt;/P&gt;&lt;P&gt;Since the table type is have type as SORTED table, (as per SAP DUMP help) It will not accept the append condition... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt; Error while inserting or changing rows in a sorted table&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PavanG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 13:04:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524367#M1934656</guid>
      <dc:creator>Pavan_Golesar</dc:creator>
      <dc:date>2016-02-08T13:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error in inserting or changing rows in a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524368#M1934657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 13:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524368#M1934657</guid>
      <dc:creator>Pavan_Golesar</dc:creator>
      <dc:date>2016-02-08T13:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error in inserting or changing rows in a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524369#M1934658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the screenshot the table &lt;SPAN style="color: #333333; font-size: 12px;"&gt;type CRMT_OBJECT_GUID_TAB is a &lt;SPAN style="text-decoration: underline;"&gt;standard&lt;/SPAN&gt; table. Can you check the "secondary" keys tab? I think secondary keys are defined for this table type.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Can you please check &amp;amp; confirm? &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 13:24:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524369#M1934658</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2016-02-08T13:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error in inserting or changing rows in a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524370#M1934659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at the definition of parameter &lt;EM&gt;et_orderadm_h&lt;/EM&gt;&amp;nbsp; in the FM which dumps, and not at your &lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;EM&gt;lt_header_guid&lt;/EM&gt; internal table.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN class="h4"&gt;Exceptions &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="bold"&gt;Catchable Exceptions&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lnkgrey"&gt;CX_SY_ITAB_DUPLICATE_KEY&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN style="color: #ff0000;"&gt;Cause:&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt; Duplicate key values in unique secondary key &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="italic" style="color: #ff0000;"&gt; Runtime Error: &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;ITAB_DUPLICATE_KEY&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp; &lt;SPAN class="bold"&gt;Non-Catchable Exceptions&lt;/SPAN&gt;&amp;nbsp; &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN style="color: #ff0000;"&gt;Cause:&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt; When inserting a set of rows, entries with an identical key were produced (the target table is defined by &lt;SPAN class="qtext"&gt;UNIQUE&lt;/SPAN&gt;). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;SPAN class="italic"&gt;Runtime Error:&lt;/SPAN&gt; &lt;SPAN class="qtext"&gt;ITAB_DUPLICATE_KEY&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class="italic"&gt;Cause:&lt;/SPAN&gt; Sort order violated when using an &lt;SPAN class="qtext"&gt;INSERT&lt;/SPAN&gt; with index in a sorted table. &lt;BR /&gt;&lt;SPAN class="italic"&gt;Runtime Error:&lt;/SPAN&gt;&lt;SPAN class="qtext"&gt;ITAB_ILLEGAL_SORT_ORDER&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class="italic"&gt;Cause:&lt;/SPAN&gt; Invalid index value (&amp;lt;= 0) when &lt;SPAN class="qtext"&gt;FROM&lt;/SPAN&gt;, &lt;SPAN class="qtext"&gt;TO&lt;/SPAN&gt;, or &lt;SPAN class="qtext"&gt;INDEX&lt;/SPAN&gt; specified &lt;BR /&gt;&lt;SPAN class="italic"&gt;Runtime Error:&lt;/SPAN&gt;&lt;SPAN class="qtext"&gt;TABLE_INVALID_INDEX&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 13:27:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524370#M1934659</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-02-08T13:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error in inserting or changing rows in a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524371#M1934660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, Below is screenshot from SAP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/883708" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 04:40:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524371#M1934660</guid>
      <dc:creator>Pavan_Golesar</dc:creator>
      <dc:date>2016-02-09T04:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error in inserting or changing rows in a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524372#M1934661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hence now If I jump back to insert statement I am able to push entries to the Sorted table:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;insert &lt;/SPAN&gt;l_crmt_object_guid &lt;SPAN class="L0S52"&gt;inTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;lt_header_guid&lt;/P&gt;
&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/883721" height="85" width="517" /&gt;&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I get other issue saying below error with different line from standard FM &lt;STRONG&gt;CRM_ORDER_READ&lt;/STRONG&gt;:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;A row already exists with this key&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Pavan G&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Pavan Golesar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 05:09:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524372#M1934661</guid>
      <dc:creator>Pavan_Golesar</dc:creator>
      <dc:date>2016-02-09T05:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error in inserting or changing rows in a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524373#M1934662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your error occurs, according to the dump, in SAPLCRM_ORDER_ON. That's standard SAP code, which obviously you can't change. Have you search in service.sap.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you reusing some SAP code? The problem could be you calling the SAP code with bad data, for example. As Raymond has pointed out, the issue is with&amp;nbsp; &lt;STRONG&gt;et_orderadm_h&lt;/STRONG&gt; - what is the data definition of that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think we need rather more context.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 05:36:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524373#M1934662</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-02-09T05:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error in inserting or changing rows in a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524374#M1934663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Matthew, Issue is with &lt;STRONG style="font-size: 12px; color: #333333; background: #ffffff;"&gt;et_orderadm_h table&lt;/STRONG&gt; (which is of type seen in below image)..&lt;/P&gt;&lt;P&gt;After I looked closely, Found that it is having a &lt;STRONG&gt;UNIQUE KEY GUID&lt;/STRONG&gt; (Sorted Table)... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/883723" height="346" width="538" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Runtime time I check the contents of tables passed..&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/883745" height="223" width="476" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does give the dump on &lt;STRONG&gt;row already exists with KEY..&lt;/STRONG&gt;so I checked the contents of GUID (on Second iteration) and it is indeed Different.. then I wonder why the DUMP is occurring...&lt;SPAN __jive_emoticon_name="confused" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/74/images/emoticons/confused.gif"&gt;&lt;/SPAN&gt;&lt;SPAN __jive_emoticon_name="confused" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/74/images/emoticons/confused.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/883746" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 06:04:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524374#M1934663</guid>
      <dc:creator>Pavan_Golesar</dc:creator>
      <dc:date>2016-02-09T06:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error in inserting or changing rows in a sorted table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524375#M1934664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you calling this SAP function module from your own code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, unless you are the analyst working for SAP to fix this issue, you really should stop analysis now and report to SAP. Since this is SAP code you &lt;STRONG&gt;can't&lt;/STRONG&gt; fix it yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are, please post the &lt;SPAN style="text-decoration: underline;"&gt;relevant&lt;/SPAN&gt; parts of your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 06:48:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-inserting-or-changing-rows-in-a-sorted-table/m-p/11524375#M1934664</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-02-09T06:48:01Z</dc:date>
    </item>
  </channel>
</rss>

