Incorrect Buy on Behalf name displayed for Deleted Shopping Cart
The issue is with the deleted Shopping Carts.
In case of non deleted Shopping carts the Buy on behalf field displays correct value.
I debugged and found that there is a bug in standard code itself.
In class /SAPSRM/IF_CLL_MAPPER~REFRESH, the code is written for non deleted and deleted SC to read the buy on behalf value.
In case of non-deleted the of condition reads the item values and item guid is exported to patner table that returns the buy on behalf value.
But in case of deleted SC the
the else condition is executed where the requestor id is used to get the patner table which inturn gives us the buy on behalf value.
The difference is with the requestor id (MV_REQUESTOR_ID) in both cases.
In case of non deleted SC the requestor ID is different and in case of deleted Sc the requestor id is the vlaue of one who currently is viewing the SC.
Thanks in advance,