Archiving 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
.
When you use the archiving object SD_VBAK
, data is archived from the following tables:
Table | Table name |
|---|---|
| Characteristic Values |
| Storage Structure for the Error Log Header |
| Storage Structure for Errors Collected |
| FI-FM Totals Records |
| Billing Plan |
| Billing Plan: Dates |
| Link Between Internal Number and Object |
| Change Documents for Status Object (Table JSTO) |
| Change Documents for System/User Statuses (Table JEST) |
| Individual Status per Object |
| Status Object Information |
| Assignment of Sales Order Items - Costing Objects |
| Product Costing - Header Data |
| Product Costing: Cost Components for Cost of Goods Mfd |
| Assignment of Cost Est. Number to Config. Object |
| Cluster for conditions in purchasing and sales |
| Allocation Table: Object to Class |
| Message Status |
| Address Management: Company Data |
| Sales Document: Header Data |
| Sales Document: Item Data |
| Schedule line history |
| Sales Document: Schedule Line Data |
| SD Document: Export Control: Data at Item Level |
| Sales Document Flow Cluster |
| Sales document: Release order data |
| Change status relating to scheduling agreements |
| Sales Document: Header Status and Administrative Data |
| Sales Document: Item Status |
| Sales Document: Incompletion Log |
| Contract Data |
The following archiving classes are also archived:
The following programs are delivered with SD_VBAK
:
Program | Function |
|---|---|
| Write |
| Delete |
| Analyze |
| Check |
| Reload |
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 . 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.
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.
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.
For more information about the Relevance business functions for SAP ILM, see Activating SAP ILM.
For more information about ILM Enhancements in data archiving, see ILM-Specific Enhancements in Archive Administration.
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.
To call sales document archiving, go to the Sales Screen .
Alternatively, you can call archive administration under and enter object name SD_VBAK
.
You need the following authority objects:
Authorization object | Description |
|---|---|
| Sales document type |
| Sales area (sales organization, distribution channel, division) |
For more information about the archiving object, see the application documentation for data archiving under .