cancel
Showing results for 
Search instead for 
Did you mean: 

Where to control copy of items from Old SC / template (add items) in shopping cart?

Former Member
0 Kudos
214

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

Accepted Solutions (1)

Accepted Solutions (1)

laurent_burtaire
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

Answers (0)