Checks of HRLSO_CRSE
To ensure that only data no longer relevant for current business processes is archived or destroyed, certain conditions must be met. Relevant checks performed by the write program RPLSO_CRSE_ARCH_WRI
of the archiving object HR: Events/Courses
(HRLSO_CRSE
) when events or courses are selected ensure that these conditions are adhered to. The method CHECK_ARCHIVABILITY
in subclass CL_HRLSO_ARCH_WRI
is called for these checks. The program performs the following checks:
The course must not be part of an active curriculum
Date until which events and courses are destroyed
The end date of the event or course from the infotype structure HRP1026
is before or on the date Destroy Until
that you entered on the selection screen of the write program.
Version management indicator or deletion indicator
The event or course needs to be archived or canceled. This means that the indicator HISTO
or the indicator DELET
must be set in the infotype structure HRP1026
for the data record that is to be destroyed.
Status of cost accounting and billing
The cost accounting or billing data for the event or course to be destroyed has been successfully transferred to the tables for cost accounting and billing:
For object instances of the type EVEID
and SOBID
, the value of the field STATUS
in table T77REFDOC
is to be 4
, 8
, or *
.
For object instances of the type OTYPE
and OBJID
, the value of the field STATUS
in table T77KF
is to be 4
, 8
, or *
.