Object documentationArchiving Sales Documents (SD-SLS)

 

Archiving object SD_VBAK for archiving sales documents.

 

  • Before using the archiving object for the first time, you should check Application Customizing (SD-SLS).

  • Check whether table VBREVC Revenue Recognition: Worklist of Changed Sales Documents still contains relevant entries for the documents to be archived and update the documents concerned.

  • You have completed the entire revenue recognition process for the document concerned. This means that table VBREVK contains only entries with status C Completely processed.

Structure

Tables

When you use the archiving object SD_VBAK, data is archived from the following tables:

Table reference

Table

Table name

AUSP

Characteristic Values

CMFK

Storage Structure for the Error Log Header

CMFP

Storage Structure for Errors Collected

FMSU

FI-FM Totals Records

FPLA

Billing Plan

FPLT

Billing Plan: Dates

INOB

Link Between Internal Number and Object

JCDO

Change Documents for Status Object (Table JSTO)

JCDS

Change Documents for System/User Statuses (Table JEST)

JEST

Individual Status per Object

JSTO

Status Object Information

KANZ

Assignment of Sales Order Items - Costing Objects

KEKO

Product Costing - Header Data

KEPH

Product Costing: Cost Components for Cost of Goods Mfd

KNKO

Assignment of Cost Est. Number to Config. Object

KOCLU

Cluster for conditions in purchasing and sales

KSSK

Allocation Table: Object to Class

NAST

Message Status

SADR

Address Management: Company Data

VBAK

Sales Document: Header Data

VBAP

Sales Document: Item Data

VBEH

Schedule line history

VBEP

Sales Document: Schedule Line Data

VBEX

SD Document: Export Control: Data at Item Level

VBFCL

Sales Document Flow Cluster

VBLB

Sales document: Release order data

VBSN

Change status relating to scheduling agreements

VBUK

Sales Document: Header Status and Administrative Data

VBUP

Sales Document: Item Status

VBUV

Sales Document: Incompletion Log

VEDA

Contract Data

The following archiving classes are also archived:

Programs

The following programs are delivered with SD_VBAK:

Program

Function

S3VBAKWRS

Write

S3VBAKDLS

Delete

S3VBAKAU

Analyze

S3VBAKPTS

Check

S3VBAKRL

Reload

Write Program

The write program supports the ADK interruption concept, that is, you can interrupt the write phase and continue at a later point. For more information, see the application documentation for data archiving under Start of the navigation path Data Archiving in the ABAP Application System Next navigation step Data Archiving with Archive Development Kit (ADK) Next navigation step Archive Administration Next navigation step Interrupting and Continuing Archiving Sessions End of the navigation path. A compact log with information about the data processed is written in both the write and delete runs. Alternatively, you can enable the output of a detailed log containing additional information.

Deletion Program

The standard variants SAP&PROD (production mode) and SAP&TEST (test mode) are delivered for the delete program. Progress confirmation is output in the job log and in the dialog (status line) at regular intervals in both the write run and delete run.

ILM-Based Information for the Archiving Object

You can use this archiving object with the SD_VBAK ILM object as part of SAP Information Lifecycle Management. In order to do so, you must activate the associated business function Information Lifecycle Management (ILM) (transaction SFW5). The system then also displays the ILM Actions frame. You can use these actions to archive documents with the retention periods defined in the Information Retention Manager. You can also make snapshots (copies) of data or delete data that fulfills the prerequisites.

The following fields for SD_VBAK are defined in the ILM policy and are visible when processing ILM policies (transaction IRMPOL):

  • Available Time Bases

    • End of Year (END_OF_YEAR)

  • Available Condition Fields

    • Date of Last Change (AEDAT)

    • Sales Document Type (AUART)

    • Company code to be billed (BUKRS_VF)

    • Date on Which Record Was Created (ERDAT)

    • Valid-From Date (Outline Agreements, Product Proposals) (GUEBG)

    • Valid-To Date (Outline Agreements, Product Proposals) (GUEEN)

    • Sales Document Item Category (PSTYV)

    • Sales Document Category (VBTYP)

    • Sales Organization (VKORG)

    • Distribution Channel (VTWEG)

    • Plant (WERKS)

  • Available Policy Categories

    RTP: Retention Rules

For more information, see SAP Information Lifecycle Management.

Call

To call sales document archiving, go to the Sales Screen Start of the navigation path Environment Next navigation step Archive Documents. End of the navigation path.

Alternatively, you can call archive administration under Start of the navigation path Tools Next navigation step Administration Next navigation step Administration Next navigation step Data Archiving End of the navigation path and enter object name SD_VBAK.

Authorization Objects

You need the following authority objects:

Authorization object

Description

V_VBAK_AAT

Sales document type

V_VBAK_VKO

Sales area (sales organization, distribution channel, division)

More Information

For more information about the archiving object, see the application documentation for data archiving under Start of the navigation path Data Archiving Next navigation step Data Archiving in the ABAP Application System Next navigation step Data Archiving with Archive Development Kit (ADK) Next navigation step Archiving Object End of the navigation path.