cancel
Showing results for 
Search instead for 
Did you mean: 

ITAB_ILLEGAL_SORT_ORDER dump in CIC searching for Opportunities

Former Member
0 Kudos

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 :-

ITAB_ILLEGAL_SORT_ORDER

A line is to be inserted or changed at position 1 in the sorted
internal table (type SORTED_TABLE)
 "FUNCTION-POOL=CRM_LOCATOR_UICLASS=LCL_ONE_ORDER_HITLISTMETHOD=SEARCH_RESUL
T_DISPLAY_DYNAMICDATA=LT_HEADER_GUID".
In doing so, the sorting sequence - determined by the table key - was
destroyed.

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.
      ENDLOOP.

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,

Gareth.

Accepted Solutions (1)

Accepted Solutions (1)

sudheer-tammana
Advisor
Advisor
0 Kudos

HI Gareth,

Check SAP Note 1064605. This should solve the problem.

Regards,

Sudheer.

Former Member
0 Kudos

Hi Sudheer,

We're checking that note out now - there is no way we would have found it by searching!!

Thanks,

Gareth.

Former Member
0 Kudos

Hi Sudheer,

My basis guy has applied the OSS note for me now and it has fixed the problem.

Thanks very much!

Gareth.

Answers (1)

Answers (1)

Patrick_McMahon
Contributor
0 Kudos

Hi Gareth,

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

Regards,

Patrick.

Former Member
0 Kudos

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!)

Thanks,

Gareth.