ARCHIVING OF IDOCS IN SAP



Similar documents
Download and Install Crystal Reports for Eclipse via the Eclipse Software Update Manager

How to Set Up an Authorization for a Business Partner in Customer Relationship Management (CRM) Internet Sales: Sample Case

Configuring Distribution List in Compliant User Provisioning

How To Configure MDM to Work with Oracle ASM-Based Products

Analyzing Sales Data for Choosing Forecast Strategies

Extract Archived Data from SAP ERP

Roster Configuration (Payroll) in SAP ECC 6.0 Tips & Tricks

prioritize XI messages on integration server

SAP GRC Access Control: Background jobs for risk analysis and remediation (formerly Virsa Compliance Calibrator)

Backup & Restore with SAP BPC (MS SQL 2005)

3 rd party Service Desk interface

Methodology to Implement SAP Process Integration

Utilities for downloading and uploading OO ABAP classes in XML format

Posting Messages into XI

Ronald Bueck SBO Product Definition

Implementing Outlook Integration for SAP Business One

CREATING A PURCHASE ORDER STORE RECORD WEB SERVICE

Performance Best Practices Guide for SAP NetWeaver Portal 7.3

How to configure BusinessObjects Enterprise with Citrix Presentation Server 4.0

Developing Applications for Integration between PI and SAP ERP in Different Network Domains or Landscapes

E-Recruiting Job Board Integration using XI

How to Configure and Trouble Shoot Notification for Process Control 2.5

Sales Rush Sales Order Processing S01- Lean Baseline Package. SAP Lean Baseline Package Version: V1.500 Country: UK Language: EN Date: February 2006

Integrate Third Party Collaboration Tools in the SAP NetWeaver Portal. SAP NetWeaver Product Management

Problems with your Data Model in SAP NetWeaver MDM Do s and Don ts

Data Archiving in CRM: a Brief Overview

How To Balance In Sap Bw

Enabling Full-Text Search for Business Objects in mysap ERP

SAP Master Data Governance- Hiding fields in the change request User Interface

Budget Control by Cost Center

How To... Call BEx Web Applications from SAP BusinessObjects Dashboards (Xcelsius) and vice versa

Business One in Action - How can we post bank fees and charges while posting Incoming or Outgoing Payment transactions?

How To... Integrate Custom Formulas into the Formula Builder

TM111. ERP Integration for Order Management (Shipper Specific) COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Integrating Easy Document Management System in SAP DMS

SAP NetWeaver MDM 5.5 SP3 SAP Portal iviews Installation & Configuration. Ron Hendrickx SAP NetWeaver RIG Americas Foundation Team

How to Create Web Dynpro-Based iviews. Based on SAP NetWeaver 04 Stack 09. Jochen Guertler

Siteco Relies on SDN for its SAP CRM 5.0 Upgrade

How to Configure Access Control for Exchange using PowerShell Cmdlets A Step-by-Step guide

Maintaining Different Addresses and Ids for a Business Partner via CRM Web UI

Alert Notification in SAP Supply Network Collaboration. SNC Extension Guide

Integration of SAP central user administration with Microsoft Active Directory

Workflow extended notifications

Debugging Portal Applications

USDL XG WP3 SAP use case. Kay Kadner

Global Transport Label - General Motors -

Enterprise Software - Applications, Technologies and Programming

Process Archiving using NetWeaver Business Process Management

SAP Sales and Operations Planning Software Product (xsop)

R/3 and J2EE Setup for Digital Signature on Form 16 in HR Systems

User Experience in Custom Apps

Understanding HR Schema and PCR with an Example

mysap ERP Talent Management Dr. Christian Acosta-Flamma

How to Add an Attribute to a Case, Record and a Document in NW Folder Management (ex-records Management)

NetWeaver Business Client (NWBC) for Incentives and Commissions Management (ICM)

Using SAP Logon Tickets for Single Sign on to Microsoft based web applications

