cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow Archiving

Former Member
0 Kudos

Hi Friends,

I am involved in the Process of Workflow Archiving. As per sap documentation we can archive only completed and canceled workitems. In my Production system there are lot of workflows which are in error status. Is it possible to archive these workflows with status "Error"? If not if I delete these workflows using tcode "SWWL" will it cause any issue. Please advice.

Accepted Solutions (1)

Accepted Solutions (1)

rahulkavuri
Active Contributor
0 Kudos

It is not possible to anaylse each and every workflow when there are thousands of such workflows...

You can delete these workitems with an error using the program RSWWWIDE...

Former Member
0 Kudos

@rahul: report RSWWWIDE should never be used in a production environment as it deletes workitems physically without any dependency check. Your answer is misleading and dangerous. Please correct!

Former Member
0 Kudos

Hi Patrick,

In this case how to archive or delete the error workitems. Please advice.

Former Member
0 Kudos

You can use the archiving functionality to get rid of your workitems (tx SARA, object WORKITEM).

If you have many workflows in error and want to get rid of those as well you might have to set them to status 'CANCELLED' first. Unfortunately there is no standard SAP functionality to do that in mass. But you can easily develop your own program to do it, using function module SAP_WAPI_ADM_WORKFLOW_CANCEL.

Cheers,

Patrick

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

1. You are right, archiving is possible only for workitems with status COMPLETED or CANCELLED using archive object WORKITEM.

2. It is generally not recommended to use SWWL (or report RSWWWIDE) in production as it does not check any dependencies.

Please refer to SAP note 573656 for more info.

you can also perform an analysis of table SWWWIHEAD using transaction TAANA to see the proportion of COMPLETED and CANCELLED workitems compared to others. Then you could decide whether its sufficient to archive only those workitems which are completed or cancelled.

Hope this helps,

Naveen

Edited by: Naveen Prabhakar on May 11, 2009 10:51 AM

surjith_kumar
Active Contributor
0 Kudos

Hi,

1) Don't Delete, first analyze the error by seeing the Workflow log.

2) Fix that

3) Then Proceed Archiving

Regards,

Surjith