SAP Manufacturing Execution Archiving
SAP Manufacturing Execution Archiving
Applies to:
SAP Manufacturing Execution Archiving
Summary
This article explains about SAP Manufacturing Execution Archiving
It is useful to Basis Consultant and SAP ME consultant.
Author: BalaMurugan Sambandam
Company: Infosys Technologies Ltd
Created on: 23-09-2013
Author Bio
Balamurugan Sambandam is SAP Netweaver Technical Architect, working in Infosys Technologies Ltd in Chennai. He is working with R/3, EP, PI, WAS administration, R/3 security, ME and MII.
Table of Contents
SAP ME Archive
Need for Archiving
When to run Archive job
What gets archived
Prerequisites
Archive Job Execution
SAP ME Archive:
Archive is a process of moving a closed SFC or shop order record out of the active WIP database into the archive database.
Archiving can be done either automatically or manually by using script.
Need for Archiving:
The number of records in the WIP database becomes quite large after certain period of time. When the system searches through a large number of records, it slows down the retrieval process. So the performance of the system will be poor. In order to achieve good performance we need to archive the closed SFC or shop orders .Once we archive the shop orders or SFC, the DB performance will be improved.
When to Run Archive job:
Archiving should be executed when the plant is not running. Need to run the job when there is no production. If we run the job during production hours, it will affect the system performance.
What gets archived
SAP ME Archive utilities archive shop orders or SFCs with the following statuses:
· Done
· Closed
· Scrapped
· Deleted
· Invalid
Prerequisites:
Define the following system rule in SAP ME:
1. 1.In System Rules Maintenance- Miscellaneous: Define the number of days the closed records must remain in the WIP database before the system archives them in the Days before Archiving SFC / SO / CO system rule. 
2. 2. In System Rules Maintenance- Miscellaneous: Define whether components should be archived only when the parent assembly is archived, instead of when the component is done in the Archive Component when Parent Archived systems rule. 
3. 3. In System Rule Maintenance- miscellaneous: Define if the Handle columns in the Archive table have to be expanded for reporting in the Expand Archive Handles system rule. Since this will affect performance, the system rule value is FALSE by default. 
4. 4. Execute automatic batch archiving either in command line or using the Background Processing.
Archiving background process should be enabled for automatic execution only. If we want to run the script manually, do not select the “ENABLED” check box.
5.
Archive Job Execution :
Run Archive Job in the command line:
a. Login to ME client server remotely.
b. Run the Archive. Bat script using command line in the below path.
(APPS\SAP\SAPME\Clients\Scripts)
c. Once we run the Archive job , the ArchiveGenRad.lck lock is created in the scripts folder. 
d. In the netweaver log, Archive log is updated regularly when the archive job runs.
e. Once the Archive job is completed successfully , It will provide the total number of archived records and archived shop orders.


Not bad, though once archiving feature has not been changed for years I would recommend align this post with the official documentation here.
There has been a new system rule introduced - "Archive SFCs When Shop Order Is Closed or Done" - but its use should be more or less clear from SAP Note 1693353.
Regards,
Sergiy
Thanks Sergiy.
I would recommend to remove steps and screenshots that refer to customized archiving process, i.e. there is no ArchiveReceiptProcess.bat in base ME release. This would be misleading for guys that do not have much experience in ME.
Br,
Konstantin
Thanks Konstantin.
hi Bala,
Where can we download these scripts? also Where can one download ODS scripts?
thanks
Nanda
Hi Nanda,
These scripts are a part of SAP ME Scripts available for download from SMP.
Regards,
Sergiy