cancel
Showing results for 
Search instead for 
Did you mean: 

How to sort cart data by value of an item's custom field?

vrjadhav
Participant
0 Kudos
472

I've added a new quote item custom field (QICF) to the cart, and I'd like to sort the data by its value. Is there anyone who knows how to do it?

Accepted Solutions (0)

Answers (1)

Answers (1)

yogananda
Product and Topic Expert
Product and Topic Expert

Hi vrjadhav

Thanks for sharing the screenshot. I see the Price R1 values in child item but it cannot be sorted as Item Line starts from 1.1 to till end for configurable materials. you can sort for simple products.
vrjadhav
Participant
0 Kudos

Hello yoganandamuthaiah
Okay, then consider a second strategy for sorting document table that include identical cart data. Can we sort this cart data in the document table by the item's CF(PriceR1) value?

yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi vrjadhav
Second strategy works I am guessing for quote output document to control the sort. you can use C2 Loop tag which has lot of scenarios

Its in help documentation for reference
https://help.sap.com/viewer/884885f05e6b4c8082254d4d9d63f19b/2111/en-US/c7285cd1268c4497a9481bea8765...

vrjadhav
Participant
0 Kudos

Hello yoganandamuthaiah ,

There is no tag specified there that will sort the column values of the document table, as far as I can tell. Could you kindly assist me?

We just have the below conditions:

<<C2_PTYPE_ALL_SortByNameButStartWith(Drive, Services, Hardware, Computer)>>
<<C2_PTYPE_ALL_SortByName()>>

<<C2_PTYPE_ALL_SortByRankButStartWith(First,Second,Third...)>>