Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

archiving

Former Member
0 Kudos

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.

8 REPLIES 8

Former Member
0 Kudos

Hello Jansi,

could you provide more information for you requirements please ...

I suggest you to see "Archive link documentation"...

bye.

Former Member
0 Kudos

HI,

Check the DB15 too

Refer to this link..

Former Member
0 Kudos

This link may useful :

raymond_giuseppi
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Jansi,

Please refer to SBOOK program.

Cheers.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

With respect to coding your custom archiving object you have got good information.

Coming to Software required for Archiving:

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

Former Member
0 Kudos

answered