How to do data Archiving in SAP. Is there any tool in SAP or we can do it by ABAP code.
Yes Praveen, It is ABAP Code that does finally. Go to the transaction: AOBJ. Double click on any archiving object to get into details - you find the WRITE, DELETE and RELOAD programs. This is the code runs for the Archiving. But these programs have their significance. (Please see help for that, it is extensive)
Take a look at Archiving Object: BC_SFLIGHT in Transaction: AOBJ. Double click on that check the programs: SFLIGHTA, SFLIGHTD, SFLIGHTL.