sap sd/mm archiving sheila schedlbauer program manager microsoft corporation session code: 107

32
SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

Post on 19-Dec-2015

246 views

Category:

Documents


11 download

TRANSCRIPT

Page 1: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

SAP SD/MM ARCHIVING

Sheila SchedlbauerProgram ManagerMicrosoft Corporation

Session Code: 107

Page 2: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

SAP ArchitectureArchive HistoryBuild a Successful Archive Run

•Project plan•Objects, Data extract & SARA•Metrics

Archive Again or UpgradeQ&A

Agenda

Page 3: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

SAP Global Instance• Single database & 9 application servers• SQL Server 2000 & Windows Server 2003• Version 4.5B, Hot pack 57• Modules SD, MM, FI, CO, HR, AM, RE• 2000 named users in 68 countries• 39,000 worldwide users• Heavy EDI and web based usage • 99.9% availability

SAP Architecture

Page 4: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

9696 9797 9898 9999

Large & Med Subsidiaries

Small & Med Subsidiaries

OEM Software

9595

Core Config

OEM H/W

Small & New Subsidiaries

Packaged Product, Etc.

0000

Archive Project Begins

Archive History

Page 5: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

Phased Approach• IDOC (Monthly)

– Started July 99 (2 GB/month)

• FI (Yearly)– Started December 99 (50 GB/year)

• SD/MM (Yearly to quarterly basis)– Started September 00 (25 GB/quarter)

Archive History

Page 6: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

Growth = 6 GB/WK Total, 2 GB/WK SDMM

Archive History

950

970

990

1010

1030

1050

1070

1090

9/1/02 10/1/02 11/1/02 12/1/02 1/1/03 2/1/03 3/1/03

DA

TA

BA

SE

GR

OW

TH

GB

1

Page 7: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

SAP ArchitectureArchive HistoryBuild a Successful Archive Run

•Project plan•Objects, Data extract & SARA•Metrics

Archive Again or UpgradeQ&A

Agenda

Page 8: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

Project Plan• Archive jobs can run for a long time!

– Per 600 MB file, VBAK = 12 hours write, 16 hours delete, typical 4 files/quarter

• Items to consider– Need 2 plans: Test and Production– Resources: 2 wks/qrtr testing, 2 wks/qrtr

executing– Preplanned system down times– Month end processing – system performance– Other projects– Contingency

Build a Successful Archive Run

Page 9: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

• Areas of Coordination– Basis, Business, Finance

Small window in which archive jobs can run

Build a Successful Archive Run

Page 10: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

Objects• MM_EKKO Purchasing documents• RV_LIKP Deliveries• MM_MATBEL Material documents• SD_VBAK Sales documents• SD_VBRK Billing documents• SD_COND Sales pricing records• ZZINVTABLE For billing related custom

tables• BALM SAP supplied delete

program

Build a Successful Archive Run

Page 11: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

• One step archiving– Write and delete jobs run subsequently– SD_COND

• Two step archiving– Write and delete jobs run separately– ZZINVTABLE, MM_EKKO, MM_MATBEL,

RV_LIKP, SD_VBRK, SD_VBAK

• Simple delete– BALM

Build a Successful Archive Run

Page 12: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

Data Warehous

e

ExcelReports

SAP R/3SQL 2000

Data Extract

Write

Extract

Delete

Build a Successful Archive Run

Page 13: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

SARA• Technical Settings

– Archive file size = 600 MB– Commit counter set to 10– “Start automat.” not selected (except

SD_COND)– “Make index” selected – Files written and retained on a network share– 4.7 improvement – Interrupt settings, Data

archiving monitor

Build a Successful Archive Run

Page 14: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

• Archiving Control– Residence time 365 days – SD_COND - expired validity date – Excluded specific business streams (9999)– SD_VBRK - “check account doc is cleared”

selected in the customization

• Variant Settings – Max # of records per table = 100 000

(SD_COND)– “Check FI document”

– “Check flow documents residence”

Build a Successful Archive Run

Page 15: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

ZZINVTABLE – Custom object• Archive Write and Delete programs

– ADK Function modules– Documentation – SARA/Help, SE37– Specific requirements

• AOBJ– New Entry – create the object - ZZINVTABLE– Assign the programs to the object– Assign the tables to the object (ZINVHDR,

ZINVDET)

• SARA– Run the new object

Build a Successful Archive Run

Page 16: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

BALM• OSS Note 0195157• Removes entries from tables related to

