2640553 - How to archive BP (without customer/vendor role) by SARA
Symptom
- You create a BP by mistake in ERP or CRM system. You want to know how to archive the BP by SARA.
- Step-by-step guidance of using SARA with object CA_BUPA.
Environment
- SAP ERP Central Component 6.0
-
SAP ERP 6.0
- SAP Enhancement package for SAP ERP
- SAP Enhancement package for SAP ERP, version for SAP HANA
- software component SAP_ABA
Resolution
- Set archiving flag on unwanted BP by
- running transaction BUPA_PRE_DA or report BUPA_PREPARE_DA for the unwanted BP to set the archiving flag
- OR going to tab "Status" in BP transaction and set the archiving flag manually. (Non CRM System only) - Go to tcode SARA. Input object CA_BUPA which is used to archive business partners.
- Click on the Write button. Create a new Variant such as TEST. Then press Maintain button.
- Input the unwanted BP number into "Business Partner" field.
If the BP only contains general data, you could just selet the General data indicator. If the BP contains other company code data, you should select the unwanted company code data as well.
Choose the processing options as "Test mode" or "Production mode".
Then press the "Attributes" button in the left top corner. - Input the description. Then save the variant. It will come back to the screenshot in Step 5.
- Press BACK button.
- Maintain the start date of the job. Press "Start date" button.
In my test, I want to archive the BPs immediately, so I press "Immediate" button. Also, this can be schedule as a background job or a periodic job.
Click on SAVE button. Then the light of "Start date" becomes green. - Click on "Spool params." and choose the output service.
- Execute the write job.
- Press "job overview" button to monitor the job status.
To check whether there is error in the writing program, you can double click on "Spool" button and then double click on "ABAP list" button.
The following message "archived successfully" means the writing program being executed correctly. - Click on the DELETE button.
- Once the Write program is executed successfully, there is a writing file for you to choose. Select this file.
- Same as step 8 and 9. Maintain the "start data" and "spool parameters".
- Click on the "Customizing" button. Choose Archiving object-Specific Customizing -> Technical Settings.
- Maintain the Settings for Deletion Program:
Test mode Variant - SAP&TEST
Live mode Variant - SAP&PROD
And choose the content repository from F4 help.
Save. - Execute the Deletion program. And you could click on "job overview" button to check the job status.
- Once the deletion program is performed successfully, the unwanted BPs will be deleted from the system.
See Also
- SAP Note 2599676 - Transaction BUPA_DEL is obsolete
- SAP Document Archiving and Deleting Business Partner Data