03-27-2009 7:12 AM
hi abapers.
We need a sample code for archiving data for custom tables,
We have got enough function moduoles.but we are not able to sequence it.
If any body has come across this scenario please reply.
No special software is used,when we searched in sites manycompanies has implemented softwares.pleasse reply if we can get code to develop.
03-29-2009 1:31 PM
Hello Jansi,
could you provide more information for you requirements please ...
I suggest you to see "Archive link documentation"...
bye.
03-29-2009 1:48 PM
03-29-2009 7:53 PM
03-30-2009 8:19 AM
Basically you have two programs to create. In each program you open an archive file, process a list of objects, read or write data related to object, store stats and close the archive file.
Program 1 - archiving
- Select data to archive (in internal tables)
- Open archive to write (ARCHIVE_OPEN_FOR_WRITE)
- Loop at internal tables (sort by "object") and archive each object
- ARCHIVE_NEW_OBJECT for each "object" to start archiving process
- ARCHIVE_PUT_TABLE for pertinent data of internal tables
- You may also archive change document at this step using CHANGEDOCU_ARCHIVE_OBJECT, and texts with TEXT_ARCHIVE_OBJECT
- End the archiving of each "object" with ARCHIVE_SAVE_OBJECT
- Calculate and store stats with ARCHIVE_WRITE_STATISTICS
- Close archive file with ARCHIVE_CLOSE_FILE
Program 2 - delete archived data from database
- ARCHIVE_OPEN_FOR_DELETE to select archive file to be processed
- ARCHIVE_GET_CUSTOMIZING_DATA to get customizing information
- Loop at archive data to find records to delete from database
- ARCHIVE_GET_NEXT_OBJECT to find the "objects" to delete
- ARCHIVE_DELETE_OBJECT_DATA to start delete processing
- ARCHIVE_GET_TABLE for each internal table to process
- delete data from database, COMMIT WORK and ARCHIVE_GIVE_STATISTICS to store stats
- CHANGEDOCU_DELETE_ARCHIVE_OBJ to delete change documents and TEXT_DELETE_ARCHIVE_OBJ for texts
- Close archive file with ARCHIVE_CLOSE_FILE
For more information look at [Archive Development Kit|http://help.sap.com/saphelp_nw04/helpdata/en/2a/fa0391493111d182b70000e829fbfe/frameset.htm] and via AOBJ look at some SAP archive programs.
Regards
04-01-2009 12:00 AM
04-01-2009 8:56 AM
Hi,
SAP has provided some standard Objects for archiving. Use SARA and SARI transaction codes for data archving.
You will find this link usefull:
http://www.thespot4sap.com/articles/SAP_Data_Archiving_Support_Tools.asp
Regards,
Prashant.
Edited by: Prashant Kumar Upadhyay on Apr 1, 2009 9:57 AM
04-01-2009 10:49 PM
Hi,
With respect to coding your custom archiving object you have got good information.
Archiving requires Archive server to store the archive files from File directory to storage system. There are many vendors such as OpenText (ILE - IXOS), Documentum (EMC), HP Solution (OuterBay), EASSY, SAN DNA, Hitachi and so on.
Most of the vendors are closing working with SAP for more developements in managing the documents, archive data's, DMS documents, incoming & Outgoing mails attachments, Spool list, Vendor Invoice verification documents and so on.
SAP has provided its own software SAP Archive Content Server which is freely available in the SAP Market place for its client. On temporary basis you can use this but on long run and to have better performance you have to go with external software such as IXOS, DOCUMENTUM.
-Thanks,
Ajay
11-26-2009 3:58 AM