SAP Function WORKITEM_ARCHIVE_OBJECT - Archiving Class WORKITEM: Write Work Item in Archive

Parameter Reference Type Length Default Optional Text
ARCHIVE_HANDLE SYST-TABIX I 4 Archive handle
OBJECT_DELETE_FLAG SWWCOMMIT-DELETEFLAG C 1 SPACE X Flag if work item should be deleted
WORKITEM_ID SWWWIHEAD-WI_ID N 12 Work item ID

Exception Text
WRONG_ACCESS_TO_ARCHIVE Archive handle unknown or incorrect access

Functionality
The function module creates the interface for archiving a work item(archiving class WORKITEM). It can be used by other archiving classesin order to archive WORKITEM archiving objects in their context.
The specified Workitem is added to the archive. The writing of thearchive occurs in coordination of the form routines of this functiongroup with routines from the ADK (Archive Development Kit).

Further information
For further information see the archiving documentation, the ADKmanuals, the documentation on programs RSWWARCA (archiving report ofthe WORKITEM archiving object) and RSWWARCD (deletion report of theWORKITEM archiving object) and also in the hints on the WORKITEMarchiving object.

Description
The parameter is used for passing the archive currently beingprocessed, and must have been created before using the function moduleARCHIVE_OPEN_FOR_WRITE (or ARCHIVE_OPEN_FOR_READ).

Value range
As this parameter is a transparent handle for the application, theactual value range is insignificant for the caller.

Default
The parameter is mandatory and therefore has no default value.