Fonction SAP ARCHIVE_DEFINE_OBJECT_STRUCT - (Obsolete! Use ARCHIVE_OBJECT_STRUCTURE_SET)

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
LOGDB LDBN-LDBNAME C 20 X Name of Logical Database
OBJECT ARCH_OBJ-OBJECT C 10 Object for Which the Program is Generated

Paramètre Reférence Long. Facultatif Description
OBJECT_STRUCTURE ARCH_STRUC 91 X Object Structure
TABLES_TO_DELETE ARCH_DELG 30 X Archiving Generator (Tables Data To Be Deleted From)

Exception Description
GENERATING_NOT_ALLOWED Program Must be Generated Manually
INITIALIZATION_MISSING Initialization is Missing
INVALID_STRUCTURE Incorrect Data in OBJECT_STRUCTURE
OBJECT_NOT_FOUND Unknown Object

Functions
This function module stores the structure of a generated archivingobject in the database. You can use the "ArchivingObject" transaction to display or change this definition.

  • Example 1

  • Sample call of the function module
    DATA: BEGIN OF STRUCTURE_TAB OCCURS 0.
    INCLUDE STRUCTURE ARCH_STRUC.
    DATA: END OF STRUCTURE_TAB.
    ...
    CALL FUNCTION 'ARCHIVE_DEFINE_OBJECT_STRUCT'
    EXPORTING
    OBJECT = 'TESTOBJECT'
    TABLES
    OBJECT_STRUCTURE = STRUCTURE_TAB
    EXCEPTIONS
    GENERATING_NOT_ALLOWED = 01
    INVALID_STRUCTURE = 02
    OBJECT_NOT_FOUND = 03.
    • Example 2

    • You can find a more comprehensive exanple in the programRSARCH_CREATE_TESTOBJECT.

      See also
      Program Generator Definition of Terms

      Description
      The name of the logical database is passed via this parameter. If theprogram is generated via a logical database, then the transferred tableOBJECT_STRUCTURE must remain empty.
      INCLUDE 'ARCHIVE_PARAM_OBJECT' OBJECT DOCID TX
      In this situation define the parameter, for which object you want todefine the structure.

      See also
      Term definition object / archivingobject