ST - FI - DOCUMNT - Training External v4
ST - FI - DOCUMNT - Training External v4
PUBLIC
1
Agenda
What is new?
Process flow of financial archiving
Subledger – dependencies
FI-AP/AR documents archiving
FI-GL documents archiving
FI-AP/AR totals archiving
FI-GL totals archiving
Compression run
Archiving of Master Data
How to access archived financial data?
2
What is new?
3
Data Archiving, Data Aging & ILM in SAP S/4HANA
HOT /
Current
COLD /
Historical
Archived
Data
4
FI_DOCUMNT: What’s new? (1) – overview
Past
Archiving object FI_DOCUMNT was no longer available by transition into SAP S/4HANA world (starting with
SAP Simple Finance add-on 1.0)
In spite of this, data aging for financial was introduced (data aging object: FI_DOCUMENT).
What’s new
Archiving object FI_DOCUMNT is re-implemented
– via support package / SAP note as of:
▫ SAP S/4HANA Finance 1503 (by SAP notes 2498230 & 2508708, support package 08)
▫ SAP S/4HANA Finance 1605 (by support package 04)
– in standard as of:
▫ SAP S/4HANA Finance, on-premise edition 1610 and following
▫ SAP S/4HANA Finance cloud edition 1611 and following
Archiving object FI_TF_GLC is replaced with FI_TF_GLF
5
FI_DOCUMNT: What’s new? (2) – overview
What’s new
Archiving of different sub-ledgers (e.g. Asset Management, Controlling) is required for FI archiving
Archiving of Material Ledger documents is no longer a pre-requisite for FI archiving (SAP note 2659820)
Archiving objects CO_ITEM and CO_TOTAL will be replaced with CO_TRANS
Archiving with CO_TRANS can only be performed for complete fiscal years
6
Process flow of financial archiving
7
Excursus: Universal Journal: single source of truth
8
Process flow of financial archiving – graphical overview
Sequence
© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 9
remain still the same and are still valid. But they won’t be discussed in this document.
FI Totals:
No pre-requisite for compression run! Compression run can also be executed without FI
totals archiving. But in case you need to fulfill Data Privacy & Protection requirements, you
need to perform FI totals archiving.
9
Subledger –
dependencies
10
Process flow of financial archiving – graphical overview
Sequence
© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 11
remain still the same and are still valid. But they won’t be discussed in this document.
FI Totals:
No pre-requisite for compression run! Compression run can also be executed without FI
totals archiving. But in case you need to fulfill Data Privacy & Protection requirements, you
need to perform FI totals archiving.
11
Subledger –
dependencies CO
12
Dependencies in more detail – subledger CO
Archiving objects
CO_TRANS
CO_ALLO_ST
CO_ORDER
COPA2*
Archiving class
K_COSTS
Further information:
CO_ITEM and CO_TOTAL will be replaced by CO_TRANS
13
subledger CO – CO_TRANS additional information
Availability of CO_TRANS:
– SAP S/4HANA Finance 1503 up to SP07 (SAP_FIN 720): see SAP notes 2230377, 2512758
– The functionality is available without correction instructions as of:
▫ SAP S/4HANA Finance 1503 SP08
▫ SAP S/4HANA OP 1511 SP06
▫ SAP S/4HANA Finance 1605 SP04
▫ SAP S/4HANA OP 1610 SP00 and later releases
Usage of reconciliation objects within CO_TRANS: see SAP note 2426075
Usage of additional ledgers in FI (not only leading ledger): please implement SAP note 2535263
Selection criteria of CO_TRANS:
– not possible for single periods (like CO_ITEM)
– as CO_TRANS is also archiving the totals (on a yearly basis as it always includes periods 1-12 and up to 4
special periods), complete year needs to be included in archiving
CO_TRANS & CO_ALLO_ST: no dependency between them
Further information:
CO_ITEM and CO_TOTAL are replaced by CO_TRANS
14
subledger CO – CO_TRANS reporting for CO totals
with archive access
15
subledger CO – preparation of migrated CO documents
for FI compression
Transactions
FINS_AR1_ANALYZE: this report gives you the number of CO entries that can be marked
for deletion / as ‘no longer CO relevant’ in ACDOCA.
FINS_AR1: will update ACDOCA for the above selected documents
FINS_AR1_MONITOR: transaction to monitor the procedure
Execution
Each time you have archived CO data with relevance to ACDOCA (e.g. after CO_TRANS archiving).
16
Subledger –
dependencies AA
17
Dependencies in more detail – subledger AA
Archiving object
AM_ASSET
AM_STEUER
Please implement SAP note ‘2608278: Checking for assets in ACDOCA’ so that asset
existence will be checked for special scenarios based on ACDOCA and BSEG
18
Dependencies in more detail – Why is AA archiving required?
Consistency reason
By only archiving table ACDOCA without archiving in Asset Management itself, the statistical line item of
asset accounting would remain (table FAAT_DOC_IT) and also asset master data.
To ensure data consistence, only complete business scenarios can be archived.
Reporting reason
By only archiving table ACDOCA without archiving in Asset Management itself, no valid asset reporting
would be possible any longer.
The legal reporting of AA (e.g. report RABEST, RAGITT) has an archive file access.
Therefore legal reporting for AA can be done even the documents in AA have been
archived. There is technically no need to keep the AA data online in the system.
19
Subledger –
dependencies ML
20
Dependencies in more detail – subledger ML, no longer required
Archiving objects
CO_ML_BEL
CO_ML_IDX
CO_ML_DAT
Usage of note 2659820: ML and FI archiving logic is no longer dependent from each other.
Performing ML archiving will archive the relevant ML tables, but ACDOCA entries will
remain until FI archiving and compression will handle them.
21
subledger ML – additional information ACDOCA_M_EXTRACT
Symptom
decrease in system performance in Inventory Valuation area during posting period
Reason
usage of new data model in SAP S/4HANA (Material Ledger is using table ACDOCA), select on this could be
slow
Solution
implementation of table ACDOCA_M_EXTRACT (actual inventory quantity and value data is calculated
based on this table and no longer based on ACDOCA)
during material inventory document posting, records (inventory valuation relevant) will also be inserted into
ACDOCA_M_EXTRACT
ACDOCA_M_EXTRACT is periodically condensed periodically reduced
access on ACDOCA_M_EXTRACT is faster
22
FI-AP/AR
documents archiving
Vendor / Customer documents
23
Process flow of financial archiving – graphical overview
Sequence
© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 24
remain still the same and are still valid. But they won’t be discussed in this document.
FI Totals:
No pre-requisite for compression run! Compression run can also be executed without FI
totals archiving. But in case you need to fulfill Data Privacy & Protection requirements, you
need to perform FI totals archiving.
24
FI-AP/AR documents archiving – graphical overview
BKPF,
creates x_BCK deletes x_BCK
BSEG…
secondary index secondary index
KNCX_DIF /
creates
ACDOCA LFCX_DIF
total record for
(with BSTAT archived entries
ne “C")
updates ACDOCA-BSTAT
= “C"
FI_DOCUMNT_WRI:
- Creates archive files for all FI document relevant tables, e.g.:
- BKPF
- BSEG
- ACDOCA
- FAGLFLEXA
- By saving all these tables in archive files, already existing reports using archived data can still be used / no coding
changes for them are needed. (see SAP note 2346296 section ‘storage format)
Further information for tables x_BCK and KNCX_DIF / LFCX_DIF can be found within SAP note 2346296.
x_BCK:
• Entries will be written if account type life of the secondary indexes is maintained as longer than that of the
documents.
• In addition like previously (SAP ERP), there is a postprocessing program for document archiving for the deletion of
the secondary indexes (tables BSIS_BCK, BSAS_BCK, BSAD_BCK and so on) (report: FI_DOCUMNT_PST) and a
utility program for the creation of the secondary indexes from archived documents (report: SAPF048S).
• You can save these secondary indexes in the historical area of the database in order to restrict the effect on the
data volume. To do so, data aging must be active and the partitioning object FI_INDEX must have been
maintained. An aging object is not required.
KNCX_DIF / LFCX_DIF:
In the case of AP/AR, during the archiving of the FI document (FI_DOCUMNT), auxiliary tables that are also used during
the migration to S/4 HANA are compiled synchronously (update). The auxiliary table LFCX_DIF or KNCX_DIF contains
the total of the archived documents and is taken into account for the totals views of AP/AR.
In case, customer has year-dependant number ranges for FI documents (e.g. document number 1234 can be used in
fiscal year 2019 and 2020), please implement SAP note 2696008.
Further information for ACDOCA-BSTAT:
BSTAT = C can have different reasons / sources:
- Archived documents (FI_DOCUMNT_DEL updates value C)
- Balance carry forward is also updating C (then also POPER = 000)
- Entries coming from totals migration (migration to S/4HANA, then also MIG_SOURCE is not equal blank) will also
update value C
BSTAT = ‚C‘ does not only mean archived document, it rather means: entry is only TOTALS relevant, but no longer
LINE ITEMS relevant
To get TOTALS, all BSTAT = ‚C‘ entries need to be taken in addition to ACDOCA line item entries
If an entry has ACDOCA-BSTAT = C, it means this entry can not be seen via line item display transactions (e.g.
FAGLL03) or document display transactions (e.g. FB03). This entry is only relevant for calculating correct total
amounts for this account.
25
FI-AP/AR documents archiving – technical details
Archiving Object
FI_DOCUMNT
Archiving Reports
FI_DOCUMNT_WRI (write program):
– Writes entries in archive file (also for ACDOCA)
FI_DOCUMNT_DEL (delete program):
– Deletes tables entries (e.g., BKPF, BSEG) but not in ACDOCA!
– Updates ACDOCA-BSTAT with value “C"
– Optional: creates secondary index entries in BSIS_BCK, BSAS_BCK, BSAD_BCK, BSAK_BCK tables
– Creates total records in LFXC_DIF / KNCX_DIF
FI_DOCUMNT_PST (postprocessing program):
– Will delete secondary index entries in tables BSIS_BCK, BSAS_BCK, BSAD_BCK, BSAK_BCKs and BSIP
– Will handle “old” secondary index entries, i.e., entries for which original documents were archived before
this run and secondary index entries were built in _BCK tables
© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 26
26
FI-AP/AR documents archiving – remarks
SAP note
2346296
27
FI-GL
documents archiving
General Ledger documents
28
Process flow of financial archiving – graphical overview
Sequence
© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 29
remain still the same and are still valid. But they won’t be discussed in this document.
FI Totals:
No pre-requisite for compression run! Compression run can also be executed without FI
totals archiving. But in case you need to fulfill Data Privacy & Protection requirements, you
need to perform FI totals archiving.
29
FI-GL documents archiving incl. Post-Processing – graphical overview
ACDOCA
(with BSTAT
ne “C")
updates ACDOCA-BSTAT
= “C"
FI_DOCUMNT_WRI:
- Creates archive files for all FI document relevant tables, e.g.:
- BKPF
- BSEG
- ACDOCA
- FAGLFLEXA
- By saving all these tables in archive files, already existing reports using archived data can still be used /
no coding changes for them are needed. (see SAP note 2346296 section ‘storage format)
Further information for tables x_BCK can be found within SAP note 2346296.
x_BCK:
• Entries will be written if account type life of the secondary indexes is maintained as longer than that of
the documents.
• In addition like previously (SAP ERP), there is a postprocessing program for document archiving for the
deletion of the secondary indexes (tables BSIS_BCK, BSAS_BCK, BSAD_BCK and so on) (report:
FI_DOCUMNT_PST) and a utility program for the creation of the secondary indexes from archived
documents (report: SAPF048S).
• You can save these secondary indexes in the historical area of the database in order to restrict the effect
on the data volume. To do so, data aging must be active and the partitioning object FI_INDEX must have
been maintained. An aging object is not required.
Further information for ACDOCA-BSTAT:
BSTAT = C can have different reasons / sources:
• Archived documents (FI_DOCUMNT_DEL updates value C)
• Balance carry forward is also updating C (then also POPER = 000)
• Entries coming from totals migration (migration to S/4HANA, then also MIG_SOURCE is not equal
blank) will also update value C
BSTAT = ‚C‘ does not only mean archived document, it rather means: entry is only TOTALS relevant,
but no longer LINE ITEMS relevant
To get TOTALS, all BSTAT = ‚C‘ entries need to be taken in addition to ACDOCA line item entries
If an entry has ACDOCA-BSTAT = C, it means this entry can not be seen via line item display
transactions (e.g. FAGLL03) or document display transactions (e.g. FB03). This entry is only relevant for
calculating correct total amounts for this account.
30
FI-GL documents archiving – technical details
Archiving Object
FI_DOCUMNT
Archiving Reports
FI_DOCUMNT_WRI (write program):
– Writes entries in archive file (also for ACDOCA)
FI_DOCUMNT_DEL (delete program):
– Deletes tables entries (e.g. BKPF, BSEG) but not in ACDOCA!
– Updates ACDOCA-BSTAT with value “C"
– Optional: creates secondary index entries in BSIS_BCK, BSAS_BCK tables
FI_DOCUMNT_PST (postprocessing program):
– Will delete secondary index entries in tables BSIS_BCK, BSAS_BCK, BSAD_BCK, BSAK_BCK & BSIP
– Will handle “old” secondary index entries, i.e., entries for which original documents were archived before
this run and secondary index entries were built in _BCK tables
31
FI-GL documents archiving – remarks
SAP note
2346296
32
FI-AP/AR
totals archiving
Vendor / Customer totals
33
Process flow of financial archiving – graphical overview
Sequence
© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 34
remain still the same and are still valid. But they won’t be discussed in this document.
FI Totals:
No pre-requisite for compression run! Compression run can also be executed without FI
totals archiving. But in case you need to fulfill Data Privacy & Protection requirements, you
need to perform FI totals archiving.
34
How are AP/AR totals calculated in the system?
“dummy” total
actual / online
records created for
data, not yet
already archived
archived
AP/AR documents
35
FI-AP/AR totals archiving – technical details
Archiving Object
FI_TF_CRE (vendor totals)
FI_TF_DEB (customer totals)
Archiving Reports
FI_TF_CRE_WRI / FI_TF_DEB_WRI
FI_TF_CRE_DEL / FI_TF_DEB_DEL
Remark
During AP/AR totals archiving, the amount of tables LFXC_DIF / KNCX_DIF will be adapted in that way that
amount of these tables and not yet archived documents from ACDOCA will balance to zero.
In case all documents (referring to one total record) are already deleted, there is no longer any amount in
x_DIF tables and therefore entry in x_DIF can also be deleted.
Totals archiving is no pre-requisite for compression run. It is needed to fulfill Data Privacy & Protection
requirements.
© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 36
36
FI-GL
totals archiving
General Ledger totals
37
Process flow of financial archiving – graphical overview
Sequence
© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 38
remain still the same and are still valid. But they won’t be discussed in this document.
FI Totals:
No pre-requisite for compression run! Compression run can also be executed without FI
totals archiving. But in case you need to fulfill Data Privacy & Protection requirements, you
need to perform FI totals archiving.
38
How are GL totals calculated in the system?
ACDOCA- ACDOCA- GL
BSTAT ≠ C BSTAT = C totals
already archived
actual / online
GL documents,
data, not yet
balance carry
archived
forward…
BSTAT = ‚C‘ does not only mean archived document, it rather means: entry is only
TOTALS relevant, but no longer LINE ITEMS relevant
To get TOTALS, all BSTAT = ‚C‘ entries need to be taken in addition to ACDOCA line
item entries
If an entry has ACDOCA-BSTAT = C, it means this entry can not be seen via line item
display transactions (e.g. FAGLL03) or document display transactions (e.g. FB03).
This entry is only relevant for calculating correct total amounts for this account.
39
FI-GL totals archiving FI_TF_GLF
FI_TF_GLF_WRI FI_TF_GLF_DEL
‘GL total’
Archive
(Structure:
ACDOCA
ACDOCA FAGLFLEXT)
creates ACDOCA-BSTAT = “C“
(with BSTAT
= “C") Amount = -30$
(inverted sign)
Example
Line items no longer visible (access via archive) Line items no longer online visible (access via archive)
Totals online visible (database) Totals no longer online visible (access via archive)
End-user
© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 40
- Totals archiving is no prerequisite for Compression Run, i.e. compression run can be
executed with or without totals archiving before.
Compression Run:
- Matching ‚total‘ records which balance to 0 and deleting them.
- Compresion Run has only technical impacts on table ACDOCA by reducing the
number of entries of ACDOCA (after successfull run). It has no impact on business
view / access of end-users for ACDOCA.
40
FI-GL totals archiving – technical details
Archiving Object
FI_TF_GLF
Archiving Reports
FI_TF_GLF_WRI
FI_TF_GLF_DEL
Remark
As the GL totals will no longer be saved in a separate totals table in the system, each GL total will be
calculated on the fly when needed. Calculation is based on entries in table ACDOCA. When archiving GL
totals, entries in ACDOCA won’t be deleted as they might still be needed. Therefore during the archiving
delete run no deletion takes place, but an entry with inverted sign is inserted into ACDOCA to set the
resulting balance to zero.
A real data record reduction will take place by executing compression run.
Totals archiving is no pre-requisite for compression run. It is needed to fulfill Data Privacy & Protection
requirements.
41
Compression run
42
Process flow of financial archiving – graphical overview
Sequence
© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 43
remain still the same and are still valid. But they won’t be discussed in this document.
FI Totals:
No pre-requisite for compression run! Compression run can also be executed without FI
totals archiving. But in case you need to fulfill Data Privacy & Protection requirements, you
need to perform FI totals archiving.
43
Compression run – Several entries will become one or none entry
CO/ AA
archiving ACDOCA-BSTAT
ACDOCA-BSTAT
=“C" =“C"
FI Documents Compression
archiving
Run
Archiving of different modules won’t delete entries in table ACDOCA, but will “mark”
ACDOCA-entries as no longer relevant for them by:
CO:
ACDOCA-CO_BELNR = filled CO document, CO archiving will initialize
ACDOCA-CO_BUZEI
ACDOCA-BSTAT = “C” and ACDOCA-MIG_SOURCE = “C” CO document from
migration, CO archiving will initialize ACDOCA-OBJNR
FI documents: line item no longer item relevant, only total relevant (ACDOCA-BSTAT =
“C" set by archiving object FI_DOCUMNT)
GL totals: entry with inverted sign inserted in ACDOCA by archiving object FI_TF_GLF
The compression run replaces all entries of ACDOCA fulfilling above criteria with
aggregated entries. This aggregation takes place on the granularity of the balance carry
forward, thus no changing this balance. In case balance will be zero (i.e. all documents and
totals are already archived), no aggregated entry will be written. In this moment,
compression run will only delete old entries.
In case the compression run is executed after document archiving, the effect is mainly a
memory footprint reduction.
In case it is executed after the totals archiving, the DPP requirements of deleting privacy
relevant data is fulfilled. (In the simplest case by not having an entry in the system,
because the balance would be zero. When single line items remain, we keep the
aggregated values of these entries with inverted sign.)
44
Balance Carry Forward criterias for GL-accounts
By choosing balance carry forward criterias (BCF), your balance carry forwards in period end closing
process will be enriched with more or fewer account assignments.
Some of the fields are required (e.g. MATNR material) and not changeable, but some can be adapted to
customer needs (e.g. BLART document type).
Compression Run will replace multiple line items in ACDOCA with their aggregated entry based on the
granularity of the balance carry forward.
Consequence:
– customer is using many BCF criterias
– BCF has a deep / diversively granularity
– probability for compression run to find suitable / compressable ACDOCA entries is low
45
Balance Carry Forward criterias for GL-accounts – customizing
Transaction
FINS_FCT and select desired component
46
Balance Carry Forward criterias for GL-accounts – Example
47
FI-GL documents archiving incl. Compression Run –
graphical overview with example
FI_DOCUMNT_WRI FI_DOCUMNT_DEL FI_DOCUMNT_PST Compression Run
GL
document
deletes BKPF,
Archive BSEG…
BKPF,
BSEG
…
creates BSIS_BCK / deletes BSIS_BCK /
BSAS_BCK BSAS_BCK
secondary index secondary index
ACDOCA-BSTAT ≠
“C“ updates deletes
ACDOCA-BSTAT = “C“ ACDOCA-BSTAT = “C“
Amount = 6$
Amount = 6$ Amount = 6$
Line items online visible (database) Line items no longer online visible (access via archive)
Totals online visible (database) Totals online visible (database)
End-user
© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 48
Among others, compression run will total the amounts of all line items with ACDOCA-
BSTAT = ‘C’.
Only those records will be compressed which ‘fit’ together, e.g. same account and same
period (and some more granularity conditions, e.g. based on balance carry forward
characteristics).
The previous records are deleted and one new record containing the sum of the previous
records is created.
By implementing SAP note 2518769, compression run updates ACDOCA-SGTXT with its
run identification. So you can distinguish which ACDOCA record is created by compression
run and which by update of FI_DOCUMNT_DEL.
Compresion Run has only technical impacts on table ACDOCA by reducing the number of
entries of ACDOCA (after successfull run). It has no impact on business view / access of
end-users for ACDOCA.
48
Handling of compressed ACDOCA records in next compression run
Examples
Here you can see, that a ‘total’ record, which has been created by a previous compression
run (Amount = 15$) is considered once again for the compression in case the granularity
criteria are matching e.g. account and same period.
49
FI-GL totals archiving FI_TF_GLF incl. Compression Run
Archive
Check if both ACDOCA entries match
(Structure:
(e.g. same account number) and total to 0
ACDOCA
ACDOCA FAGLFLEXT)
creates ACDOCA-BSTAT = “C“ ACDOCA-BSTAT = “C“ ACDOCA-BSTAT = “C“
(with BSTAT + =0
= “C") Amount = -30$ Amount = 30$ Amount = -30$
(inverted sign)
ACDOCA-
ACDOCA-BSTAT = “C“
BSTAT = “C“ remains
unchanged Amount = 30$
Amount = 30$
ACDOCA-BSTAT = “C“ ACDOCA-BSTAT = “C“
Amount = 30$ Amount = -30$
Line items no longer visible (access via archive) Line items no longer online visible (access via archive)
Totals online visible (database) Totals no longer online visible (access via archive)
End-user
© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 50
- Totals archiving is no prerequisite for Compression Run, i.e. compression run can be
executed with or without totals archiving before.
Compression Run:
- Matching ‚total‘ records which balance to 0 and deleting them.
- Compresion Run has only technical impacts on table ACDOCA by reducing the
number of entries of ACDOCA (after successfull run). It has no impact on business
view / access of end-users for ACDOCA.
50
Compression run – technical details
Transactions
FINS_ARC_ANALYZE (analyzing tool)
FINS_ARC (production run)
FINS_ARC_MONITOR (monitoring tool)
Selection view
Maintenance view FINSV_ARCH_SEL can be used to limit data selection (e.g. by company code, year), see
SAP notes 2348153 & 2837923
Exclude current fiscal year and all fiscal years which aren’t relevant for FI archiving by usage of SAP note
2499573
51
Compression run – remarks
52
Compression run – analyzing tool FINS_ARC_ANALYZE
Transaction
FINS_ARC_ANALYZE
Remark
Get an overview of the numbers
for a larger part of data or
Get a more detailed analysis by
restricting to a small set of
numbers by choosing the
Detailed information option
Only for analyzing purposes;
no compression will take place
The result of the analysis report FINS_ARCH_ANALYZE can cause incorrect expectations
here with regard to the anticipated data reduction.
The log displays the number of compressible (deletable) entries but not the number of
inserted entries.
This means that the user only notices the behavior described above (i.e. insert of newly
created ACDOCA entries by compression run) when the productive compression run is
executed (transaction: FINS_ARC), and not when the analysis report is used.
The background to this is that the report was provided for the execution of a functional test.
You can only check whether the actual correct entries are deleted.
As a result of the implementation of SAP note 2486006, further information will be listed in
the log of the anlaysis report. This enables improved comparability between the actual
compression run and the analysis report. You then explicitly receive messages telling you
how many lines will be deleted and how many lines will be inserted in the analysis report.
53
Compression run – production run FINS_ARC
Transaction
FINS_ARC
Remark
Execution of productive compression run
Creation of work packages and worker jobs
If you don’t provide any number of batch jobs, all available will be used!
No archiving can take place in parallel with the compression run, since the number of
entries that can be compressed is not allowed to change during the compression run. A
lock in the archiving runs (AA, ML, FI document, and GL/AP/AR totals) and the
compression run prevents this. The archiving runs themselves can run at the same time.
Compression Run itself can be executed during productive time (i.e. no posting free time is
required). In case, a user is changing the used records at the same time as compression
run, a rollback will take place.
Selection possibility:
Please check SAP notes 2348153 and 2837923 for usage of selections and 2499573 for
limitation of fiscal years.
54
Compression run – monitoring FINS_ARC_MONITOR
Transaction
FINS_ARC_MONITOR
Remark
Monitoring the progress of
compression run
By double-clicking on lowest
level of the last run,
you get more details (per
work package)
By double-clicking on the
work package, you get
the log of this work package
If you don’t provide any number of batch jobs, all available will be used!
55
Compression run – How does compressed ACDOCA lines look like?
56
Compression run – How does compressed ACDOCA lines look like?
57
Archiving of Master Data
(Customer AR, Vendor AP, Bank Master Data)
58
Process flow of financial archiving – graphical overview
Sequence
© 2020 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 59
remain still the same and are still valid. But they won’t be discussed in this document.
FI Totals:
No pre-requisite for compression run! Compression run can also be executed without FI
totals archiving. But in case you need to fulfill Data Privacy & Protection requirements, you
need to perform FI totals archiving.
59
Archiving of Master Data
60
How to access archived financial data?
61
General principle
Archive access
The audit-relevant programs that can read from the archive and have been transferred to SAP
S/4HANA are retained. They continue to read in the (SAP ERP) format from the archive and display
the data in the usual format. As a result, reading from the archive continues to be supported.
Newer programs that are based on the OData protocol or INA protocol do not offer archive access.
62
Transactions to access archive FI_DOCUMNT (examples)
63
Example for FB03
64
Example for FAGLL03
65
Details for transaction FAGLL03
Before SAP
S/4HANA migration After SAP S/4HANA migration
Archived documents Archived documents Online documents Online documents
(without any ledger document
info at all) (ONLY extension (ONLY extension (with leading ledger online or
ledger, without ledger, without info) archived?
leading ledger info) leading ledger info)
- Entry View can and is allowed to show you only items which are posted WITH leading
ledger. Items posted WITHOUT leading ledger (e.g. only posted on your extension ledger)
cannot be shown here because of business / accounting reasons.
- GL-View can show you ‘all’ items, including items WITHOUT leading ledger, i.e. such
items posted only in another ledger (e.g. your extension ledger postings). Within G/L view,
you can choose which ledger you want to see.
Documents archived before S/4 migration don‘t have the relevant ledger information in the
archive file. This ledger information will be updated in the documents only during migration
to S/4. As archive files won‘t be technically migrated to S/4, these ledger information is just
missing in archive files and therefore GL-view can not show them.
66
Example for FAGLL03 – which archive info structure is used?
G/L view:
archive info structure:
SAP_FI_DOC_003 (SAP Note 2649785!)
Entry view:
archive info structure:
SAP_FI_DOC_002
67
Reports to access archive FI_DOCUMNT (examples)
68
Example for RFBELJ00
69
Transactions / reports to access archive CO_TRANS (examples)
Transactions:
– KSB1 (Display Actual Cost Line Items for Cost Center) and
– KSB5 (Display Actual Cost Documents)
Report FINS_CO_TRANS_READ (sequential read)
Report Writer Reports
70
Appendix
71
Compression run
Further information
The compression run replaces all entries of ACDOCA with aggregated entries if they are
fulfilling following criteria:
CO: After archiving data the leading application like SD document (archiving SD_VBAK) or CO data referencing a cost center (archiving
object CO_TRANS), the object number (OBJNR) and the CO line item number (CO_BUZEI) is cleared (by the deletion part of the
corresponding archiving object).
In case of CO data originating from the migration to SAP S/4HANA (MIG_SOURCE = "C" or “S”) that is not attached to an FI-document
(no BKPF) an additional correction report (FINS_CO_ARCH_PREP_ANALYZE) has to be executed to mark the entry as ready for
deletion (ACDOCA-FUP_ACTION = “D").
AA: Asset is no longer in the database / online, no further indicator for ACDOCA needed.
FI-Documents: Line item is marked as no longer item relevant, i.e. only total relevant like balance carry forward (ACDOCA-BSTAT =
"C").
GL-Totals: During the archiving delete run (report FI_TF_GLF_DEL) no update of already existing ACDOCA entries takes place, but in
addition, an entry with inverted sign is inserted into ACDOCA to set the resulting balance to zero.
For further information please check also SAP note 2346296.
This aggregation takes place on the granularity of the balance carry forward, thus no changing this balance.
In case balance will be zero (i.e. all documents and totals are already archived), no aggregated entry will be
written. In this moment, compression run will only delete old entries.
72
Technical objects
Archiving Objects
FI_DOCUMNT available as of SAP S/4HANA Finance 1503 SP 08 and 1605 SP04
FI_TF_GLC is replaced with FI_TF_GLF as of SAP S/4HANA Finance 1503 SP 08 and 1605 SP04
FI_TF_CRE vendor totals
FI_TF_DEB customer totals
CO_TRANS available as of SAP S/4HANA Finance 1503 SP 08 and 1605 SP04
Tables
LFCX_DIF / KNCX_DIF “dummy” total records for already archived AP/AR documents
x_BCK secondary indexes tables (can be created by FI_DOCUMNT_DEL report)
73
Reports
Reports
FI_DOCUMNT_WRI FI documents archiving write report
FI_DOCUMNT_DEL FI documents archiving deletion report
FI_DOCUMNT_PST FI documents archiving postprocessing report
74
Transactions
Transactions
FINS_AR1_ANALYZE Analyze CO for FI compression
FINS_AR1 CO Archiving preparation for FI compression
FINS_AR1_MONITOR CO archiving preparation for FI compression Monitor
75
SAP notes overview (1)
2190848 FAQ - Aging for Journal Entry in SAP Simple Finance (general)
2332634 & 2332670 manual implementation of new FI archiving for SAP S/4HANA Finance 1605 SP04 FI_DOCUMNT
2486006 FINS_ARC_ANALYZE will list number of inserted ACDOCA lines FI compression run
2498230 & 2508708 FI_DOCUMNT implementation for SAP S/4HANA Finance 1503 SP08 FI_DOCUMNT
76
SAP notes overview (2)
2535263 CO_TRANS did not clear CO relevant fields in ACDOCA for additional ledgers in FI CO_TRANS, ACDOCA
2649785 FI_DOCUMNT: infostructure SAP_FI_DOC_003 with at least required fields FI_DOCUMNT, AIS
2659820 CO_ML_BEL: ACDOCA-KALNR will no longer be cleared and needed (ML no longer prerequisite ACDOCA-KALNR
for FI Document archiving)
2780157 CO_TRANS dump in case of many records / activity types for the cost centers in table ONRKL CO_TRANS
77
SAP notes overview (3)
2837923 FI Compression Run: further selection possibilities (from / to year) FI compression run
2847371 Archiving: Number of Jobs for FI Compression Run – pre-assignment FI compression run
2852252 CO_TRANS reporting of archived data (better performance, usage of other AIS infostructure) CO_TRANS
78
Thank you.
Contact information:
Susanne Tewes
Data Volume Management Global Team
SAP SE
[email protected]
79
Follow us
www.sap.com/contactsap
80