Generating Archiving Objects at Runtime

Use

If there are tables in your system that are generated at runtime and you want to archive these tables, you need to generate the archiving objects for these tables. The Archive Development Kit (ADK) includes a function module you can use to generate the required archiving object definitions, which are then automatically entered in transaction AOBJ.

These generated archiving objects can also be deleted. ADK provides a function module you can use to delete a generated archiving object.

Archiving programs cannot be generated using ADK.

Procedure

To generate an archiving object, write a program to generate the archiving object

  1. To generate the definition of the archiving object, call ARCHIVE_CREATE_OBJECT.
  2. Call the function modules ARCHIVE_DEFINE_OBJECT_STRUCT and ARCHIVE_SET_DESCRIPTION.
  3. If the Application Area of the object is not BC, call function module HOSH_ OBJECT_ABA with mode = ‘I’ .

To delete a generated archiving object, write a program to delete the generated archiving object

  1. To delete the definition of the archiving object, call ARCHIVE_DELETE_OBJECT.
  2. If the Application Area of the object is not BC, you must also call function module HOSH_ OBJECT_ABA with mode = ‘D’ .

You cannot use function modules ARCHIVE_DEFINE_PROGRAM_EVENTS, ARCHIVE_GENERATE_PROGRAM, ARCHIVE_BEGIN_OF_GENERATING, or ARCHIVE_END_OF_GENERATING.

Example

RSARCH_CREATE_TESTOBJECT and RSARCH_DELETE_TESTOBJECT sample programs

See Also

Function module documentation