Third Party Digital Asset Management Integration

Collaboration Technology Support Center - Microsoft - Collaboration Brief

Monitoring and Management of Landscapes with SAP NetWeaver Administrator. Dieter Krieger, SAP AG

SAPFIN. Overview of SAP ERP Financials COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Table of Contents. How to Find Database Index usage per ABAP Report and Creating an Index

SAP CCMS Monitors Microsoft Windows Eventlog

Log Analysis Tool for SAP NetWeaver AS Java

DBA Cockpit for Oracle

SAP Central Process Scheduling (CPS) 8.0 by Redwood

HR400 SAP ERP HCM Payroll Configuration

Data Source Enhancement Using User Exit

Business Requirements... 3 Analytics... 3 Typical Use Cases... 8 Related Content... 9 Copyright... 10

SAP Business ByDesign Reference Systems. Scenario Outline. SAP ERP Integration Scenarios

UI Framework Logo exchange without skin copy. SAP Enhancement Package 1 for SAP CRM 7.0

OData in a Nutshell. August 2011 INTERNAL

Intelligent Business Operations Chapter 1: Overview & Strategy

DATA ARCHIVING IN SAP R/3 ENTERPRISE. Georg Fischer PM Data Archiving SAP AG

How to Create a Support Message in SAP Service Marketplace

AC200. Basics of Customizing for Financial Accounting: General Ledger, Accounts Receivable, Accounts Payable COURSE OUTLINE

Sending Additional Files from SAP Netweaver PI to third Party System

Accounts Receivable. SAP Best Practices

Consume an External Web Service in a Nutshell with good old ABAP

Variable Exit in Sap BI How to Start

Integration of SAP Netweaver User Management with LDAP

BC407 Reporting: QuickViewer, InfoSet Query and SAP Query

How to Schedule Report Execution and Mailing

Portfolio and Project Management 5.0: Excel Integration for Financial and Capacity Planning

UI Framework Simple Search in CRM WebClient based on NetWeaver Enterprise Search (ABAP) SAP Enhancement Package 1 for SAP CRM 7.0

FSC130 SAP Bank Communication Management

Compliant, Business-Driven Identity Management using. SAP NetWeaver Identity Management and SBOP Access Control. February 2010

Xcelsius Dashboards on SAP NetWaver BW Implementation Best Practices

K in Identify the differences between the universe design tool and the information design tool

Sample Universe on Microsoft OLAP Cube

SAP NetWeaver BRM 7.3

Mass Maintenance of Procurement Data in SAP

SOP through Long Term Planning Transfer to LIS/PIS/Capacity. SAP Best Practices

SAP Service Tools for Performance Analysis

Quick Guide EDI/IDoc Interfacing to SAP ECC from External System

UI Framework Task Based User Interface. SAP Enhancement Package 1 for SAP CRM 7.0

Installation Guide Customized Installation of SQL Server 2008 for an SAP System with SQL4SAP.VBS

RUN BETTER Become a Best-Run Business with Remote Support Platform for SAP Business One

How to Configure and Trouble Shoot Workflow for Process Control 2.5

Using User Exit for Variables in BEx Reporting

LO Extraction Part 1: SD Application Short Overview

Transcription:

SDN Contribution ARCHIVING OF IDOCS IN SAP Summary Archiving is the process of offloading data in SAP documents to a file at the Operating system layer for future retrieval and optionally delete the documents from the SAP system. Theimportant point here is future retrieval.sap provides a workbench for archiving objects and later retrieving objects from the archives. Created on: 14 December 2005 Author Bio Aveek Ghose is an employee of IBM India and working in the custom development area. M.S Information Systems (George Mason University, Fairfax, Virginia, USA) M.S. Economics (Virginia Tech, Blackburg, Virginia, USA ).. 2006 SAP AG 1

