Sei sulla pagina 1di 84

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 dont 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
shown below, click on save.

it will pop up a screen which is as

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.

Step 28: Click on

Step 29: Below is the graphical display to spool request.

Steps 30 to 40: How to delete the data (which is archived) from the ODS 0FIAP_O03
The delete program reads the data from the archive files and then deletes it from the database.
Step 30: Go to T Code SARA, enter the Archiving object name and click on delete.

Step 31: Click on Archive Selection.

Step 32: Select the archived file whose infoprovider data has to be deleted.

Step 33: Click on Start Date as shown below and click on Immediate.

Step-34: Click on Spool Params as shown below and enter the output Device name LP02 as shown below
and click on enter.

Step-35: Once you fill the Start Date & Spool Params you should see the lights are in green color. Now
click on

button.

Step-36: Job Overview shows the ODS data corresponding to the Fiscal Yr -009.2007 is deleted.

Step-37: Below is the spool graphical display of spool request.


a)

b)

Step-38: Data Display of ODS after Archiving

Step 39: Press Statistics button to view the database and status information.

Step 40: Below is the detailed display of statistics of data archiving.

Steps 41 to 42: How to see the archived file


Step 41: To see the archived file go to T Code AL11 and double click on the name of the directory.

Step 42: Highlighted is the archived file.

Reloading the archived data


Once the data has been archived on the application server it is stored externally by basis team on separate
magnetic tapes and other storage devices. Whenever such data is again required for reporting the basis team
can bring it back on application server easily. Once it is on the application server it can be reloaded into a
separate data target which is a copy of the original info-provider.
There are two different methods to reload the archived info provider data- reload data into different data
target or reload into the same infoprovider. It is recommended that you reload the archived data into the copy
of the original infoprovider. It allows the reloaded data to remain physically separate from any existing data.
This allows for easier verification of the reloaded archive data because the data is isolated in its own
infoprovider. You also can combine reloaded data with current data via multiproviders for better query
performance because of the systems parallel query processing functionality.
Data should be reloaded into the same info-provider only in emergency cases, in which wrong data was
archived due to errors in customizing or during document selection. Therefore, data should only be reloaded
immediately after the erroneous archiving session. If you reload the data later you may end up with
inconsistencies in your database.
Reload data into different data target (Copy of original data target)
Steps 1 to 6: How to create copy of ODS 0FIAP_O03 and its transformations
Step-1: Go to T Code RSA1. Choose context menu of the original ODS 0FIAP_O03 and click on Copy.

Step-2: Go to T Code RSA1. Mention the original ODS name in Copy From

Step-3: Save the ODS as Local Object.

Step-4: Activate the ODS.

Step 5: Create transformation from the original ODS to the copied ODS.

Step 6: Activate the transformations.

Steps 7 to 13: How to create DTP


Step-7: Create data transfer process for the copied DSO from context menu.
a)

b)

Step -8 Select the settings as shown below and click on Filter to make the selection for which you want to
reload the archived data.

Step -9: Click on Change Selection and enter the fiscal period 009.2007 for which we have to reload the
data. Click on continue.

Step -10: Below are the Update tab settings.


a)

Step-11: Activate the DTP and Click on execute.


a)

Step-12: Data is updated into the ODS.

Step-13: Display data for the ODS making the required selections.
a)

b) Below is the reloaded data display.

Reload data into the same infoprovider


Step-1: Go to T Code SARA and enter the name of the archiving object in the Object Name field.

Step-2: Choose Goto and click Reload.

Step-3: This takes you to the Archive Administration: Reload Archive screen, where you can schedule job.

Step-4: Choose Archive Selection. Maintain Variant.


a)

b)

c)

Step-5: Mark the desired archiving session and choose Continue.

Step-6: This takes you back to the original screen.

Step-7: Maintain the Start Date and the Spool Parameters.


a)

b)

Step-8: Execute

Step-9: Double click on


a)

to view list of spool requests.

b)

c) Below screen shows data been reloaded.

Step 10: Check the Data Display of the ODS. It shows data has reloaded successfully into the ODS.

Step 11: Check the Display Statistics.

Step 12: The archived file has been reloaded.

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


80

SAP-BI Step by Step Procedure for Data Archiving by ADK and Reloading Archived Data

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


81

SAP-BI Step by Step Procedure for Data Archiving by ADK and Reloading Archived Data

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

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


82

SAP-BI Step by Step Procedure for Data Archiving by ADK and Reloading Archived Data

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


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


83

SAP-BI Step by Step Procedure for Data Archiving by ADK and Reloading Archived Data

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


84

Potrebbero piacerti anche