Skip to Content

I was recently asked if there was a way to archive all of the completed or canceled processes in our SAP NetWeaver CE 7.2 System.  I did some quick research and found out that this is possible by implementing archive object BPM_PROC.  As this was going to be the first time I had attempted XML Archiving, I needed some additional help/information.  I found the following whitepaper out on SDN:

Process Archiving using NetWeaver Business Process Management by Chembrakalathil Venugopal

as well as information out in the SAP Help Library:

Process Data Archiving

Administration of the XML Data Archiving Service

Java Archiving Cockpit

I was now ready to begin.  A decision to use a filesystem to store the archive files instead of a WebDAV system had already been made.  So, a filesystem was created – make sure this filesystem is made available to all relative servers.  (See SAP Help for the Java Archiving Cockpit.)

Next step:  Create an archive administrator user id that will be used to archive the data.  Go to SAP NetWeaver Administration -> Operation Management -> Users and Access -> Identity Management -> Create User

The necessary roles that need to be assigned are:

  • SAP_ARCH_XMLDAS_VIEW
  • SAP_ARCH_SUPERADMIN
  • NWA_SUPERADMIN
  • XMLDASSecurityRole

When creating the user for the Archive Administration, be sure to select “Technical User” for the Security Policy.  This user name is needed for the next step.

SNAG-0813.jpg

Next step:  Configure your Java System environment.  This is done by configuring the DAS (Data Archiving Service) Destination.  Go to SAP NetWeaver Administration -> Configuration Management -> Security -> Destinations

And configure/edit DASdefault.  Verify the URL is correct and then on the Logon Data tab, change the Authentication to Basic (User ID and Password) and then enter the user ID and password you created in Step 1.

SNAG-0803.jpg

Next step:  Configure the XML DAS (Data Archiving Service). 

Go to SAP NetWeaver Administration -> Operation Management -> Data and Databases -> XML DAS Administration

SNAG-0811.jpg

Go to the Archive Store Management table and click on Define to create an Archive Store.

SNAG-0814.jpg

Enter the name, description, store type (File System or WebDAV System).  This example will use a file system, so the path that was previously created is entered.

Once you have saved the new Archive Store, select it and click on Test Selected to make sure the configuration is correct.

SNAG-0815.jpg

Next step:  Go to the Home Path Synchronization tab to Create New Home Collection.  For the Home Path, enter /<system name>/bpm_proc/ and then select the relative Archive Store from the drop down.  And click on Start.

SNAG-0816.jpg

Once a Home Collection has been created, you can now view the Archive Hierarchy & Store Assignment information:

SNAG-0824.jpg

The system is now ready for archiving.  You can archive processes from either the Java Archiving Cockpit:

SNAG-0811 (1).jpg

Write tab:

SNAG-0818.jpg

Or from SAP NetWeaver Administrator -> Availablity and Performance Management -> BPM System Overview ( select either the Completed or Canceled Processes):

SNAG-0820.jpg

And then click on the Archive button:

SNAG-0821.jpg

You have the following parameters by which you can archive Processes:

SNAG-0818.jpg

In the Selection Criteria, you can enter a time period or from the Manage Processes screen, you can manually select/highlight the entries you wish to archive.  In the Technical Settings, you do have the option to run the archive job in test/simulation mode.  You can also change the Comment to something more meaningful.  In the Schedule Settings, you can start the job immediately or enter a date and time. 

When you click on Start Write Session, the following message is displayed:

SNAG-0822.jpg

You can also choose to start the delete job immediately, or you can manually schedule it via the Delete tab:

SNAG-0825.jpg

Once the archive job has been submitted, you can check the status on the Archiving Monitor tab:

SNAG-0823.jpg

Viewing the archived Processes.

** Note that you will need some type of BPM role assigned such as SAP_BPM_SuperDisplay.

Then, from within Manage Processes: Process Instances, click on the Advanced link:

SNAG-0826.jpg

Select “Archived” from the Advanced drop down and click on Go:

SNAG-0827.jpg

You will know you are viewing archived data if the Archived checkbox is selected within the Details of the relative Process:

SNAG-0828.jpg

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply