SAP Archiving Strategy
SAP Archiving Strategy
SAP Archiving Strategy
Release 4.6C
HELP.CAARCLE
LE - Logistics Execution
SAP AG
Copyright
Copyright 2001 SAP AG. 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 SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft , WINDOWS , NT , EXCEL , Word , PowerPoint and SQL Server are registered trademarks of Microsoft Corporation. IBM , DB2 , OS/2 , DB2/6000 , Parallel Sysplex , MVS/ESA , RS/6000 , AIX , S/390 , AS/400 , OS/390 , and OS/400 are registered trademarks of IBM Corporation. ORACLE is a registered trademark of ORACLE Corporation. INFORMIX -OnLine for SAP and Informix Dynamic Server Informix Software Incorporated.
TM
UNIX , X/Open , OSF/1 , and Motif are registered trademarks of the Open Group. HTML, DHTML, XML, XHTML are trademarks or registered trademarks of W3C , World Wide Web Consortium, Massachusetts Institute of Technology. JAVA is a registered trademark of Sun Microsystems, Inc. JAVASCRIPT is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. SAP, SAP Logo, R/2, RIVA, R/3, ABAP, SAP ArchiveLink, SAP Business Workflow, WebFlow, SAP EarlyWatch, BAPI, SAPPHIRE, Management Cockpit, mySAP.com Logo and mySAP.com are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other products mentioned are trademarks or registered trademarks of their respective companies.
April 2001
SAP AG
LE - Logistics Execution
Icons
Icon Meaning Caution Example Note Recommendation Syntax
April 2001
LE - Logistics Execution
SAP AG
Inhalt
LE - Logistics Execution ....................................................................................5
Archiving Warehouse Management Records (LE-WM) ............................................................. 6 Object Definition (LE-WM) ............................................................................................................ 7 Program Technical Data (MM-WM) .............................................................................................. 8 Set up the System to Run Archiving Programs (LE-WM) ......................................................... 9 Archive Warehouse Management Records (MM-WM) ............................................................. 10 Make a Test Run (MM-WM) ......................................................................................................... 11 Read Archived Data (MM-WM) ................................................................................................... 12 Archiving of Deliveries (LE-SHP)............................................................................................... 13 Special Features in Archiving (LE-SHP) ................................................................................... 16 Checks (LE-SHP) ......................................................................................................................... 17 Variant Settings for Archiving (LE-SHP)................................................................................... 19 Variant Settings for the Check (LE-SHP) .................................................................................. 21 Variant Settings for Reloading (LE-SHP) .................................................................................. 22 Application Customizing (LE-SHP)............................................................................................ 23 Analyzing an Existing Archive (LE-SHP) .................................................................................. 25 Single Document Display using SAP AS (LE-SHP) ................................................................. 26 Authorizations (LE-SHP) .......................................................................................................... 28 Archiving of Shipments (LE-TRA) ............................................................................................. 29 Archiving Shipment Documents (LE-TRA) ............................................................................... 31 Reloading Shipments (LE-TRA) ................................................................................................. 32 Archiving Shipment Cost Documents (LE-TRA) ...................................................................... 33 Archiving Shipment Cost Documents (LE-TRA) ...................................................................... 35 Reloading Shipment Cost Documents (LE-TRA) ..................................................................... 36
April 2001
SAP AG
LE - Logistics Execution
The following table shows the available archiving objects: Objects in LE Archiving Objects RL_* [Seite 7] RV_LIKP [Seite 13] SD_VTTK [Seite 29] SD_VFKK [Seite 33]
April 2001
SAP AG
How to...
Set up the System to Run Archiving Programs (LE-WM) [Seite 9] Archive Warehouse Management Records (LE-WM) [Seite 10] Make a Test Run (LE-WM) [Seite 11] Read Archived Data (LE-WM) [Seite 12]
April 2001
SAP AG
These reports archive processed records that have been in the WM system for a specified number of days. Using these programs, it is possible to archive records for several warehouse numbers simultaneously.
When you archive transfer orders that are earmarked for the entry of worker performance data, the system checks to see whether the performance data was completely processed. This is checked in the logical RTL database. For test purposes, you can display a list of the number of records that will be archived and deleted from the system before actually archiving them. Additionally, you can read data that has been archived.
April 2001
SAP AG
Run Time
The time needed to run the archiving program depends on the number of records that are archived and the system load and performance.
April 2001
SAP AG
April 2001
SAP AG
10
April 2001
SAP AG
When you start the report to archive and delete documents using the archiving management transaction SARA, the system does not display a log online because these programs are started as a batch process.
April 2001
11
SAP AG
The WM archive files have the general logical file name "ARCHIVE_DATA_FILE". You can start the reports used for reading the archived files from archive management.
12
April 2001
SAP AG
Use
Before using the archiving object, you should first check the application Customizing. See also: Application Customizing (LE-SHP) [Seite 23]
Structure
Tables
When you use the archiving object RV_LIKP, the system archives data from the following tables: Table reference Table EIKP EIPO LIKP LIPS LIPSDG NAST SADR VBFCL VBPA VBUK VBUP VBUV LIPSDG DLFLD LIPSPO LIPSRF Table Name Foreign trade: Export/Import item data Foreign trade: Export/Import header data Sales and distribution document: Delivery: Header data Sales and distribution document: Delivery: Item data Appendix table for dangerous goods data Output status Address management: Company data Sales document flow cluster Sales document: Partner Sales document: Header status and administrative data Sales document: Item status Sales document: Incompletion log Appendix table for dangerous goods data Delivery fields that cannot be changed (Decentralized WM) LIPS reference data for purchase order (Decentralized WM) LIPS reference data for purchase order (Decentralized WM)
April 2001
13
SAP AG
You can carry out archiving for handling units using the archiving object LE_HU (see also Archiving Handling Units (LO-HU) [Extern] The following archiving classes are also archived: Tables for Archiving Class TEXT [Extern] Tables for Archiving Class CHANGEDOCU [Extern]
Function
The following functions are available for RV_LIKP: Function/report assignment Function Report Archive Delete Analyze Restore See also: Variant Settings for Archiving (LE-SHP) [Seite 19] Variant Settings for Reloading (LE-SHP) [Seite 22] Analyzing an Existing Archive (LE-SHP) [Seite 25] Variant Settings for Checking (LE-SHP) [Seite 21] S3LIKPWR S3LIKPDL S3LIKPAU S3LIKPRL
Checking S3LIKPPT
Calling Up Archiving
To archive sales activities, choose Environment Archive documents Deliveries on the Shipping Screen [Extern]. To archive inbound deliveries, choose Environment Archive documents Inbound deliveries on the Shipping Screen [Extern]. Alternatively, you can also call up archive administration via Tools Administration and then Administration Archiving. Enter the object name RV_LIKP.
Integration
Inbound deliveries should be archived before sales documents and billing documents. This sequence is a result of the way the documents are linked via document flow. Inbound deliveries that are not relevant for goods movements can only be archived after the underlying purchase order has been archived. Inbound deliveries that are relevant for goods movements are complete after the goods receipt posting, and they can be archived directly after the other conditions have been checked successfully. If corresponding shipments exist (LE-TRA), deliveries can only be archived after these shipments have been archived successfully.
14
April 2001
SAP AG
April 2001
15
SAP AG
16
April 2001
SAP AG
Checks (LE-SHP)
The following checks are carried out on a delivery before it can be archived. Residence time Flow (mandatory) Status of the shipment document Status of billing document FI (optional) Check residence of flow documents (optional) Alternative database access (optional)
Residence time
A delivery can only be archived if a period defined in Customizing (residence time) has elapsed since the completion date (see also: Application Customizing (LE-SHP) [Seite 23]). For this purpose, the system checks the following entries for the outbound delivery: If a residence time is maintained for delivery type and sales organization, then this value is checked in the document. If no entry exists, then the search is carried out using only the sales organization. If no entry exists for this either, then the standard value of 30 days is used. The residence time is checked only on the basis of the delivery type since inbound deliveries are not assigned to any sales organization. In Customizing, maintain the entry Sales organization, as described under Application Customizing (LE-SHP) [Seite 23].
For this purpose, the system checks the following entries for the inbound delivery.
The selection screen for the variants contains the checkbox Check doc. flow residence, with which you can set the basis for calculation of the residence time. If the checkbox is not set, then the residence time is calculated on the basis of the creation date of the document. If the checkbox is set, then the residence time is calculated on the basis of the last flow document
April 2001
17
SAP AG
Accounting documents
If the checkbox Check FI document is set, the system checks whether the billing document is settled in Financial Accounting (e.g. via payment).
18
April 2001
SAP AG
Range of Functions
The following options are available:
Entry Fields
Document selection Select the documents to be archived. Delivery type Choose the delivery type of the deliveries to be archived. In one archiving run, you can process either outbound deliveries only or inbound deliveries only.
Checkboxes
Create archive Select this option if you want to create archive files. Deletion program in test mode If you do not want the archived data to be deleted automatically after the archive files have been created, select this option. This option is ignored if Create archive has been deactivated. Check FI document (optional) If the checkbox Check FI document is set, the system checks whether the billing document is settled in Financial Accounting (e.g. via payment). Check residence of flow documents If the checkbox is not set, then the residence time is calculated on the basis of the creation date of the document. If the checkbox is set, then the residence time is calculated on the basis of the last flow document Alternative Database Access If you select the Alternative DB access checkbox, you allow the database to use an alternative method for carrying out data procurement This can, for example, be used to improve performance of the archiving program.
Activities
The following table provides an overview of some typical settings: Task Settings
April 2001
19
LE - Logistics Execution Variant Settings for Archiving (LE-SHP) Test run Productive run See also: Creating Archive Files [Extern] Select the documents 1. Select the documents. 2. Choose Create archive.
SAP AG
20
April 2001
SAP AG
Remember that checking delivery documents is carried out via the preliminary run function. The preliminary run can also be started directly in the ABAP Editor via Report S3LIKPPT.
Features
The following options are available:
Entry Fields
Document selection Select the documents to be checked.
Checkboxes
Detail display Select this option if you want to see the checking log for each document that could not be archived. Check residence of flow documents If the checkbox is not set, then the residence time is calculated on the basis of the creation date of the document. If the checkbox is set, then the residence time is calculated on the basis of the last flow document
Check FI document Select this option if you want to check whether all existing accounting documents for a delivery have been cleared.
Alternative Database Access If you select the Alternative DB access checkbox, you allow the database to use an alternative method for carrying out data procurement This can, for example, be used to improve performance of the archiving program.
Activities
The checking log is split into two sections - the header and the detail display. The header contains the statistical data for the check; the detail display shows the checking status for each delivery. You reach the order display transaction by clicking on the line containing the delivery number. The detail display is activated via the Detail display checkbox.
April 2001
21
SAP AG
When reloading deliveries, the corresponding CO data is not simultaneously reloaded into the system. Therefore you should reload deliveries only in case of emergency, for example, if documents were wrongly selected. For this reason you cannot call this function up with the menu. Please contact your system administrator.
Features
The following options are available:
Entry Fields
Document selection Select the documents to be reloaded.
Checkboxes
Test run Select this option if you only want to simulate reloading, for example, to check possible errors. See also: Reloading Archived Data [Extern]
22
April 2001
SAP AG
Range of Functions
The following input fields are at your disposal: Sales organization Delivery type Residence time of a delivery in days You use these parameters to set the residence time for every combination of sales organization and delivery type. Since inbound deliveries are not assigned to any sales organization, maintain a generic entry (X) for the sales organization for this delivery type. Check billing documents for completion You use this parameter to check whether a billing document has been forwarded to Financial Accounting.
The examples can be understood as follows: 1. The standard residence time (30 days) is used for all delivery types for all sales organizations. 2. A residence time of 40 days is used for all delivery types for sales organization 0001. 3. A residence time of 20 days is used for delivery type TA for all sales organizations. 4. A residence time of 100 days is used for all delivery types starting with L for all sales organizations starting with 00. 5. A residence time of 1 day is used for delivery type LF for sales organization 0001.
If you do not maintain the views, the system cannot archive the documents. So that archiving for inbound deliveries functions correctly, you must make sure that you maintain a residence time other than zero for this delivery type and that you set
April 2001
23
SAP AG
a generic entry for the sales organization. You should set your entries as follows if EL is the delivery type of the inbound delivery: Sales organization * See also: Customizing [Extern] Delivery type EL Document date >1
24
April 2001
SAP AG
Entry Fields
Document selection Select the documents that you want to display.
April 2001
25
SAP AG
Prerequisites
There is at least one information structure for the archiving object RV_LIKP, created on the basis of the standard SAP field catalogues SAP_ RV_LIKP_001 or SAP_ RV_LIKP_002. The information structure has been activated and set up. The information structure contains the field VBELN as a key field.
In order to be able to use the process-oriented views (see below) in the archiving information system, there must be information structures available for the archiving objects SD_VBAK and SD_VBRK. The authorizations [Seite 28] for displaying archived deliveries have been maintained.
Features
Single document display
Within the single document display for deliveries, you can display the header and item data. The directly preceding document as well as all subsequent documents to the selected single document can be displayed. By clicking with the mouse you can display the corresponding preceding or subsequent document. It is irrelevant here whether the selected document is still in the database or has already been archived.
If a business view of the archiving information system is available, this is used to access the archived data. If there is no business view available and the document is no longer in the database, it is not possible to display the document. In this case, you only see the document number, further details are not possible. Specific documents such as WM transport orders or shipping elements have no display functions and can not be displayed if they are in the database. You can use the function Display originals to show the original document for an archived delivery via ArchiveLink. If they are available this also applies to related Workitems and IDOCs.
Displaying via ArchiveLink is only possible when there is a correct link to the Archive Link. The ArchiveLink Viewer must also be set correctly and enable access to the
26
April 2001
SAP AG
corresponding optical archive. The link entries in the relevant tables for ArchiveLink, Workitem and IDOCs must also be available.
You can use this function to navigate in the business process as you want to. The individual navigation steps are called up and are specified with a screen number behind the document type.
The same prerequisites apply for displaying original documents as for the individual document displays (see above). You can find further information on the Archiving Information System (SAP AS) under Archiving information system (SAP AS) [Extern].
April 2001
27
SAP AG
Authorizations (LE-SHP)
To display individual documents from archived deliveries via the archiving information system, you must have at least the following authorizations: 1. Reading archives: Object S_ARCHIVE APPLIC ARCH_OBJ ACTVT Value SD RV_LIKP 03 Description Application Archiving object Displaying archives
2. Displaying archived deliveries Object V_LIKP_VST VSTEL ACTVT Value * 03 Description Shipping point; can be specified Displaying the sales documents
3. Displaying documents set up via ArchiveLink: Object S_WFAR_OBJ OAARCHIV OAOBJEKTE OADOKUMENT ACTVT Value * * * 03 Description Access to a physical archive: can be specified Object category access; can be specified Document type access; can be specified Displaying archived originals
28
April 2001
SAP AG
You can carry out archiving for handling units using the archiving object LE_HU (see also Archiving Handling Units (LO-HU) [Extern]
April 2001
29
SAP AG
While the system always checks the last three criteria, you can set the first three in Customizing for Sales and Distribution under Data Transfer and Archiving Archiving Control.
30
April 2001
SAP AG
5. Choose Edit Continue. You reach the data screen in which you can define further attributes for the variant. 6. Save your variant. 7. Define a start time for the archiving run. 8. Enter a spool parameter, if you want a printout.
April 2001
31
SAP AG
32
April 2001
SAP AG
April 2001
33
SAP AG
The first four criteria are always checked by the program and cannot be altered, the last three, however, can be configured in Customizing.
34
April 2001
SAP AG
4. Choose Edit Continue. You reach the data screen in which you can define further attributes for the variant. 5. Save your variant. 6. Define a start time for the archiving run. 7. Enter a spool parameter, if you want a printout.
April 2001
35
SAP AG
4. Choose Edit Continue. You reach the data screen in which you can define further attributes for the variant. 5. Save your variant. 6. Choose the archive files from which you want to reload the shipment cost documents. 7. Define a start time for the reload run. 8. Enter a spool parameter, if you want a printout.
Result
The shipment cost documents you specified are reloaded. If a shipment cost document cannot be reloaded from the archive file (maybe because it is not within the correct number range or because an error occurred during reloading), then it is placed in a new archive file.
It generally only makes sense to reload documents soon after they have been archived. If important data, such as master data or Customizing settings, have been altered between the archiving and the reloading of the documents, this can lead to extreme discrepancies in the documents, since the entire environment has changed.
36
April 2001