cancel
Showing results for 
Search instead for 
Did you mean: 

Sort the result

0 Kudos

Hello,

We have CRM5 and internet sale. We would like to sort the search results of the trex on a material attribute.

Is it possible to do that in standard? can i do that with a user exit CRM or JAVA ?

i found this oss notes

Note 846055 - Example to enable Product Search Order using customer exit

Note 846054

but unfortunatly they are for R3-isa and not for CRM-ISA.

Thanks for your help.

Christophe

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Christophe,

to implement this requirement, you need to enhance the B2C application in the Java layer by your own coding. There is no user exit available.

You should start looking at the java action performing the search, which is CatalogQueryAction. When digging into the code you will find that the result of the search is a new WebCatItemList. This list has a sort(...)-method that you can use to change the sort behaviour.

The sorting of the result list is executed in the class GetItemPageAction, so you have to replace this class by your own one to change the sort-behaviour.

Just let me know if you need further help!

Best Regards,

Peter Kraus

SAP Web Channel Consultant

http://www.leonardo-it.com