SAP Function SOBL_ARCHIVE_OBJECT - Function Module to Note the Class Data

Parameter Reference Type Length Default Optional Text
ARCHIVE_HANDLE SYST-TABIX I 4 Handle
OBJECT_DELETE_FLAG 0 ' ' X Deletion Indicator 'X' = Do Not Delete!
RELATION_OPTIONS OBL_T_RELT h 23 X OBL: Select Options for Relationship Types
ROLE_OPTIONS OBL_T_ROLT h 23 X OBL: Select Options for Role Type
ROOT_LOGSYS LOGSYS C 10 X Logical System
ROOT_OBJECT SIBFLPORB u 104 LPOR of the Calling Business Object

Exception Text
CLASS_NOT_INITIALIZED Class Not Initialized
WRONG_ACCESS_TO_ARCHIVE Error in Accessing Archive

Functionality
The function module BC_DEMO_ARCHIVE_OBJECT is used to make the data ofthe archiving class BC_DEMO known to a write program of data archivingfor each data object. The function module simply notes the key of theclass data here.
Calling of the function module must take place after the functionmodule ARCHIVE_NEW_OBJECT is called and before function moduleARCHIVE_SAVE_OBJECT is called. The function module ARCHIVE_SAVE_OBJECTautomatically gets the class data for a data object using the makrkedkey and then writes it to an archive.
Using the deletion indicator, the system determines whether the classdata is to be deleted by the deletion program.

Example
The function module BC_DEMO_ARCHIVE_OBJECT is used in the write programSFLIGHTA of the archiving object BC_SFLIGHT.

Notes
For more information on this function module see the "Guidelines forDevelopment of Archiving Classes". The guidelines are available inSAPNet using the alias ADK.