Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Applies to:
SAP BW 3.5 and SAP BI NW 7.0
Summary
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. It discusses how the data is deleted
from the archive files and then from the database. Finally once the data is on the application server it is
reloaded into a separate/same data target. This paper is targeted at customers and SAP consultants who are
interested in implementing data archiving by ADK method and then reloading it for reporting needs or any
other business scenarios.
Author(s): Reenu Lodha, Satyam SAP-BI Solutions Labs
Company: Satyam Computers Services Ltd. (www satyam.com)
Created on: 01 Oct 2008
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 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 )
Satyam SAP-BI Solutions Labs is a body of experienced and qualified SAP-BI consultants. Its main
objective is to create cutting-edge technological solutions in the area of SAP-BI and create multiple Service
Offerings for Satyam’s Customer base. The consultants of this group also offer functional and technical
consulting services to its customers.
Table of Contents
Abstract ............................................................................................................................................................... 3
Business Scenario .............................................................................................................................................. 3
Demonstration with Screenshots: ....................................................................................................................... 4
Related Content ................................................................................................................................................ 81
Disclaimer and Liability Notice .......................................................................................................................... 81
Copyright........................................................................................................................................................... 81
Abstract
The purpose of this paper 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, the 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 :
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.
We will now archive this data record. Same steps have to be followed when the number of data records is
more.
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-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’
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-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-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 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 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.
b)
Step 39: Press ‘Statistics’ button to view the database and status information.
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 5: Create transformation from the original ODS to the copied ODS.
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-13: Display data for the ODS making the required selections.
a)
Step-3: This takes you to the Archive Administration: Reload Archive screen, where you can schedule job.
b)
c)
b)
Step-8: Execute
b)
Step 10: Check the Data Display of the ODS. It shows data has reloaded successfully into the ODS.
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
Copyright
© 2008 Satyam Computer Services Limited. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express
permission of Satyam. The information contained herein may be changed without prior notice.