Fonction SAP ARCHIVE_ADMIN_CHECK_FILE - Check archive file

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ARCHIVE_FILE ADMI_FILES-FILENAME C 255 Archive File Name
ARCHIVE_KEY ADMI_FILES-ARCHIV_KEY C 20 SPACE X Archive file key

Exception Description
FILE_IO_ERROR Archive file access error
NO_ARCHIVE_FILE File is not an archive file
OPEN_ERROR File could not be opened
WRONG_ARCHIVE_KEY File does not belong to archive key
WRONG_CLIENT File does not match the filter for client
WRONG_DATE File does not match the filter for date
WRONG_RELEASE File does not match the filter for Release

Functionality
The function module ARCHIVE_ADMIN_CHECK_FILE checks whether afile is a valid archive file for a particular key.

Example
CALL FUNCTION 'ARCHIVE_ADMIN_CHECK_FILE'
EXPORTING
ARCHIVE_FILE = ADMI_FILES-FILENAME
ARCHIVE_FILE = ARKEY
EXCEPTIONS
OTHERS = 7.
IF SY-SUBRC NE 0.
MESSAGE E047 WITH ADMI_FILES-FILENAME.
ENDIF.

Notes
This function module is used internally by archiving.
Via the function module ARCHIVE_ADMIN_DEFINE_FILTER you candefine selection criteria for the check.

Description
Pass the name of the file to be checked with the parameterARCHIVE_FILE.

Description
When you give a key for an archive file with the parameterARCHIVE_KEY the parameter ARCHIVE_FILE checks whether thefile belongs to the key.

Value range
SPACE = no check
Archive file key = check is executed

Default
SPACE = no check