Skip to Content
avatar image
Former Member

Workflow Archiving

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    May 11, 2009 at 10:31 AM

    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...

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • May 11, 2009 at 08:35 AM

    Hi,

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

    2) Fix that

    3) Then Proceed Archiving

    Regards,

    Surjith

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 11, 2009 at 08:43 AM

    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

    Add comment
    10|10000 characters needed characters exceeded