Table of Contents Archiving of Idocs in SAP... 1 Summary... 1 Author Bio... 1 Table of Contents... 2 Archiving of Idocs in SAP... 3 Reasons for Archiving... 3 Basic Settings For Archiving:... 3 Maintaining File Names... 4 Basic Requirement For Archiving... 6 Program Used for Archiving :... 6 Archiving program for IDocs... 6 Note... 6 Using transaction SARA for Archiving :... 9 Copyright... 13 2006 SAP AG 2

Archiving of Idocs in SAP Archiving is the process of offloading data in SAP documents to a file at the Operating system layer for future retrieval and optionally deleting the documents from the SAP system. The important point here is future retrieval.sap provides a workbench for archiving objects and later retrieving objects from the archives. Reasons for Archiving The major reasons for archiving is to improve performance,but archiving also helps to reclaim disksapce that otherwise would be taken up by obsolete documents(idocs and workitems,in this case) Basic Settings For Archiving: Follow these 2 steps before you start archiving: Maintaining Logical path names and physical path Execute transaction FILE, This displays the paths that exist in the system as shown in the screen shot. Assign a logical name for the path click the new entries button and give a name stating With Z to represent the path. 2006 SAP AG 3

To assign physical path. Select the Z logical path created in the previous step and double Click on asignment of physical paths on the left side of the screen. Click on new entries you Will get the screen where you enter syntax group as Unix(You can choose what ever appropriate For you).enter physical path and end it with < FILENAME>, as shown in the screen shot. Maintaining File Names After you maintain logical path name for the archive file you maintain a logical name for the archive file. Double click on logical file name defnition on the left side of the screen.you will get all the logical filenames Click the new entries button.enter values in the field as shown in attachment filename.jpg.the filename contains substitution parameters,which are represented in angle brackets in the screen shot. 2006 SAP AG 4

2006 SAP AG 5

Basic Requirement For Archiving You can not archive Idocs arbitrarily.an idoc status indicates whether it is suitable for archiving. It make sense if you want to archive Idoc with status code 53(Idoc that has been posted sucessfuly),but it does not Make sense to archive Idoc with status code 64(Idoc that has not been processed yet).the list of status code which can be processed for archiving we can get it from table STACUST Overview of Archiving Module You can archive Idocs in SAP in two ways. Using Programs for archiving. Using Transaction SARA The functions of SAP archiving process are as follows. Archiving Data : This is implemented in 2 step process.in 1st step we will be documents such as Idocs workitems and purchase orders are offloaded to an archive file at the OS layers. The second step will be reading the archive file and objects are deleted from the system.this Ensures that the objects are not deleted until it has been archived sucessfully to a file. Program Used for Archiving : Program Name: RSEXARCA Short text Archiving program for IDocs The archiving program selects IDocs for archiving and writes them to an archive. You can subsequently delete the archived IDocs with a separate program. Using the various selection parameters you can select specific IDocs for archiving. Note here the difference between the last status change and the date of IDoc creation. The IDoc number is also important. The archiving program selects sufficient IDocs for the selection parameters, and archives them using the function module EDI_ARCHIVE_IDOCS. After archiving, the system displays statistics regarding the IDocs that have actually been archived. There can also be IDocs in the selection table with the status that does not allow archiving. In status maintenance you set which statuses are archivable and which are not. This is the case in the standard system. Note Only use the archiving program if the IDocs were not activated through the application. You must make sure that no IDocs are activated that still might be needed by the application. Output 2006 SAP AG 6

