You can archive gift cards by using the archiving object CRM_GC. The associated data is copied to external archive files and then deleted from the database.
The following programs are available for the archiving object CRM_GC:
RCRM_GC_ARCHIVE_WRITE (Write)
RCRM_GC_ARCHIVE_DELETE (Delete)
RCRM_GC_ARCHIVE_READ (Read)
You cannot reload archived gift cards into the system.
The archiving object for gift cards contains the following database tables:
Database Table |
Description |
---|---|
CRMD_GIFT_CERT |
Gift card accounts |
CRMD_GC_POSTINGS |
Gift card postings |
You have made the necessary settings. You do this on the SAP Easy Access screen for SAP CRM, under
. These settings include Customizing for the cross-archiving-object check program, where you determine the necessary program parameters for the archiving object CRM_GC.Gift cards are selected for archiving by using the following criteria:
The full value of the gift card has been redeemed, that is, the available amount in the gift card account is zero.
All business transactions (orders) that are related to the gift card have already been archived. This includes both the order with which the gift card was bought, and all orders in which the gift card was redeemed.
Check and replicate
In transaction SARA
, schedule a job for checking and replicating the gift cards. At the scheduled time, the system determines all gift cards for which the available amount is zero, and for which all related orders have already been archived.
Delete
After the system has written all archivable gift cards to the archive, schedule the corresponding delete program in archive administration. By doing this, you delete the archived data from the database.
Read
There is a read program in transaction SARA
, which you can use to display the archived gift cards again later, if required. It is also possible to search for and display archived gift cards on the WebClient UI.
You cannot reload archived gift cards into the system.
Note
You cannot use the gift card code to search in the archive.
Enhancements for the archiving object CRM_GC
The Business Add-In (BAdI) CRM_GC_ARCHIVING
in enhancement spot CRM_GIFT_CERTIFICATE
is available for the archiving of gift cards. You can use this BAdI to define selection criteria that should apply as a prerequisite for the archivability of gift cards, in addition to the criteria set in the system.
For more information about archiving data in SAP CRM, see SAP Library for SAP CRM on SAP Help Portal at http://help.sap.com/crm. Choose a release. In the application help, choose .