on 08-21-2007 10:56 AM
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.
HI Gareth,
Check SAP Note 1064605. This should solve the problem.
Regards,
Sudheer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gareth,
I suspect that lt_header_guid is a sorted table so you need to use INSERT rather than APPEND.
Regards,
Patrick.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.