A log is generated in which the most important fields from the control records of the archived IDocs are located. It also outputs the number of archived IDocs. o Direction o IDoc number The archiving program compiles the list of IDoc numbers which were defined by the selection criteria and passes these to the module 'EDI_ARCHIVE_IDOCS'which then archives the IDocs. A log is output after archiving listing the IDocs which were actually archived. The selection list can also contain IDocs whose status does not allow archiving. Which status values can be archived and which cannot is currently defined explicitly by the FORM routine 'INITIALIZE_STATUS_QUALITY' in the function group 'EDIA', the implementation of the archiving class and the archiving program functionality. This ensures that IDocs with status values intended for further processing are not archived. Caution: Only use this archiving program for IDocs if the IDocs are not archived by the application. You need to ensure that IDocs are not archived which may still be required by the application. Analysing Data stored in archives : After the archiving the data.you can analyse the archived Data and obtain the details on objects stored in the archive file. Program Used for reading data Program Name: RSEXARCR Short text IDoc Archive Read Program Description The read program is intended for evaluating archived IDocs. An intermediate document (IDoc) archive is read using the archive interface. This only accesses the control records and the link information stored for the read IDocs. The archive is selected using the file selection of archive administration. The read program returns the following fields of the control record in the log list: Message type Message code Message function Status Date and time of last status update I. Direction Number The display also includes whether links to the IDoc have been archived. 2006 SAP AG 7

Output A log is generated which contains the most important fields in the control records of the read IDocs. The log also contains the total number of IDocs read. Reloading Data : Data from archive files can be reloaded into the SAPsystem. This functionality is usually not required. If a need arises the data can be reloaded.the reloaded Idocs are set to status 35 for Outbound and 71 for inbound.the reloaded Idocs can not be rearchived. Program used for reloading of Idocs : Program Name: RSEXARCL Short text Reload program IDoc archive Description The reload program writes all IDocs of an archive to the system. It also calls module ARCHIVE_RELOAD_OBJECT_DATA. The reloaded IDocs are assigned the new status "reloaded": In outbound processing it is status '35', in inbound procesing '71'. These status values cannot be archived in the standard system. This ensures that IDocs which have been reloaded are not archived again by periodic archiving runs. Before reloading, the module EDI_IDOC_RELOADABLE is called. This checks: Whether the current client corresponds to the clients from which the data originates. This prevents data being entered in the wrong client. Whether an IDoc with this number already exists in the database. The reload program provided by SAP only flags the IDoc as reloaded in the R/3 database, but not in the archive. It is therefore possible to reload IDocs several times in the R/3 System if you set status '35' or '71' in status maintenance to 'archivable'. Output A log is generated, which contains the most important fields in the control records of the IDocs that have been read. The number of IDocs is also produced in the log. 2006 SAP AG 8

Using transaction SARA for Archiving : Execute transaction SARA.Enter Idoc in the object name field and press enter.this will give all the options available as shown in the screen shot below. This step sets up a variant for the archiving program.click the archive button.enter a variant name and then click the maintain button as in the screen shot below. 2006 SAP AG 9

You can select the Idocs to be archived based on date,message type,message code,message function,direction,idoc Number rangeas shown in the screen shot below. 2006 SAP AG 10

Now you can specify the start time and spool parameters for the archiving program.click the 2006 SAP AG 11

Start time button and enter appropriate values. You can also select to execute the program immediately as shown in the screen shot. Click on spool parameters that determine where to send the program output.click the execute button and the system will start archiving the objects. Similarly you can use the other options like Delete,reload in the intial screen of the SARA 2006 SAP AG 12

Copyright Copyright 2006 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, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iseries, pseries, xseries, zseries, z/os, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, and Informix are trademarks or registered trademarks of IBM Corporation in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C 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. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mysap, mysap.com, xapps, xapp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves information purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. These materials are provided as is without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP shall not be liable for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. SAP does not warrant the accuracy or completeness of the information, text, graphics, links or other items contained within these materials. SAP has no control over the information that you may access through the use of hot links contained in these materials and does not endorse your use of third party web pages nor provide any warranty whatsoever relating to third party web pages. 2006 SAP AG 13

Any software coding and/or code lines / strings ( Code ) included in this documentation are only examples and are not intended to be used in a productive system environment. The Code is only intended better explain and visualize the syntax and phrasing rules of certain coding. SAP does not warrant the correctness and completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, except if such damages were caused by SAP intentionally or grossly negligent. 2006 SAP AG 14