Archiving Business Partners
Archiving Business Partners
Purpose
Using archiving you can store business partner data that is no longer required and subsequently
delete it physically from the database. In this way the volume of data is reduced and performance
improved.
The archiving object for business partners is CA_BUPA.
Prerequisites
You have activated archiving. For more information about the steps required, see Activating
the Archiving Functionality.
1. In the case of your own data, settings must also be made in the following transactions:
Transaction BUS7 for BDT event modules
User-defined checks (ARCH1)
1. Write routines for user-defined fields or tables (ARCH3)
1. Delete routines for user-defined fields or tables (ARCH4)
Process Flow
The archiving and deletion of business partner data is performed in the following asynchronous
steps:
1. Flagging Business Partners for Archiving
Business partners can be selected for archiving as follows:
1. Directly from business partner maintenance by setting the To Be Archived indicator
1. Using a BAPI, method BusinessPartner.Change
1. By setting the archiving flag with the transaction BUPA_PRE_DA (Set Deletion or
Archiving Flag)
Once a business partner has been flagged for archiving, you are advised not to make any
changes to this business partner.
To be archived, business partners must have an archiving flag for which at least the number of
days defined in Customizing have passed since the check date. The default period of 30 days is
meant to ensure that enough time is available for carrying out synchronization. This should
prevent an order being created on the CRM Mobile Client in parallel to an archiving procedure on
the CRM Server, which could occur if synchronization has not yet taken place. The period can be
customized with transaction DA_CONTROL (or transaction SARA -> Check/Delete ->
Customizing).
Additional Information
For more information about archiving, see Introduction to Data Archiving (CA-ARC).
Constraints
The following restrictions apply to archiving business partners:
The reference business partner may not be archived.
1. A business partner may not be archived if there are still active business transactions.
The business transactions concerned must first be archived, before the relevant business
partners can be archived.
1. A business partner may not be archived if it is still actively used in the organizational
data.
1. There may no longer be any relationships (product – business partner). These can
however be archived together with the relevant products.
1. There may be no partner/product ranges. They have their own archiving procedure.
1. There may not be an active installed base.
These checks are defined in the form of event modules of the Business Data Toolset
(BDT) (event ARCH1). You have the option of including other check modules at this
point without making modifications.
The archive files for the archiving object CA_BUPA are created with the logical file
name ARCHIVE_DATA_FILE in the logical path ARCHIVE_GLOBAL_PATH.
This step is only required if you have not set the flag in Customizing for
automatically starting the deletion report with the stated report variant.
8. ...
40. Start the deletion of data from the database using the archiving administration,
(transaction SARA).
41. Enter the archiving object CA_BUPA.
42. Choose Delete.
43. Enter the archive selection, start date, and the spool parameters.
You must enter an output device in the spool parameters. Normally there is the output
device LP01 in the system (virtual printer).
44. Choose Execute.
The system sets the status of the archiving run to Complete.
The business partners archived or removed from the system, as well as the business
partners that are still being used and that cannot be archived or deleted, are recorded in a
log.
You can call up all the logs for your archiving object directly in the archive
administration.
You can delete and archive complete business partner data records only. It is not
possible to archive and delete only part of the business partner data.
Monitoring
1. Usage Check
During the usage check, business partners that could not be archived are recorded in the
application log. To evaluate these logs, use transaction SLG1 and enter the object
BDT_DATAARCHIVING and subobject BUPA. You are advised to also specify the date
and time of the usage check.
2. Archive Job
Execute transaction SARA and choose Goto → Job Overview to see the status of the
jobs generated in SARA for writing or deleting the archive.
3. Archive File
Execute transaction SARA and choose Goto → Statistics to display the status of the
archive files.
4. Archive Information System
Use the archive information system to display the archive files for business partners. The
following prerequisites must be fulfilled to be able to display data in the archive
information system:
Check if the archiving information structure CA_BUPA_ALL has already been activated.
1. ...
1. Choose the archiving information system (transaction SARI).
2. Choose Customizing.
3. In the field Archive Infostructure, enter CA_BUPA_ALL.
4. Choose Activate.
5. Check the system message.
1. Check if index structures were set up for the archive files.
2. ...
6. Choose the archiving information system (transaction SARI).
7. Choose Status.
8. In the field Archiving Object, enter CA_BUPA.
9. Choose Status per Archive.
10. If the structure status is incomplete, select the relevant archive.
11. Choose Build Structures.
You can execute the creation of the index structure in dialog or in the background.