Sunteți pe pagina 1din 24

SAP BW 7.

0 - Archiving Data Guide


By DAP

Applies to:
SAP BW NW 7.0. For more information, visit the Business Intelligence homepage.

Summary
In one BI system, the volume of data increases constantly. Constant changes to business and legal
requirements mean that this data must be available for longer. Since keeping a large volume of data in the
system affects performance and increases administration efforts, we recommend BI administrator to apply
data archiving task if needed.
This guide gives a step-by-step demo to show how to use data archive process (DAP) feature in BI7.0.Firstly,
introduce how to create DAP and how to use it to archive data. Secondly, show how to apply cycled jobs to
do automatically. Lastly, show how to enable/disable archived data in query.
Author:

Wang Jin

Company: Lenovo (Beijing) Ltd.


Created on: 27 March 2009

Author Bio
Wang Jin is BW/BI engineer of Global Application Development of Lenovo. He is working in BI and Portal
area for past 3 years and has rich implementation experience in Enterprise Data Warehousing, Enterprise
Reporting for solutions to CRM and ECC Logistic functions. He also has over 3 years technical experience
with JAVA/.NET platform.

SAP COMMUNITY NETWORK


2009 SAP AG

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


1

SAP BW 7.0 - Archiving Data Guide By DAP

Table of Contents
Preface................................................................................................................................................................4
Part I Creating Archiving Process....................................................................................................................4
1.1 Using content menu ..................................................................................................................................4
Step 1: Enter Data warehousing Workbench ...............................................................................................................4
Step 2: General Settings tab ........................................................................................................................................5
Step 3: Selection profile ...............................................................................................................................................5
Step 4: Semantic group ...............................................................................................................................................6
Step 5: ADK settings ....................................................................................................................................................6
Step 6: Archiving tab....................................................................................................................................................7

1.2 Using separate T-code..............................................................................................................................7


Step 1

: EDIT Data Archiving Process RSDAP ....................................................................................................7

Step 2 6: the same with section 1.1 ..........................................................................................................................8

Part II DAP Management.................................................................................................................................8


2.1 Using administration function to archive ...................................................................................................8
Step 1

: Create archiving request ............................................................................................................................8

Step 2

: Execute archiving request ..........................................................................................................................9

Step 3

: Delete archiving data .................................................................................................................................9

Step 4

: Check archiving data................................................................................................................................10

2.2 Using ADK T-CODE to archive ...............................................................................................................11


Step 1

: Enter archive administration - SARA........................................................................................................11

Step 2

: Writing Archiving files ...............................................................................................................................11

Step 3

: Enter selections........................................................................................................................................12

Step 4

: Enter description and save variants. ........................................................................................................13

Step 5

: Maintain start date and print parameters for archive. ...............................................................................13

Step 6

: Execute the archive background job and monitor the process .................................................................14

Step 7

: Delete records with exist archive files ......................................................................................................14

Step 8

: Maintain start date and print parameters for delete..................................................................................15

Step 9

: Execute the delete background job and monitor the process...................................................................15

2.3 Using ADK to reload data .......................................................................................................................16


Step 1

: Go to reload screen..................................................................................................................................16

Step 2

: Go to reload screen, maintain variant and save it ....................................................................................16

Step 3

: Maintain start date and print parameters for reload..................................................................................16

Step 4

: Execute the reload background job and monitor the process...................................................................17

Part III Scheduling DAP .................................................................................................................................17


3.1 Using process chain to schedule archiving.............................................................................................17
Step 1

: Create new process chain in T-CODE (RSPC) ........................................................................................17

Step 2

: Create archiving process variant..............................................................................................................18

Step 3

: Maintain archiving process variant ...........................................................................................................18

Step 4

: Create delete archiving variant.................................................................................................................19

Step 5

: Maintain delete archiving variant..............................................................................................................19

Step 6

: Activate process chain .............................................................................................................................20

Step 7

: Execute process chain and monitor the process......................................................................................20

3.2 Using ADK variant to schedule archiving................................................................................................20


