Professional Documents
Culture Documents
Applies to:
Applies to ECC 6.0
Summary
The Worldwide Workflow Survey revealed that many are not archiving work items in workflow. These tables
can build up fast quickly. This paper walks you through the steps to archive work items using SAP standard
utilities.
Author Bio
Tammy Powlas works for Fairfax Water, is a SAP Mentor and ASUG volunteer with the BI and
BITI communities. She is SAP-certified in FI, CO, BW, SEM and ASAP.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 1
Archiving Work Items
Table of Contents
Work Item Archiving ............................................................................................................................................ 3
Background: .................................................................................................................................................... 3
Prerequisite ..................................................................................................................................................... 3
Transaction AOBJ ........................................................................................................................................... 4
Transaction SWW_SARA – Write Program .................................................................................................... 7
Transaction SWW_SARA – Delete Program ................................................................................................ 12
Related Content ................................................................................................................................................ 16
Disclaimer and Liability Notice .......................................................................................................................... 17
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 2
Archiving Work Items
Background:
“Archiving helps you control your data growth and system performance”. The overall steps are shown here:
A write program is written to the archive file and then a delete program is run to delete the information from
the online database.
Prerequisite
During an archiving delete run all (activated) archive information structures belonging to an archiving object
are filled automatically. See this note from the SAP Help:
Use transaction SARJ to activate archive info structure SAP_BO_2_WI_001 (Business Object Repository) or
SAP_O_2_WI_001 (Object-Oriented class structures)
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 3
Archiving Work Items
Transaction AOBJ
Use this transaction to set up variants for running the archiving (“write”) program in test mode and production
mode.
Enter WORKITEM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 4
Archiving Work Items
At this point you will set up variant names to run archiving program in test mode and production mode.
In this example, we will enter TEST as the variant name and click the Variant button.
Leave it in Test Mode and select SAVE option when exiting screen.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 5
Archiving Work Items
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 6
Archiving Work Items
Click SAVE.
Now you are reading to test the archiving workflows write program to the archive file.
Click Write
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 7
Archiving Work Items
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 8
Archiving Work Items
Next click Spool Params to see if you want to print the log
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 9
Archiving Work Items
Execute
SM37 to check
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 10
Archiving Work Items
Now to archive in production mode, enter your production mode variant and follow the same steps as test:
Execute
SM37 to check
The log looks the same except is shows Production mode:
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 11
Archiving Work Items
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 12
Archiving Work Items
Click SPOOL PARAMETERS and select appropriate spool parameters and click EXECUTE.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 13
Archiving Work Items
Now follow the same steps and click off test mode and Archive Selection button:
Follow the same steps as test mode, and then Execute after all lights are green:
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 14
Archiving Work Items
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 15
Archiving Work Items
Related Content
Workflow Survey Response to Comments
2010 Workflow Survey Responses
Recent Archiving Blog
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 16
Archiving Work Items
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 17