Você está na página 1de 11

Financial Accounting Documents

Archiving Step by Step

Applies to:
SAP FI Module. For more information, visit the Data Management and Integration homepage.

Summary
Step by step approach of Archiving Financial Accounting documents using Archiving Object FI_DOCUMNT
is explained in this Article.

Author: Ashok Kumar Rajagopal


Company: Steria India Limited.
Created on: 08 May 2009

Author Bio
I am Ashok Kumar Rajagopal, One of the Senior SAP ABAP Consultant in our company
Steria India Limited. Currently I am playing the role of Team Leader. I have worked in USA for
around 4 years and also worked in client place located in Amsterdam, Netherlands.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 1
Financial Accounting Documents Archiving Step by Step

Table of Contents
Introduction .........................................................................................................................................................3
Configuration for Archiving..............................................................................................................................3
Step 1 - Creating Archive Files .......................................................................................................................4
Read Archived File:.........................................................................................................................................6
Step 2 - Deleting files from the Database .......................................................................................................8
Conclusion: .......................................................................................................................................................10
Disclaimer and Liability Notice..........................................................................................................................11

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 2
Financial Accounting Documents Archiving Step by Step

Introduction
The continuous usage of SAP results in huge amounts of enterprise data. This leads to problems such as
data overflow, longer transaction processing times, and performance degradation. Data Archiving removes
out-of-date data from the SAP database and store offline. This result in
• Greater System Availability.
• Improved Performance and Response Times.
• Save Costs by Optimizing our Available Resources.
In Archiving process, at least two steps are mandatory.
• Creating Archive Files
• Deleting files from the Database
These steps are described in detail for FI Accounting Document in following sections.

Configuration for Archiving


Configuration of Archiving Object is done at transaction AOBJ.Financial accounting documents are archived
via the archiving object FI_DOCUMNT.Let us see the configuration done for this.

Write and Delete Programs:

Some of the Tables from which entries are deleted after Archiving:

Customized settings:

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 3
Financial Accounting Documents Archiving Step by Step

Logical File name is defined in transaction FILE.

Step 1 - Creating Archive Files


Go to Transaction SARA.
Specify Archiving Object – FI_DOCUMNT

Select ‘Write’ Button.


Maintain Variant and give Variant Name.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 4
Financial Accounting Documents Archiving Step by Step

Maintain ‘Start Date’ & ‘Spool Params.’ .After maintaining, Lights will be Green.
Execute.

Job will be scheduled.

Once the job status becomes ‘Finished’, Select ‘Management’ in SARA.

It can be seen that Archiving is under the status of ‘Incomplete Archiving Sessions’.

and Archived file can be seen physically through transaction AL11,

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 5
Financial Accounting Documents Archiving Step by Step

in the path assigned to Logical Path.

Check Table BFIT_A to get the number of entries of the document number to which Archiving was done.
This will be used for verification of Deletion of Archived entries later.

Read Archived File:


Select ‘Read’ Button in SARA and Select Read program and execute.
Select Data source.

Select the Archived Session and File.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 6
Financial Accounting Documents Archiving Step by Step

The Archived documents can be seen.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 7
Financial Accounting Documents Archiving Step by Step

Step 2 - Deleting files from the Database


Select ‘Delete’ button in SARA.

Select Archiving Session and File for Deletion.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 8
Financial Accounting Documents Archiving Step by Step

Maintain Start data and Spool Parameters and then execute.

Check the entries for the Account number in table BFIT_A.

No record is found. This means the Archived records are successfully removed from the database.
Select ‘Management’ in SARA.

It can be seen that now the Archived record comes under the status of ‘Complete Archiving Sessions’

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 9
Financial Accounting Documents Archiving Step by Step

Conclusion:
Financial Account documents are Archived and Deleted from the database successfully.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 10
Financial Accounting Documents Archiving Step by Step

Disclaimer and Liability Notice


This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not
supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document,
and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or
code sample, including any liability resulting from incompatibility between the content within this document and the materials and
services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this
document.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 11

Você também pode gostar