SAP Function STATUS_ARCHIVE_OBJECT - Archive Status Objects

Parameter Reference Type Length Default Optional Text
ARCHIVE_HANDLE SYST-TABIX I 4 Archive in Which Status Object is Written
I_MANDT SYST-MANDT C 3 SY-MANDT X Client
I_OBJNR JSTO-OBJNR C 22 SPACE X Object number
OBJECT_DELETE_FLAG C C 0 'X' X Deletion Indicator

Parameter Reference Length Optional Text
T_OBJNR IONRB 22 X Object Number Table

Exception Text
WRONG_ACCESS_TO_ARCHIVE Archive not Open for Writing

Functionality
Flag status objects for archiving.
Status objects are saved in the archive using the function moduleARCHIVE_SAVE_OBJECT.
Note the following in respect of parameters I_OBJNR and T_OBJNR:

  • No check is made as to whether status objects actually exist for the
  • specified object numbers. A message is not issued, even if no objectnumbers are transferred. In such cases no status objects are archivedfor the respective numbers (or none at all).
    • If there are entries in both I_OBJNR and T_OBJNR, then all the object
    • numbers are viewed - that is all those entered in both I_OBJNR andT_OBJNR.

      Description
      ID for the archive that is to be written to.
      A value is transferred here that updates from function moduleARCHIVE_OPEN_FOR_WRITE in parameterARCHIVE_HANDLE.

      Description
      For cross-client archiving.

      Value range
      Clients in the system.
      No error message or exception is generated if the client transferreddoes not exist. In this case it will just not be archived.

      Default
      SY-MANDT

      Description
      Object number for which the status object is to be archived.
      For checks and the connection with
      T_OBJNR, see thedocumentation to the function module.

      Default
      SPACE

      Description
      Determines whether the status object(s) is(are) to be deleted when thedeletion program is run.
      ('X' -> Status object is deleted)

      Value range
      SPACE or 'X'

      Default
      'X'

      Description
      Here several object number can be transferred for collectiveprocessing.
      For checks and the connection with
      I_OBJNR, see thedocumentation to the function module.