Professional Documents
Culture Documents
SAP Note 2197465 - E - 20231018
SAP Note 2197465 - E - 20231018
SAP Note 2197465 - E - 20231018
2197465 - SAPconnect (BCS) mails archiving and deletion in CRM including ERMS
specific aspects
Component: CRM-IC-EMS (E-Mail Response Management System), Version: 7, Released On: 01.05.2023
Symptom
You are using BCS mails in SAP CRM business processes. You want to remove the BCS mails from the system together with
the CRM business transactions. In case you are using ERMS (Email Response Management System) you also want to remove
the ERMS based work item and the ERMS status table entries once the BCS mail is removed from the system.
Environment
Handling of archiving improved with SAP CRM 7.0 EhP3 SP12 and CRM 7.0 EHP4 SP2
Resolution
In the following, we describe how various tools and steps can be combined into a process of consistently removing business
transactions and their related SAPconnect mails (=BCS mails) from the CRM system. As a prerequisite the Business Function
BUPA_ILM_BF has to be activated in transaction SFW5, please mind the release information. KBA 1641394 explains how-
to activate Business Function and what to consider.
As described in the SAP Help Portal documentation (Data Archiving in SAP CRM -> Archiving of E-Mails) E-mails get
archived in the same archive as the business transaction itself on CRM-side. A prerequisite for this is the BCS link between
BCS mail and CRM business transaction. This link is created when an in- or outbound BCS mail is linked to a CRM business
transaction.
Removing the data from the system can be achieved by the following steps that relate to the below diagram:
ArchivingMails.png
The sequence (1 to 5) of the steps and the dependencies between certain steps assure that emails and email related data are
removed in a consistent sequence together with the business transactions. The goal is to keep the entire business process
including all transactions and emails in the system until all business transactions of the process are relevant for archiving.
Only then, all transactions and emails will be archived and removed together from the system.
1. Step: Archiving of CRM business transaction and BCS mails
Archiving of the CRM business transaction via the CRM archiving object includes the archiving class for the BCS mails.
This way the business transaction, the BCS mail, and the link are written into the same archive.
For example, you can use archiving object
CRM_ACT_ON CRM Activities to archive Interaction Records
CRM_INCDNT IT Service Management case CRM to archive Service Requests
For further information on available archiving objects, check SAP Help Portal
2. Step: Deletion of CRM business transaction and BCS link
The Deletion of the CRM business transaction as part of the archiving process also deletes the BCS link.
See Also
1. In systems with product versions lower than SAP CRM 7.0 EhP3 SP12, use existing options for deleting email related
data can be used in parallel to or after archiving business transactions as follows. For deleting the BCS mail use the BCS
reorganization reports RSSODFRE (delete hidden folder entry) and RSBCS_REORG (delete email) by restricting the
deletion e.g. to mails within a time interval (e.g. 01/01/2014 to 12/31/2014).
2. Archive/delete the ERMS work items using transaction SWW_SARA e.g. by using the same time interval as in step I.).
To make additional checks you can implement the workflow archiving BAdI e.g. as described in SAP Note 2269600.
3. Delete the ERMS status table entries using report/transaction: CRM_ERMS_DELETE_DATA by again setting up a
time interval matching the previous steps
Attributes
Key Value
Products
Products