cancel
Showing results for 
Search instead for 
Did you mean: 

How to get previous version of changed shopping cart

Former Member
0 Kudos

Hi All,

I have a requirement in which I have compare between two versions of shopping cart document. For example: if shopping cart initially order with name "Initial Shopping Cart" and then recalled or rejected and then user ordered it with name "Revised Shopping Cart". So similarly there can be other changes as well like quantity, price and all.

I want to get that. Please tell me if there is any FM or class method which can help me.

Thanks

Siddarth.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Siddarth,

You can directly see the changes done at the Shopping cart.

Just display the Document change given in the general data and there you can see all the changes done - Old value, new value, changed by etc.

OR

You can get the change log in BBP_PD also under change document.

Here you can get change log :

-sorted by time

-sorted by table

-sorted by user

hope this will help.

Thanks.

2k.

Former Member
0 Kudos

Hi Kuber,

Thanks for this but I am looking more from technical perspective. Can you tell me function module or class method which can be used for this purpose.

Thanks

Siddarth

former_member184741
Active Contributor
0 Kudos

try this Fm BBP_CHANGE_DOC_GET_NEW

Former Member
0 Kudos

Hi Sankara,

It is giving me details but not very clearly. If I can get one FM or table in which all the versions of SCs are saved with timestamp then I can pick from that.

Thanks

Siddarth

former_member184741
Active Contributor
0 Kudos

HI,

I don't think you will have different versions created for SC like for POs ( C1, C2 etc., )

Former Member
0 Kudos

But we have option to see different changes in either BBP_PD or via the FM which you mentioned. Any idea where those changes are maintained? Are they in a view or a table.

Thanks

Siddarth

former_member184741
Active Contributor
0 Kudos

they are stored CDHDR and CDPOS table. look into the FM CHANGEDOCUMENT_READ. in this FM give the objectclass as BBP_PROCDOC and objectid as SC header guid.