on 11-26-2012 10:19 AM
Dear Experts
I am facing the following issue;
I need to compare the approved Invoice value with the previous version of an invoice.
I tried to use FM BBP_PROCDOC_GETDETAIL_ARCHIVE, but I can get just the very first version of Invoice in its ET_HISTORY_ARCH table.
Anybody could help on this topic?
Thank you
Regards
Imrich
Hello Imrich,
The prerequisite to retrieve previous version of an Invoice is to have flagged Version Control in Customizing.
Then, you just need to:
1. Run function module BBP_PD_INV_GETDETAIL
2. Read E_VERSION table. There you will get the HEADER's GUIDs of all versions.
Just take the one you want (by your own logic, like date or something)
3. Run function module BBP_PD_INV_GETDETAIL with the GUID ID you have selected from step 2.
Regards,
Sebastián
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello Sebastian.
Yes I tried that approach before, but the E_VERSION table contains only the same GUID as we have it now. It seems to me that Invoices have no versions with different GUIDs.
Please test it for yourself.
The invoice is created and some data have changed during approval. How can I retrieve the data of the previous version of a Invoice?
Regards
Imrich
Hello Imrich,
Is in SAP Supplier Relationship Management > SRM Server > Switch On Version Control for Purchasing Documents; there you need to flag on BUS2205 Invoices.
Please be sure that Invoice have more than one version, in SAP SRM, modifications to an approved document creates new versions, if document has been modified until it gets approved I believe that SRM does not create new versions.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.