on 2015 Dec 04 1:26 PM
Hello Experts,
Here is a situation-
When a user adds line items in SC screen and chooses "From old shopping cart / template" we get a lot of attributes copied from the old shopping cart item like- Company code, Plant, Storage Location, Delivery address.
We have a requirement in which old shopping carts will be treated as global template and the above attributes must get overwritten by the requester's default attributes( e.g. default storage location, default plant and other attributes). We can have it done in DOC CHANGE badi but if the user changes anything (like change of plant from default to non-default plant for the requester), we must be accepting the change too.
Kindly help.
Mohit Kumar
Request clarification before answering.
Hello Mohit,
method concerned is /SAPSRM/IF_CLL_SOSM_SC_TEMPL~ADD_TO_SC from /SAPSRM/CL_CH_WD_SOSM_SC_TEMPL class: you will have to enhance it.
Check also method ADD_ITEM_INTERNAL from /SAPSRM/CL_PDO_BO_SC class to see how internal handling of item creation is managed.
Regards.
Laurent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Laurent, thanks for your answer... but the trick here was below-
There is a field COPY_OF_GUID which gets populated for one time when the item(or items) is just copied. We had to pitch in the logic there for this condition(copy_of_guid is not initial). When user performs any other action and DOC CHANGE triggers, this field gets cleared. I got this 5 minutes back
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.