on 2006 Aug 02 1:37 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.