Skip to Content
Technical Articles
Author's profile photo Horst Schaude

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.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Farhan Zaidi
      Farhan Zaidi

      Hi Horst,

      Thanks for your updates on Archiving functionality.

      I have a few questions:

      1. Is it possible to add custom fields in the advance filter of search screen? If not, can SAP enable it from their end? We currently need a BP (Account/Individual Customer) ID field in the search filter.
      2. I don't see the Archiving Status field for Phone Calls, Appointments and Emails. How can it be made available?
      3. Is it possible to replicate the archived documents & their attachments to an external system?
      4. What is SAPs roadmap in Archiving? Are they planning anything from the above questions?



      Author's profile photo Horst Schaude
      Horst Schaude
      Blog Post Author

      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 (

      Sorry, that I can not provide any better answers.