Part IV Displaying Stored Data in Queries ....................................................................................................21

SAP COMMUNITY NETWORK


2009 SAP AG

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


2

SAP BW 7.0 - Archiving Data Guide By DAP

4.1 Settings of query access .........................................................................................................................21


4.2 Comparing queries with or w/o archive files ...........................................................................................22
Related Content ............................................................................................................................................23
Disclaimer and Liability Notice..........................................................................................................................24

SAP COMMUNITY NETWORK


2009 SAP AG

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


3

SAP BW 7.0 - Archiving Data Guide By DAP

Preface
Using the data archiving process, you can archive and store transaction data from InfoCubes and DataStore
objects. This function is not available for write-optimized DataStore objects.
The data archiving process consists of three main steps:
...

1. Creating the archive file/near-line object


2. Storing the archive file in an archiving object (ADK-based) or near-line storage
3. Deleting the archived data from the database
Notes: If you use BW 7.0 system, reloading of data into infoProvider is not required as query can access to
the archived data.

Part I Creating Archiving Process


1.1 Using content menu
Step 1: Enter Data warehousing Workbench
Data warehousing Workbench (RSA1) -> content menu of DSO or InfoCube

SAP COMMUNITY NETWORK


2009 SAP AG

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


4

SAP BW 7.0 - Archiving Data Guide By DAP

Step 2: General Settings tab

Step 3: Selection profile


Select profile for archive, when archive data, system will use these infoObjects to restrict certain data.

SAP COMMUNITY NETWORK


2009 SAP AG

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


5

SAP BW 7.0 - Archiving Data Guide By DAP

Step 4: Semantic group


Select semantic group

Step 5: ADK settings


Choose Archive data path.
Notes: ARCHIVE_DATA_FILE is default path, you can change it to customizing setting use T-CODE: FILE

SAP COMMUNITY NETWORK


2009 SAP AG

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


6

SAP BW 7.0 - Archiving Data Guide By DAP

Step 6: Archiving tab


Save and Activate the DAP. Then you will see the Archiving Tab in InfoProvider management area.

Notes: Archiving process will show different status.


1. Lock Status

You can lock the selected data area of the archiving request to prevent any changes.
This is necessary before data archiving begins.

2. Copy Status

The data to be archived is copied into near-line storage or the archive.

3. Verification
Status

In the verification phase, the system checks that the write phase was successful and
that the data can be deleted from the InfoProvider.

4. Deletion Status

When the archived data is deleted from the InfoProvider, the archiving process is
complete.

5. Overall Status

When all the steps of the archiving request have been completed, you can no longer
change the status of the request.

1.2 Using separate T-code


Step 1 : EDIT Data Archiving Process RSDAP
Choose Object type and InfoProvider name. Click Edit, If DAP does not exist , system will create a new one
automatically.

SAP COMMUNITY NETWORK


2009 SAP AG

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


7

SAP BW 7.0 - Archiving Data Guide By DAP

Step 2 6: the same with section 1.1

Part II DAP Management


There are two ways to do archiving administration task.
2.1 Using administration function to archive
Step 1 : Create archiving request
In Primary restriction: Choose archiving data restrict with time characteristic;
In Further restriction: Choose your customizing rule to restrict data.

SAP COMMUNITY NETWORK


2009 SAP AG

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


8

SAP BW 7.0 - Archiving Data Guide By DAP

Step 2 : Execute archiving request


Click execute button with background or dialog mode.
Then check the status of the process.

Notes: In InfoCube Archiving Process, system requires infoCube is compressed. So maybe you will meet the
error below. The solution is: go to Collapse tab and execute compression job for it.

Step 3 : Delete archiving data


Double click the request before, and choose delete action to execute. Then confirm the status.

SAP COMMUNITY NETWORK


2009 SAP AG

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


9

SAP BW 7.0 - Archiving Data Guide By DAP

Step 4 : Check archiving data


Archiving before

Archiving After

SAP COMMUNITY NETWORK


2009 SAP AG

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