the flow of data between APO and SAP• Need to only keep one month of data• Run as a batch job on a weekly schedule• In 4.7 - Available as an object BC_SBAL

Build a Successful Archive Run

Page 17: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

Metrics• 2 Metrics of interest

– Database recovery– Job performance

Build a Successful Archive Run

Page 18: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

• Determine the tables to measure– Total = 340 tables for our objects– DB02 - to determine the largest 100 tables– SARA - to list the tables included in the

objects– Compare the DB02 results and the SARA

information– Pick header and detail pairs– 30 tables

Build a Successful Archive Run

Page 19: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

ADR2 ADR5ADR

CADRCOM

CADRCT ADRV

CDCLS

CDHDR

EKKO

EKPO KONP LIKP

LIPS MKPFMSE

GNAST STXH STXL

VBAK VBAP VBEP VBFA VBKD VBPA

VBRK VBRPVBU

KVBUP

ZINVDET

ZINVHDR

Build a Successful Archive Run

Page 20: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

• Measure the Database– DB02 - Run “updateusage” on selected archive

tables – Collect table size information and store the data

in a reporting database – Run delete jobs– Run “updateusage” again on archive tables– Collect post-delete table size information and

store in reporting database– Run delta report

Build a Successful Archive Run

Page 21: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

SIZE (MB) ADRC

CDHDR LIPS MSEG NAST STXH VBAK

Before19816 45219 6468 9255 17342 7422 2642

After19013 44357 5481 8233 14912 6689 2252

Reclaimed 803 862 987 1022 2430 753 390

 

SIZE (MB) VBAP VBEP VBFA VBPA VBRK VBRP VBUK

Before17734 4971 20131 25955 3648 13986 3044

After16089 4223 18272 22427 3120 11973 2608

Reclaimed 1645 748 1859 3528 528 2013 436

               

Total Database Reclaimed = 23530 Megabytes (23.5 GB)

Build a Successful Archive Run

Page 22: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

Object Job Hours Job Hours#

Files

Total MB

(compressed)

MM_EKKO Write 0.5 Delete 0.25 1 11

MM_MATBEL Write 0.75 Delete 2.25 1 165

RV_LIKP Write 5.75 Delete 6 1 575

SD_VBAK Write 22 Delete 45 4 2270

SD_VBRK Write 22 Delete 31 4 2129

SD_COND Write 0.5 Delete 0.5 2 81

ZZINVTABLE Write 14 Delete 0.15 1 88

TOTAL Write 66 Hrs Delete 85 Hrs 14 5319

ALLExtrac

t 13 Hrs

COMPLETE RUN = 164 Hrs (7 Days)

Build a Successful Archive Run

Page 23: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

Metrics – 4.7 New Functionality• 4.7 offers new functionality

– Data Archiving Monitor– Display Statistics

Build a Successful Archive Run

Page 24: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

Tcode: RZ20

Build a Successful Archive Run

• View across objects

• Progress of archive jobs

• Need for action

• Start time, run time, etc.

Page 25: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

Build a Successful Archive Run

• Date

• Run time

• DB statistics

Page 26: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

SAP ArchitectureArchive History Build a Successful Archive Run

Project PlanObjects, Data extract & SARAMetrics

Archive Again or UpgradeQ&A

Agenda

Page 27: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

Review the Process• Keep a core team together (functional,

basis, business)• New business requirements• Performance improvements• Retest after hot pack applications

Archive Again or Upgrade

Page 28: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

Some Challenges• SD_VBAK & SD_VBRK - Memory errors

preventing completion of write phase• MM_EKKO - Error in ABAP application

program in write phase - perform not found.• RV_LIKP – Custom read job for extract step

ends in ABAP error

Archive Again or Upgrade

Page 29: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

OSS Notes• Check OSS regularly!• Best way to search for notes

– “SARA”, “AOBJ”– Error message– Object name (ex SD_VBAK or VBAK)– Program name (S3VBAKWR)– “archive”, “archiving”– Note 0102446 gives application areas for

each archive object

Archive Again or Upgrade

Page 30: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

Use a project planRight balance between

performance and document flow integrity

Small data setReview the process regularly

Summary

Page 31: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

Questions

Page 32: SAP SD/MM ARCHIVING Sheila Schedlbauer Program Manager Microsoft Corporation Session Code: 107

Thank you for attending!

Please remember to complete and return

your evaluation form following this session.

Session Code:107