<?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: Reg dump ITAB_ILLEGAL_SORT_ORDER in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dump-itab-illegal-sort-order/m-p/4955060#M1155297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are not getting dump here as the entries in the table are not inserted out of sequence. if you use an out of sequence entry you will get the dump. for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

IT_VBELN-VBELN = '001'.
IT_VBELN-POSNR = '001'.

APPEND IT_VBELN.

IT_VBELN-VBELN = '001'.
IT_VBELN-POSNR = '001'.

APPEND IT_VBELN.

IT_VBELN-VBELN = '002'.
IT_VBELN-POSNR = '001'.

APPEND IT_VBELN.

IT_VBELN-VBELN = '001'.   
IT_VBELN-POSNR = '001'.

APPEND IT_VBELN.  &amp;lt;---- it will dump here

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats why you need to use Insert statement, in that case SAP will automatically insert the row at the appropriate index to keep the sorted order&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Dec 2008 18:12:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-22T18:12:28Z</dc:date>
    <item>
      <title>Reg dump ITAB_ILLEGAL_SORT_ORDER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dump-itab-illegal-sort-order/m-p/4955057#M1155294</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;&lt;/P&gt;&lt;P&gt;I have scheduled one job .The job has cancelled and its throws erro like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ITAB_ILLEGAL_SORT_ORDER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)In the dump analysis its shows the err at Appen statement in the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.                                                    "PBS&lt;/P&gt;&lt;P&gt;        MOVE lw_tab2592-vbelv TO lw_ekpo-vbeln.                           "PBS&lt;/P&gt;&lt;P&gt;        MOVE lw_tab2592-posnv TO lw_ekpo-posnr.                           "PBS&lt;/P&gt;&lt;P&gt;        MOVE lw_tab2592-vbeln TO lw_ekpo-ebeln.                           "PBS&lt;/P&gt;&lt;P&gt;        MOVE lw_tab2592-posnn TO lw_ekpo-ebelp.                           "PBS&lt;/P&gt;&lt;P&gt;        APPEND lw_ekpo TO lt_ekpo .                                       "PBS&lt;/P&gt;&lt;P&gt;        CLEAR  lw_ekpo.                                                   "PBS&lt;/P&gt;&lt;P&gt;      ENDIF.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)Here internal table is declares as sorted table like this...&lt;/P&gt;&lt;P&gt;tt_ekpo         TYPE SORTED TABLE OF tw_ekpo&lt;/P&gt;&lt;P&gt;                      WITH NON-UNIQUE KEY vbeln posnr,&lt;/P&gt;&lt;P&gt;3)In the same program its have 3 more tables decalred sorted tables as above and also used append.&lt;/P&gt;&lt;P&gt;but its showing dump at one place at   APPEND lw_ekpo TO lt_ekpo .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know wat is the reason for for this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt; Manne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2008 12:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dump-itab-illegal-sort-order/m-p/4955057#M1155294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-22T12:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Reg dump ITAB_ILLEGAL_SORT_ORDER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dump-itab-illegal-sort-order/m-p/4955058#M1155295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have the reason in your dump "ITAB_ILLEGAL_SORT_ORDER."  it comes when you try to append a record in a sorted table which would make the entries out of sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always use  insert table instead of append when you have sorted tables., that will take care of automatic sorting in the internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2008 14:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dump-itab-illegal-sort-order/m-p/4955058#M1155295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-22T14:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reg dump ITAB_ILLEGAL_SORT_ORDER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dump-itab-illegal-sort-order/m-p/4955059#M1155296</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 for your reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; when iam running the following program iam not getting dump when  used append for the sorted internal tables..&lt;/P&gt;&lt;P&gt;REPORT  ZTEST_SORTED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of tw_vbeln,&lt;/P&gt;&lt;P&gt;       vbeln like vbap-vbeln,&lt;/P&gt;&lt;P&gt;       posnr like vbap-posnr,&lt;/P&gt;&lt;P&gt;     end of tw_vbeln.&lt;/P&gt;&lt;P&gt;*DATA:TT_VBELN TYPE STANDARD TABLE OF TW_VBELN.&lt;/P&gt;&lt;P&gt;data : it_vbeln  TYPE SORTED TABLE OF TW_VBELN&lt;/P&gt;&lt;P&gt;                      WITH NON-UNIQUE KEY vbeln POSNR WITH HEADER LINE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_vbeln1  TYPE SORTED TABLE OF TW_VBELN&lt;/P&gt;&lt;P&gt;                      WITH NON-UNIQUE KEY vbeln POSNR WITH HEADER LINE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             IT_VBELN-VBELN = '001'.&lt;/P&gt;&lt;P&gt;             IT_VBELN-POSNR = '001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             APPEND IT_VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             IT_VBELN-VBELN = '001'.&lt;/P&gt;&lt;P&gt;             IT_VBELN-POSNR = '001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             APPEND IT_VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             IT_VBELN-VBELN = '001'.&lt;/P&gt;&lt;P&gt;             IT_VBELN-POSNR = '001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             APPEND IT_VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             IT_VBELN-VBELN = '001'.&lt;/P&gt;&lt;P&gt;             IT_VBELN-POSNR = '001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             APPEND IT_VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam able to add to the sorted internaltable with non-unique key with out any dump..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly look into this and let me know wat is the exact reason for this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp; Regards&lt;/P&gt;&lt;P&gt;Manne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2008 15:05:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dump-itab-illegal-sort-order/m-p/4955059#M1155296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-22T15:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reg dump ITAB_ILLEGAL_SORT_ORDER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dump-itab-illegal-sort-order/m-p/4955060#M1155297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are not getting dump here as the entries in the table are not inserted out of sequence. if you use an out of sequence entry you will get the dump. for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

IT_VBELN-VBELN = '001'.
IT_VBELN-POSNR = '001'.

APPEND IT_VBELN.

IT_VBELN-VBELN = '001'.
IT_VBELN-POSNR = '001'.

APPEND IT_VBELN.

IT_VBELN-VBELN = '002'.
IT_VBELN-POSNR = '001'.

APPEND IT_VBELN.

IT_VBELN-VBELN = '001'.   
IT_VBELN-POSNR = '001'.

APPEND IT_VBELN.  &amp;lt;---- it will dump here

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats why you need to use Insert statement, in that case SAP will automatically insert the row at the appropriate index to keep the sorted order&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2008 18:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dump-itab-illegal-sort-order/m-p/4955060#M1155297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-22T18:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reg dump ITAB_ILLEGAL_SORT_ORDER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dump-itab-illegal-sort-order/m-p/4955061#M1155298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read this thread completely =&amp;gt;&lt;SPAN __jive_macro_name="thread" id="1171093"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2008 19:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-dump-itab-illegal-sort-order/m-p/4955061#M1155298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-22T19:31:17Z</dc:date>
    </item>
  </channel>
</rss>

