Professional Documents
Culture Documents
SAP-BI Step by Step Procedure For Data Archiving by ADK and Reloading Archived Data
SAP-BI Step by Step Procedure For Data Archiving by ADK and Reloading Archived Data
Applies to:
SAP BW 3.5 and SAP BI NW 7.0
Summary
This paper provides the step by step procedure on how to archive data by ADK method and then reload it for
reporting needs or any other business scenarios. It discusses how the data is deleted from the archive files and
then from the database. Finally once data is on the application server it is reloaded into a separate/same data
target.
Author: Reenu Lodha, Satyam SAP-BI Solutions Labs
Company: Satyam Computers Services Ltd. (www satyam.com)
Created on: 12 January 2009
Author Bio
Reenu Lodha is a SAP BW Consultant at Satyam Computers Services Limited, Pune-India. She is working in BI
space for past 2.6 years and has rich SAP BW 3.5 and SAP BI NW 7.0 implementation experience in
Enterprise Data Warehousing, Enterprise Reporting for solutions to Logistic and Finance industry. She has
worked on AGS and FI applications. (Reenu_Lodha@satyam.com)
Table of Contents
Abstract...............................................................................................................................................................4
Business Scenario ..............................................................................................................................................4
Solution Benefits .................................................................................................................................................4
Demonstration with Screenshots: .......................................................................................................................5
Steps 1 to 5: How to create “Logical File” .......................................................................................................9
Step-1:......................................................................................................................................................................... 9
Step-2:....................................................................................................................................................................... 10
Step-3:....................................................................................................................................................................... 11
Step-4:....................................................................................................................................................................... 12
Step-5:....................................................................................................................................................................... 13
Steps 6 to 12: How to create data archiving process....................................................................................14
Step-6:....................................................................................................................................................................... 14
Step-7:....................................................................................................................................................................... 15
Step-8:....................................................................................................................................................................... 16
Step-9:....................................................................................................................................................................... 17
Step-10:..................................................................................................................................................................... 18
Step-11:..................................................................................................................................................................... 19
Step-12:..................................................................................................................................................................... 20
Steps 13 to 26: How to create & execute “Archive Administration”. ..............................................................21
Step-13:..................................................................................................................................................................... 21
Step-14:..................................................................................................................................................................... 22
Step-15:..................................................................................................................................................................... 22
Step-16...................................................................................................................................................................... 23
Step-17:..................................................................................................................................................................... 24
Step-18:..................................................................................................................................................................... 25
Step-19:..................................................................................................................................................................... 26
Step-20:..................................................................................................................................................................... 27
Step-21:..................................................................................................................................................................... 28
Step-22:..................................................................................................................................................................... 29
Step-23:..................................................................................................................................................................... 30
Step-24:..................................................................................................................................................................... 31
Step -25..................................................................................................................................................................... 32
Step 26:..................................................................................................................................................................... 33
Steps 27 to 29: How to see graphical display to spool request ....................................................................34
Step 27:..................................................................................................................................................................... 34
Step 28...................................................................................................................................................................... 34
Step 29:..................................................................................................................................................................... 35
Steps 30 to 40: ..............................................................................................................................................36
Step 30:..................................................................................................................................................................... 36
Step 31...................................................................................................................................................................... 37
Step 32:..................................................................................................................................................................... 38
Step 33:..................................................................................................................................................................... 39
Step-34:..................................................................................................................................................................... 40
Step-35:..................................................................................................................................................................... 41
Step-36:..................................................................................................................................................................... 42
Step-37:..................................................................................................................................................................... 43
Step-38:..................................................................................................................................................................... 45
Step 39:..................................................................................................................................................................... 46
Step 40:..................................................................................................................................................................... 47
Steps 41 to 42: ..............................................................................................................................................48
Step 41:..................................................................................................................................................................... 48
Step 42:..................................................................................................................................................................... 49
Reloading the archived data .........................................................................................................................50
Steps 1 to 6: ..................................................................................................................................................50
Step-1:....................................................................................................................................................................... 50
Step-2:....................................................................................................................................................................... 51
Step-3:....................................................................................................................................................................... 52
Step-4:....................................................................................................................................................................... 53
Step 5........................................................................................................................................................................ 54
Step 6........................................................................................................................................................................ 55
Steps 7 to 13: How to create DTP.................................................................................................................56
Step-7:....................................................................................................................................................................... 56
Step -8....................................................................................................................................................................... 58
Step -9:...................................................................................................................................................................... 59
Step -10..................................................................................................................................................................... 60
Step-11:..................................................................................................................................................................... 61
Step-12:..................................................................................................................................................................... 62
Step-13:..................................................................................................................................................................... 63
Reload data into the same infoprovider ........................................................................................................65
Step-1:....................................................................................................................................................................... 65
Step-2:....................................................................................................................................................................... 66
Step-3:....................................................................................................................................................................... 67
Step-4........................................................................................................................................................................ 68
Step-5:....................................................................................................................................................................... 71
Step-6:....................................................................................................................................................................... 72
Step-7:....................................................................................................................................................................... 73
Step-8:....................................................................................................................................................................... 75
Step 10:..................................................................................................................................................................... 79
Step 11:..................................................................................................................................................................... 80
Step 12:..................................................................................................................................................................... 80
Related Content ................................................................................................................................................82
Disclaimer and Liability Notice..........................................................................................................................83
Abstract
This document provides the step by step procedure on how to archive data in ODS 0FIAP_O03
corresponding to the Fiscal Year/Period 009.2007 using ADK method. The purpose is to explain detailed
technical procedure of ADK archiving, deleting and reloading archived data in the infoprovider. For archiving
firstly create the logical file ZARCHIVE_TEST and physical file FIAP_<MONTH>_<DAY>.txt. Archive the data
corresponding to the Fiscal Year/Period 009.2007 in the ODS 0FIAP_O03 using archiving object BWOFIA~O03
and archive administration. Delete this data from the ODS and again reload it from the archive back to the SAP
BW system either in the copy of infoprovider or same infoprovider. Latter is performed only when wrong data
was archived due to errors in customizing or during document selection. Readers who want to understand
stepwise implementation of SAP BI ADK archiving and reloading of archived data will be benefited from this
paper.
Business Scenario
The database in our system stores huge amount of historical data which is hardly required for any purpose
presently. But for some reasons we want to keep it as we may need to retrieve this data in future. This leads to
increase in BI database which makes the maintenance and administration efforts grow. In effect, the cost for
process, personnel and technology grow. So we can remove this data from our data targets store it into other
data storage and reload to the system whenever required. Thus we can increase memory space and the
retrieval performance of the data at query runtime.
Solution Benefits
The main advantage of ADK archiving is it is a SAP-standard BW solution which is a comprehensive
procedure for writing, deleting, and storing BW data. Hence, consistency of the archived data is
guaranteed. It allows the use of a blend of cost-effective data storage media. It is platform independent and
handles structural changes in the definition of BW elements. It has easy-to-use front end. Moreover, it offers
reduction in resource consumption. The hardware costs for hard drives on the BI side where the online data will
be stored, is reduced if the archiving solution is in place. Below are BW relevant features of ADK:
1. Handling structural changes: Since the ADK is storing metadata of the archived data as well as the
data itself, it is capable of retrieving the archived data even after structural changes have been made.
This data is not converted to the new structure, but simply displayed in the new structure.
• Platform independency: The ADK can handle different code pages (ASCII, EBCDIC, UNICODE)
and number formats.
• Data compression: The archived data can be compressed up to 5 times of the original data volume.
• Archiving Information System (SAP-AS).The archived data can be displayed with the Archiving
Information System. In BW, the customer has to define the InfoStructures for the respective
archiving objects, and fill them manually within AS customizing.
• Administration via transaction SARA: The scheduling, monitoring and management of the archiving
session can be performed with the standard transaction SARA.
Demonstration with Screenshots:
Data Display of ODS before Archiving
a) Click context menu of ODS 0FIAP_O03
b) Select the below field selection for output.
c) Select the Fiscal Year as 009.2007 and click
d) Below is the data display.
We will now archive this data record. Same steps have to be followed when the number of data records is
more.
Steps 1 to 5: How to create “Logical File”
Step-1: Go to T.code ‘FILE’, click on ‘Logical File Path Definition’ and select ‘Archive_Global_Path’ which is
as shown below and click on ‘Assignment of Physical path’.
Step-2: You can see different syntax groups which are shown below, select and double click on ‘Windows
NT’.
Step-3: This step is just to check the physical path, since physical is the directory where we can check the
archive file in T.code ‘AL11’.
Step-4: Select ‘Logical File Name Definition’ and click on ‘New Entry’ which is shown as below.
Step-5: Enter the details which are shown below.
Logical file : xxxxx (give your own name). Name : xxxxx (give your own name).
Physical file : Parameter_<MONTH>_<DAY>.txt
Data format : ‘ASC’.
Application Area: Respective Application area (here we are doing FI Data Archiving, so selected FI).
Logical Path : ‘ARCHIVE_GLOBAL_PATH’ (Which we have taken the existing one).
Steps 6 to 12: How to create data archiving process
Step-6: Go to T.code ‘RSA1’, select and right click the infoprovider from which you want to Archive the data
and click on ‘Create Data Archiving Process’. Here we are selecting ‘0FIAP_O03’
Step-7: In the first tab ‘General Settings’, select the check box ‘ADK- Based Archiving’. Here the Archiving object
name generates automatically.
Step-8: In the second tab ‘Selection Profile’, select the ‘Characteristic for Time Slice’ here we have taken
‘0FISCPER’.
Step-9: Select and move the respective infoobjects (on which you want to archive data based upon selection
criteria) from right to left which is as shown below.
Step-10: In the third tab ‘Semantic Group’ select and move the infoobjects from right to left for which you want to
archive the data which is as shown below.
Step-11: In the below screen you can see that all infoobjects are move to left side.
Step-12: In the fourth tab ‘ADK’ enter the Logical file Name which you have already created (see in step-5).
Enter the other details which are as shown below.
Note:After Data archiving, as we don’t want to delete the data from the data target automatically we are
selecting ‘Delete Job’ as ‘Not Schedule’
Steps 13 to 26: How to create & execute “Archive Administration”.
Step-13: Go to T.code ‘SARA’, enter the Archiving Object name ‘BWOFIA~O03’ and click on ‘Write’. In the
write phase the data to be archived is written sequentially into newly created archive files.
Step-14: Here we need to create Variant, so enter Variant name and click on ‘Maintain’ as shown below.
Step-15: Select the Radio button ‘For All Selection Screens’ as shown below.
Step-16: In the first tab ‘Primary Time Restriction’, fill all the details as shown below.
Step-17: In the second tab ‘Further Restrictions’ fill the details if you want to archive data based on selection
condition.
Step-18: Once you fill the necessary details in both the tabs, click on it will pop up a screen which is as
shown below, click on save.
Step-19: Enter the Variant Meaning, save and click on .
Step-20: Click on ‘Start Date’ as shown below.
Step-21: If you want to run immediately, click on ‘Immediate’ or else select others and fill the details
respectively, here we are executing the job immediately, so select ‘Immediate’ and click on save button as
shown below.
Step-22: Click on ‘Spool Params’ as shown below.
Step-23: Enter the output Device name ‘LP02’ as shown below and click on enter.
Step-24: Once you fill the ‘Start Date’ & ‘Spool Params’ you should see the lights are in green color. Now
click on button.
Step -25: To see the statistics of the archiving session and monitor the progress of the jobs press the ‘Job’
button
Step 26: When the job is finished it shows the details of the activities performed.
Steps 27 to 29: How to see graphical display to spool request
Step 27: Click on spool.
Related Content
https://www.sdn.sap.com/irj/sdn/inf?rid=/webcontent/uuid/ef1b00f7-0a01-0010-74ab-e9260e80a441
http://help.sap.com/saphelp_nw2004s/helpdata/en/ad/b594429d7c0631e10000000a1550b0/frameset.htm
http://www.thespot4sap.com/Articles/SAP_Data_Archiving_ADK_ArchiveLink.asp