Technical Articles
Archiving – Optimize with PDI
When Business Objects are deleted by Archiving their persistency is simply relocated from the systems database to an external storage and they are no longer part of any business chain.
This means that during this deletion no other objects should be created or updated. No integration calls shall take place, except the information that this instance has been archived.
This is done for the most of the SAP frameworks centrally, but what about the enhancements via the Partner Development Infrastructure (PDI)?
As referred in this blog one can check against the element “ArchivingStatusCode” but with the current release it is much easier:
- Use the PDI Reuse Library Archiving with the function IsArchivingInProgress.
We propose to make use of this function in the Root implementations of all Business Objects supporting Archiving in one of the following ways:
- Skip your implementation in the AfterModify and BeforeSave scripts
- Delete the Custom Business Objects instances which are shadowing the SAP Business Objects in the OnDelete script
By this one can optimize the performance of this Archiving phase which we noticed takes the most time of the complete Archiving process.
Thanks to Stefan Kiefer for providing the examples.
Hi Horst,
Thanks for your updates on Archiving functionality.
I have a few questions:
Thanks,
Farhan
Hello Farhan,
Regarding your questions:
ad 1.) As Archiving is a generic framework and custom fields are individually defined in the Key User Tools it is nearly impossible to add a custom field in the Business Configuration.
ad 2.) Please raise an request to the resp. component(s)
ad 3.) No, this is not possible
ad 4.) If you want to enrich Archiving with some features please add them in the Customer Influence portal (https://influence.sap.com/sap/ino/#/campaign/1868)
Sorry, that I can not provide any better answers.
Bye,
Horst