SAP Note
76801 - FI document archiving SAPF048I
Component: FI-GL-GL-E (Archiving), Version: 3, Released On: 04.11.1998
Symptom
You carried out an FI document archiving. Within this archiving, the index deletion program
SAPF048I was run to delete the secondary indexes (BSAD, BSAK, BSAS, BSIS - for accounts that
are not managed on an open item basis) - only secondary indexes for documents already
archived can be deleted.
There is the following constellation for accounts managed on an open item basis:
From a secondary index point of view, clearing procedures were separated. In the line item
display of the account, this leads to a balance not equal to zero for the total of all
cleared items. Moreover, different balances are displayed if you branch from the balance
display to the line item display.
Other Terms
SAPF048, SARA, FI_DOCUMNT, differences, FBL1, FBL3, FBL5, FS10, FD10, FK10, balance, line
item, clearing procedure, clearing, secondary index, customer, customers, vendor, vendors,
G/L account
Reason and Prerequisites
Processing logic of SAPF048I does not consider any clearing procedures, but analyzes every
single secondary index for its age to see whether it should be deleted.
Thus, the symptom described above can occur depending on how the Customizing for archiving
has been maintained (table T070 and T071).
Furthermore, up to and including Release 3.0E, a check was made for the posting date and not
for the clearing date, so that clearing procedures were inevitably separated (see Note
73121).
With Release 3.0F, a performance measure was implemented in SAPF048I, which may also have
caused the above symptom.
This symptom can also always occur if table T071 was incorrectly maintained and indexes were
actually deleted too early.
Solution
If indexes were deleted too early due to incorrect Customizing, you can use SAPF048S to
recreate the secondary indexes for the archives or archived fiscal years/periods.
Program SAPF048S can also be used if clearing procedures were separated by SAPF048I,
although Customizing was set correctly.
If you do want to discard old secondary indexes to clear the respective tables and if there
is no space or too little space available to recreate all indexes again, you can apply
repair report RFCORRIX.
RFCORRIX analyzes the accounts of customers and vendors. It checks each clearing document
number whether all the indexes available on the account result in a zero balance. If the
result is a balance unequal to zero AND if ALL the respective indexes refer to documents
that have already been archived, these indexes are deleted for this clearing procedure (plus
the respective BSAS/BSIS indexes for the BSAD or BSAK indexes).
It now depends on the constellation of your system whether you directly run RFCORRIX and
therefore also delete these 'practically unnecessary' indexes, or whether you first use
SAPF048S to recreate the indexes for certain fiscal years/periods and then 'clear up' the
clearing procedures with RFCORRIX.
Note: despite having run RFCORRIX (possibly also previously SAPF048S), it may be in
individual cases that the balance of the cleared items are not equal to zero: if clearing
procedures have already been separated through archiving of the documents so that, for
example, the invoice has already been archived, though the payment not yet. Since the
indexes cannot be recreated selectively for a clearing procedure or for a clearing document
number, the apparent difference problems may occur under certain circumstances at a later
point in time. However, you can ensure with RFCORRIX and SAPF048S here that the fiscal years
relevant to you always display a zero balance concerning the cleared items and match the
balance display in the balance.
A display balance of zero can only be achieved for certain if the secondary indexes are
recreated for all available document archives and if then all 'unnecessary indexes' are
removed with report RFCORRIX.
You can import program RFCORRIX from sapserv3:
Path: general/R3server/abap/note.0076801 (also consider Note 13719 when importing advance
corrections).
Manual Activities
Software Components
Software Component And subsequent
SAP_APPL
Correction Instructions
Software Component Number of Correction Instructions
SAP_APPL 2
This document refers to
SAP Note/KBA Title
81489 Del. program of secondary indexes FI docs SAPF048I
This document is referenced by
SAP Note/KBA Title
81489 Del. program of secondary indexes FI docs SAPF048I