cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

changing sort order of SC items?

Former Member
0 Kudos
423

Hi everybody

Just got a new request from our end users: is it possible to change the sort order of SC items?

They would like to have SC items being sorted in alphabetical order. It is especially requested for standard and/or personal SC templates or any other old SC and would make it much easier for our end users to find items in templates (we're talking about templates with up to 400 items!).

It is not necessary and not wanted to change sort order every time a new item is added to the SC... just when parking or saving it.

I was thinking about BAdI BBP_DOC_CHECK_BADI or BBP_DOC_SAVE. Is it possible from there to read the SC content into internal table, to change sort order and to store the SC with alphabetically sorted items?

Did someone out there already implement a similar logic and is willing to share some example code?

TIA and best regards,

Renaud

View Entire Topic
Former Member
0 Kudos

dear renaud

This is possible with BBP_DOC_CHECK_BADI and BBP_DOC_CHANGE_BADI

Look for shopping cart when it is order before saving the SC say if there are 400 lines items then take all in an internal table sort them and pass the new sequence to the final updating FM which will in turn save the SC in same sort.

we have not done this however this is possible through badi .

regards,

Nimish Sheth