Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member

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.

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.

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

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

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

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.

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.

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

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

Write tab:

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

And then click on the Archive button:

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

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:

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

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

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:

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

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