Login Form

Best viewed in IE 7.0

ADVERTISEMENTS
ADVERTISEMENT

Performance and Workflow - Part 4

Archiving Workitems

·         Production: In production systems it is recommended you archive workitems using the object WORKITEM. You can only archive workitems of status COMPLETED or CANCELLED. (Use transaction SARA) It is NOT recommended you use report RSWWWIDE in a production system because the report does not check dependencies, so there is always a danger to delete steps in a flow which is not completed.

·         Development/Test: Note(49545) To delete workitems using reports RSWWWIDE and RSWWHIDE please refer to note 49545 for additional details:

o    RSWWWIDE - this report deletes the work item including all attachments and dependent work items.

o    RSWWHIDE - this report deletes the work item history.

o    If you have large amounts of workitems to be deleted it may be necessary to restrict the selection criteria in RSWWWIDE by specifying specific date ranges, work item types or work item status. To be more concrete you can even run RSWWWIDE without anything specified in order to delete all workitems in the system. However, ALL workitems will be permanently deleted!

·         IDocs: Deletion of type C workitems: Notes(153205 & 126678) During IDoc inbound processing, an application object is generated from an IDoc. Before Release 4.6A, the relation between both objects is implemented via the so-called ContainerItems (type C work items). As of Release 4.6A the links between the IDocs and the application objects generated from them are stored via new functions and ContainerItems are no longer created.

Since the work items in the user inboxes are not private copies unlike mail, but are only references to a single work item, it is not possible to delete the inbox of only one user. Work items can only ever be deleted as such, that is, from the inboxes of all users.
Reports RSWWWIDE and RSWWHIDE are available for this. Both reports are purely administration tools. They delete all selected work items directly without further warning messages or authorization checks in the database. RSWWWIDE deletes the work item as such (including its attachments and all dependent work items), RSWWHIDE deletes the work item history. RSWWWIDE can also delete work items which are not in a final status or that are part of a higher-level workflow. After executing the reports, there is not a possibility to reconstruct the deleted work items.
For safety reasons we recommend first starting both reports online, making the required selection and setting the flag "Only display list". After making sure that the required selection is correct, the actual deletion should occur in a background, for performance reasons, whose only step is the report RSWWWIDE (or as a second step RSWWHIDE) in the variant determined beforehand.
As of Release 3.0D, you have the option of archiving work items. For this, both an archiving object WORKITEM and an archiving class WORKITEM were implemented within the Archive Development Kit (ADK) for work items. Users of this function should first make themselves familiar with the ADK (for example, via the online documentation).
To delete work items via the ADK, an archiving file must first be created. The work items stored in this archiving file can then be deleted in a second step via the ADK. The archiving and the deletion of work items via the ADK is described in detail in the online documentation for Workflow.
When archiving, it should be noted that attachments for a work item are not archived as well, but are deleted from the database in the deletion step which possibly follows.
The history for a work item and the step log for a workflow are deleted automatically when you use the ADK.
For reasons of consistency it is not possible to reload the archived data from the archive to the original database tables since the numbers of the archived work items are used again at a later date. Therefore, new data could be overwritten with old values during the reload.
However, it is possible to read the data in internal tables for possible separate evaluations. Report RSWWARCR is an easy example of such a read program. This report is considered as a templated for reading reports created by the customer in accordance with his requirements.

The actual data read back happens via the function module SWW_WI_LIST_ARCHIVED_READ.

ADVERTISEMENT
Free software downloads