10

SAP BW 7.0 - Archiving Data Guide By DAP

2.2 Using ADK T-CODE to archive


Step 1 : Enter archive administration - SARA
Step 2 : Writing Archiving files
Input a name of Variant, then click Maintain button

Select screens and continue

SAP COMMUNITY NETWORK


2009 SAP AG

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


11

SAP BW 7.0 - Archiving Data Guide By DAP

Step 3 : Enter selections


Choose production mode, and input restriction rules

SAP COMMUNITY NETWORK


2009 SAP AG

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


12

SAP BW 7.0 - Archiving Data Guide By DAP

Step 4 : Enter description and save variants.

Step 5 : Maintain start date and print parameters for archive.

SAP COMMUNITY NETWORK


2009 SAP AG

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


13

SAP BW 7.0 - Archiving Data Guide By DAP

Step 6 : Execute the archive background job and monitor the process
Click Job Overview button

Finished!

Notes: you can check the archive files with T-CODE (AL11)
Step 7 : Delete records with exist archive files
Click delete button. Choose archive files which you want to delete in original infoProvider.

SAP COMMUNITY NETWORK


2009 SAP AG

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


14

SAP BW 7.0 - Archiving Data Guide By DAP

Step 8 : Maintain start date and print parameters for delete.

Step 9 : Execute the delete background job and monitor the process

Notes: Use statistic button can check the archiving performance

SAP COMMUNITY NETWORK


2009 SAP AG

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


15

SAP BW 7.0 - Archiving Data Guide By DAP

2.3 Using ADK to reload data


Step 1 : Go to reload screen

Step 2 : Go to reload screen, maintain variant and save it

Step 3 : Maintain start date and print parameters for reload.

SAP COMMUNITY NETWORK


2009 SAP AG

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


16

SAP BW 7.0 - Archiving Data Guide By DAP

Step 4 : Execute the reload background job and monitor the process

Part III Scheduling DAP


3.1 Using process chain to schedule archiving
Step 1 : Create new process chain in T-CODE (RSPC)

SAP COMMUNITY NETWORK


2009 SAP AG

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


17

SAP BW 7.0 - Archiving Data Guide By DAP

Step 2 : Create archiving process variant

Step 3 : Maintain archiving process variant

SAP COMMUNITY NETWORK


2009 SAP AG

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


18

SAP BW 7.0 - Archiving Data Guide By DAP

Step 4 : Create delete archiving variant

Step 5 : Maintain delete archiving variant

SAP COMMUNITY NETWORK


2009 SAP AG

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


19

SAP BW 7.0 - Archiving Data Guide By DAP

Step 6 : Activate process chain

Step 7 : Execute process chain and monitor the process

3.2 Using ADK variant to schedule archiving


When maintain variant of archiving/delete/reload, you can schedule period jobs.

SAP COMMUNITY NETWORK


2009 SAP AG

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


20

SAP BW 7.0 - Archiving Data Guide By DAP

Part IV Displaying Stored Data in Queries


4.1 Settings of query access
Use T-CODE -> RSRT (query monitor)

Click the read from archive as well

SAP COMMUNITY NETWORK


2009 SAP AG

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


21

SAP BW 7.0 - Archiving Data Guide By DAP

4.2 Comparing queries with or w/o archive files


Only read from infoProvider

Read from archive files as well

SAP COMMUNITY NETWORK


2009 SAP AG

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


22

SAP BW 7.0 - Archiving Data Guide By DAP

Related Content
http://help.sap.com/saphelp_nw04s/helpdata/en/43/f0ed9f81917063e10000000a1553f6/frameset.htm
https://www.sdn.sap.com/irj/sdn/inf?rid=/webcontent/uuid/ef1b00f7-0a01-0010-74ab-e9260e80a441
For more information, visit the Business Intelligence homepage.

SAP COMMUNITY NETWORK


2009 SAP AG

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


23

SAP BW 7.0 - Archiving Data Guide By DAP

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


24

S-ar putea să vă placă și