Skip to Content
author's profile photo
Former Member

ITAB_ILLEGAL_SORT_ORDER dump in CIC searching for Opportunities

Hi All,

We currently have a strange problem when trying to search for opportunities in the CIC. We go in, enter a partner number and select it as the main partner. Then, we chose Opportunity as the object to find, enter a date range and click on start (all in the interaction info navigator area.) We then get a short dump of :-


A line is to be inserted or changed at position 1 in the sorted
internal table (type SORTED_TABLE)
In doing so, the sorting sequence - determined by the table key - was

Program                                 SAPLCRM_LOCATOR_UI
Include                                 LCRM_LOCATOR_UIL01
Row                                     174
Module type                             (METHOD)
Module Name                             SEARCH_RESULT_DISPLAY_DYNAMIC

The problem only occurs if a given partner has more than 1 oppotunity created - obviously, if the search logic only finds 1 opportunity document then when it appends the guid to the search results it doesn't cause a problem. As soon as more than one document is found the code fails:-

*     get result list
      LOOP AT iv_search->gt_search_result INTO ls_search_result.
        ls_header_guid-guid = ls_search_result-fieldval.
        APPEND ls_header_guid TO lt_header_guid.

I've search on here and throughout OSS but can't find any solution and to be honest, I can't see why the problem is occuring. Has anyone else ever had this problem and if, is there a solution?

Thanks in advance,


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Posted on Aug 21, 2007 at 10:09 AM

    HI Gareth,

    Check SAP Note 1064605. This should solve the problem.



    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 21, 2007 at 10:06 AM

    Hi Gareth,

    I suspect that lt_header_guid is a sorted table so you need to use INSERT rather than APPEND.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Patrick,

      Yes, I know what the problem with the code is - but its standard SAP code!

      I'm trying to understand what is actually causing it (I'm assuming it will be an OSS note somewhere but I can't find it!)