- In this blog, I will share step-by-step details about how to archive and delete BP (with vendor/customer role) completely in S/4HANA, and this blog is for ILM is not active situation.
++++++++++++++++++++++++++
How to check whether Simplified Deletion and Blocking of Personal Data is activated or not?
The switch and business functions as below can be checked in SFW5.
Switch
ILM (Information Lifecycle Management)
Business Functions
BUPA_ILM_BF (ILM-Based Deletion of Business Partner Data)
ERP_CVP_ILM_1 (ILM-Based Deletion of Customer and Supplier Master Data)
++++++++++++++++++++++++++
- More information can be found in KBA 2491026 Guided Answer – How to delete BP (with vendor/customer role) completely in S/4HANA
Note : In S/4HANA system, business partner cannot be deleted until linked customer/vendor is deleted. So make sure that the linked customer/vendor is deleted before BP deletion.
Step 1 : Set archive flag
BUT000-XDELE(Archiving flag)
If BP has customer role, please set flag KNA1-LOEVM & KNVV-LOEVM & KNB1-LOEVM
If BP has vendor role, please set flag LFA1-LOEVM & LFM1-LOEVM & LFB1 – LOEVM
Step 2 : Archive customer/vendor data.
To archive the customer/vendor data, please execute SARA transaction and use the archiving object FI_ACCRECV (for customer) and FI_ACCPAYB (for vendor).
In this step, if error occurs, please report case in below component
- FI-AR-AR-E (for object FI_ACCRECV)
- FI-AP-AP-E (for object FI_ACCPAYB)
- T-code SARA, input FI_ACCRECV, click on write button
- Give variant name, for example Test and click on Edit button
- Note : If FI (company code) and/or SD (sales area) data is assigned to the customer and/or FI ( company code) and/or MM ( purchasing organization) data is assigned to the vendor, archiving the customer/vendor master data is only possible, once those are already archived and deleted.
If customer exists in table KNB1, please give below informaton
If customer exists in table KNVV, please give below informaton
- ick on Variant Attributes button, in next screen maintain description field, and click on SAVE button.
- Click on button ‘Start Date' and ‘Spool Parameter', then click on execute Button.
- Then please click on ‘JOB' button, we can check the log to see whether it is success or not.
- If no error occurs, click on back button and click on DELETE button
- Click on Archive selection , and select the archive file which created in above step.
Click on start date button
Click on Spool Parameters button
Then click on execute button, - Then please click on ‘JOB' button, we can check the log to see whether it is success or not. If no error occurs, after all above steps, the customer will get removed from table KNB1/KNVV.
Step 3 archive and delete Business Partner
After above steps, the BP will not have customer role and vendor role, we can follow steps in below KBA to continue archive and delete Business Partner.
2640553 How to archive BP (without customer/vendor role) by SARA
Source link
