`
Jack Wu
  • 浏览: 891605 次
  • 来自: ...
社区版块
存档分类
最新评论

ABAP---SAP Data Archiving

阅读更多
SAP Data Archiving
Overview

Currently, a large number of enterprises use SAP R/3 as a platform for integration of business processes. The continuous usage of SAP results in huge amounts of enterprise data, which is stored in SAP R/3. With passage of time, the new and updated data is entered into the system while the old data still resides in the SAP enterprise system.

Since some of the old data is critical, it cannot be deleted. The difficulty is keeping the data you want, and deleting the data you do not want. Hence, a SAP database keeps on expanding rapidly and enterprise systems, which have limited data retention abilities for a few years, suffer from problems such as data overflow, longer transaction processing times, and performance degradation.

The solution of this problem has led to the concept of Data Archiving in SAP. Data Archiving removes out-of-date data from the SAP database that the R/3 system does not need online, but can be retrieved on a later date, if required. This data is known as archived data and is stored at an offline location. Data Archiving not only consistently removes data from the database but also ensures data availability for future business requirements.

One rule of thumb is that in a typical SAP enterprise system, the ratio of data required to be online and instantly accessible to old data, which could be archived, and stored offline is 1:6. For example, if an enterprise has 2100 GB of SAP database, the online data, which is frequently used by SAP users will be 300 MB and the rest (1800 MB) will be scarcely used and hence can be archived.   

1.1 Data Archiving – Features

  • It provides a protection layer to the SAP database and resolves underperformance problems caused by huge volumes of data. It is important that SAP users should keep only minimal data to efficiently work with database and servers. Data archiving ensures that the SAP database contains only relevant and up-to-date data that meet your requirements.  
  • Data archiving uses hardware components such as hard disks and memory. For efficient data archiving, minimum number of disks and disk space should be used.  
  • It also reduces the system maintenance costs associated with the SAP database. In the SAP database there are various procedures such as, data backup, data recovery, and data upgrade. 
  • SAP data archiving complies with statutory data retention rules that are common and well-proven techniques.  

SAP data archiving can be implemented in two ways. In the next section both options will be discussed in detail.

2.0 SAP Data Archiving – Basic Components

SAP Data Archiving is the SAP supported method for data archiving in SAP enterprise systems. SAP Data Archiving enables the user to keep the size of sensitive enterprise database under control. Archiving capabilities in SAP R/3 are provided across all modules by a built-in, centralized component (SAP ADK, Archive Development Kit) and add-on components such as ArchiveLink®. Both these components deal with SAP data in form of special objects, known as Archiving Objects. 

This paper discusses in detail the basic process used by Archive Development Kit (ADK) and ArchiveLink® for data archiving. But before understanding ADK, it is important to understand the concept of Archiving objects.  

2.1 Archiving Objects

Archiving objects are the essential ingredients for archiving SAP data. An archiving object can be defined as a logical unit, which is obtained from SAP data objects. When data objects are combined on the basis of requirements, a business object is formed, which then can be archived.

Archiving objects instruct the SAP archiving system to get the right tables when archiving specific R/3 business objects. They are defined using transaction AOBJ.  

The archiving objects are defined for different modules of a SAP system. For example, financial accounting documents are archived via the archiving object FI_DOCUMNT, which comprises the document header, company-code-dependent postings, change documents, SAPscript texts and other elements. Some archiving objects with their basic functionality are listed in the table below.

Archiving Object

Type of Archiving Object

Details

SD_AGREEM

Sales and Distribution

Through this you can archive arrangements and the associated conditions

W_PROMO

Retail

Using this object you can remove old promotion data from your system

MM_EKKO

Material Management

Using this object you can archive purchasing documents

SD_VBRK

Sales and Distribution

Using this object you can archive customer billing documents

FI_DOCUMNT

Finance

Using this object you can archive credit memo documents

PP_ORDER

Production

Using this object you can archive production orders

 Each archiving object has automated associated methods. The table given below describes these methods in brief. These methods are the functions or subroutines, which work with archived objects.

Access Type

Method

Description

ALL

ARCHIVE_OPEN_FOR_WRITE

Open archive file for writing.

 

ARCHIVE_OPEN_FOR_READ

Open archive file for reading

ARCHIVE_OPEN_FOR_MOVE

Open archive file to reload.

ARCHIVE_OPEN_FOR_DELETE

Open archive file to delete.

ARCHIVE_CLOSE_FILE

Close all archive files

Write access

ARCHIVE_NEW_OBJECT

Get new data object

 

ARCHIVE_SAVE_OBJECT

Write data object from data container to the archive file.

Read access

ARCHIVE_GET_NEXT_OBJECT

Read next data object into the data container from the archive file.

2.2 The Archive Development Kit (ADK) 

SAP provides the Archive Development Kit (ADK) for realization of secure and efficient archiving procedures, to support and simplify the development of archiving programs. ADK provides a development environment where programming code is written to call archiving objects. When the program is executed, the corresponding archiving files are created. Figure 1 illustrates this relationship.  

Figure1: Archive Development Kit

Image Source: SAP® white paper: Data Archiving and Archive Development Kit 

ADK creates the archiving files from archive objects. It acts as an interface layer between archiving objects and the archived files. To reduce the space consumed by the archived files, ADK compresses the data 5 times the normal data. Only data in clustered tables is left from being archived and stored, as it is, in the database.     

ADK is central to creating, opening, writing, reading and closing archive files, plus all administrative issues, from scheduling jobs to communicating with external storage systems.  

Another major function of ADK is to retrieve archived files. Archived files normally have an outdated database structure. ADK checks for the file format and encounters all potential problems, which may evolve due to such files. The major functions of ADK are shown in Figure 2.

Figure 2: Archive Development Kit Functions

The ADK is designed to use in client/server architecture. and provides an appropriate way of using system resources efficiently.  

2.3 ArchiveLink® - The Optical Archiving Method

ArchiveLink® is a SAP product that enables data archiving for business documents in an optical storage system. Through ArchiveLink® , one can store scanned original documents, outgoing documents, or print lists in optical systems. It is not possible to analyse them with R/3 tools or load them into R/3, without the help of third party software. Archive files created by R/3 data archiving, can be removed, analysed and reloaded through ArchiveLink ®. The Complimentary Software Providers (CSP) [or Third Party Software Providers] can also provide these solutions, which are integrated with the SAP system to archive data from the database. Their capabilities include:  

  • Scanning Documents
  • Conversion of documents to electronic form
  • Storing images on optical media
  • Data searching and retrieving functionalities    

3.0 The Archiving Procedure

3.1 Right Retrieval Strategy

An important challenge for SAP administrators is to find out the appropriate data for archiving. It is important to have knowledge of the business processes involved in the enterprise, prior to data archiving, so that appropriate archive objects are created. This helps in identifying database table growth and simplifies the process of identifying objects for archiving. 

3.2 Three Phase Archiving Process

Data archiving process comprises three major phases. They are:  

  • Creating an archive file
  • Removing the archived data from the database
  • Transferring the archived files to a location outside the SAP database 

Phase I - Creating Archive Files

The archived files of data are created in the SAP database by the Archiving Management system. The Management system reads the data from the database and writes it to the archive files in the background. In instances of archived files exceeding the maximum specified limit, or if the number of data objects exceed the stipulated limit in the system, then the system automatically creates new archive files. 

At the end of the process of saving data into archive files, ADK triggers the system event SAP_ARCHIVING_WRITE_FINISHED, which is an indicator to the system to start next phase of archiving process.

Phase II - Deleting files from the Database

While archiving management system writes data on the archive files, another program deletes it from the database permanently. The program checks whether the data has been transferred to the archive. It is quite important too as it is the last check performed by the system before deleting data permanently from the database. Several deletion programs run simultaneously, because the archiving program is much more faster than the deletion programs. This is important as it increases the efficiency of archiving process.

Phase III - Transferring Archive Files

Once the Archive management system has finished archiving the data, the next step is to save the archived files at a different location other than the SAP database. This can be accomplished by an automated process in the system or by a manual process. This step is optional since many enterprises may wish to keep the archived files within the current database. However, large enterprises transfer their data periodically as a part of their data archiving processes.

4.0 SAP Data Archiving - Support Tools

4.1 SAP Archive Administration (SARA)

All data archiving activities commence with Archive administration (transaction SARA). SARA provides the overall administration of archiving schedules and manages the archiving sessions. The process includes customization of objects, their conversion to archived sequential archived files and most importantly, their overall management. In addition to these, the archive administration process also retrieves the archived files and converts the data through an automated process, if there is a change in software, hardware or the data structure. The data archiving process is streamlined and simplified through the Central command of archiving administration. 

4.2 DART (Data Retention Tool)

A data retention strategy is required for retaining enterprise information for long periods of time. The Data Retention Tool (DART) provides this functionality. It is capable of extracting data, which is period-specific as well as any supporting information. DART transforms database objects into flat files that can be read by any third-party software designed for flat files. It is available as an add-on for older versions of SAP R/3, but is an integrated feature of the recent versions of SAP R/3.  

4.3 SAP Archive Information System (SARI)

SARI provides much-needed retrieval capabilities against previously archived data. It requires the archive files be loaded into new tables in the database. In this approach, AS requires detailed, technical knowledge of the database table structure and field layouts. Database structure of an enterprise needs to be flexible and dynamic to be able to quickly adapt to organisational changes. It might happen that the current database structure is not compatible with the structure of database when archive files were initially generated. Archive Information System is a standard tool delivered by SAP that facilitates customized access to the archived data.

 http://www.thespot4sap.com/SAP_Data_Archiving.pdf

分享到:
评论

相关推荐

    ABAP751 ABAP - Keyword Documentation

    ABAP - Keyword Documentation This documentation describes the syntax and meaning of the keywords of the ABAP language and its object-oriented part ABAP Objects. Alongside this, language frameworks ...

    SAP中文教材全系列之ABAP-BC400_ZH

    本文档是《SAP中文教材全系列之ABAP-BC400_ZH》,为SAP ABAP编程语言的学习提供参考。文档包含了详细的ABAP课程内容,旨在帮助学员理解并掌握ABAP编程的基础知识和高级技能。以下将详细阐释文档所涵盖的知识点。 ...

    SAP-ABAP-SAPLINK及插件

    简单来讲,SAPLINK就是用来导入和导出ABAP程序,等开发对象的一个开源分享项目的产物. 1.上载前置工具程序 导入SAPLINK需要使用ZSAPLINK_INSTALLER程序进行导入. TCode:SE38,新建名为ZSAPLINK_INSTALLER的程序. 2....

    SAP ABAP-采购申请释放后到更新发布标识.zip

    在SAP系统中,ABAP(Advanced Business Application Programming)是一种编程语言,用于开发和定制企业资源规划(ERP)软件,而MM(Materials Management)模块则是SAP中的一个重要部分,主要处理采购、库存管理和...

    ABAP-ALV进阶

    ABAP-ALV进阶是指在SAP系统中使用ABAP语言开发的高级列表查看器(ALV)。ALV是SAP系统中心的列表标准,可以在ABAP程序中进行报表输出。下面是ABAP-ALV进阶的知识点详解: 一、ALV概要 ALV 全称为 ABAP List Viewer...

    SAP方丈-ABAP-SAP增强应用实例

    SAP 方丈-ABAP-SAP增强应用实例 SAP 方丈是 SAP 系统中的一个重要组件,它提供了一个强大且灵活的开发环境,允许开发者使用 ABAP 语言来编写代码,以满足特定的业务需求。在这个实例中,我们将展示如何使用 SAP ...

    SAP-ABAP-Certification-Review.pdf

    SAP-ABAP-Certification-Review.pdf

    ABAP-培训教材目录

    ABAP-培训教材附录 ABAP-培训教材ABAP-培训教材ABAP-培训教材ABAP-培训教材

    SAP-ABAP-OO-实现-CL-SALV-TABLE

    ### SAP-ABAP-OO 实现 CL-SALV-TABLE 的关键知识点 #### 1. ABAP 面向对象的 ALV 显示方法 在 SAP 的 ABAP 环境中,ALV (Application List Viewer) 是一种非常常用的技术,用于在屏幕上以表格的形式展示数据。传统...

    金色传说:SAP-ABAP-IW21/IW22通知单保存增强:ZPMR003程序代码

    1、解压后,支持直接导入ABAP 2、支持文本编辑器打开 3、如有不解之处,可以查阅文章:《金色传说:SAP-ABAP-IW21/IW22通知单保存增强:保存通知单时根据特殊条件创建新的事故通知单》或搜索公众号:SAPABAP金色传说

    eclipse-abap-keywordcolors-master.rar

    eclipse-abap-keywordcolors eclipse-abap-关键字颜色

    CD260-ABAP-in-Eclipse-开发-CN

    CD260-ABAP-in-Eclipse-开发-CN CD260-ABAP-in-Eclipse-开发-CNCD260-ABAP-in-Eclipse-开发-CNCD260-ABAP-in-Eclipse-开发-CN

    sap_ABAP-动态内表

    SAP ABAP 动态内表详解 SAP ABAP 中的动态内表是一种特殊的内表结构,它可以根据实际情况动态地生成和赋值。本文将详细介绍动态内表的创建、赋值和读取显示。 动态内表的创建 动态内表的创建主要分为两步:首先...

    ABAP-WebDynpro实例.pdf

    ABAP-WebDynpro 实例是 SAP 中的一种开发技术,允许开发者创建基于 Web 的应用程序。该技术将 SAP 中开发的程序在 Web 中运行,从而不需要在客户机上安装 SAPGUI。 在本实例中,我们将创建一个 WebDynpro 程序,该...

    SAP中文教材全系列之ABAP-BC401

    SAP ABAP-BC401是SAP ABAP(高级商业应用编程语言)的一部分,它是一种编程语言,专门为SAP软件应用开发。ABAP-BC401的内容覆盖了SAP ABAP开发的各个方面,旨在帮助读者深入掌握ABAP开发技能。从提供的文件内容来看...

    SAP的开发工具ABAP-4学习资料

    这个“SAP的开发工具ABAP-4学习资料”压缩包提供了关于ABAP的关键字使用方法的学习资源,这对于想要深入理解并掌握ABAP编程的人来说是非常宝贵的。 首先,我们要了解ABAP的基本结构和语法。ABAP是一种结构化编程...

    SAP-ABAP-IDOC使用材料资料.pdf

    SAP-ABAP-IDOC 使用材料资料 SAP-ABAP-IDOC 是一种系统间通用的数据交换格式,通过 IDoc 接口可以实现 SAP 系统之间以及 SAP 系统与其他系统之间的数据交换。基于 IDoc 的应用技术有:ALE、EDI 等。 IDoc 的基本...

    ABAP-SAP学习宝典进阶语法大全

    《ABAP-SAP学习宝典进阶语法大全》是一本专为SAP系统开发者准备的深入学习资料,它涵盖了ABAP编程语言的核心概念、高级语法和实用技巧。ABAP(Advanced Business Application Programming)是SAP公司的主要编程语言...

    SAP ABAP-Dictionary_查询表结构和内容.ppt

    SAP ABAP-Dictionary_查询表结构和内容 实战技术

    ABAP-OLE开发[汇编].pdf

    ABAP-OLE开发是SAP系统中的一种技术,它允许ABAP编程语言与外部对象链接和嵌入(OLE)应用程序进行交互。OLE自动化是Windows环境中的一种技术,它使得不同的应用程序可以共享数据和服务,通常用于控制一个应用程序...

Global site tag (gtag.js) - Google Analytics