Fonction SAP ARCHIVE_ADMIN_DEFINE_FILTER - Define a Filter for ARCHIVE_ADMIN_POPUP_DOCUMENTS

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
RADIO_BUTTONS 0 SPACE X Select One Archiving Session Only
STATUS_DELETED_ONLY 0 SPACE X Specify Status that Archives Are to Have
STATUS_SAVED_ONLY 0 SPACE X Only Archives with Save Status

Paramètre Reférence Long. Facultatif Description
CLIENT_RANGE_TABLE RNG_CLIENT 9 X Specify Client for Archives
DATE_RANGE_TABLE RNG_DATE 19 X Archive Date Specification
RELEASE_RANGE_TABLE RNG_RELEAS 11 X Specify Releases for Archives

Functionality
You can set a filter to control which archive files the function moduleARCHIVE_ADMIN_POPUP_DOCUMENTS offer. You can also influence theactions of the module ARCHIVE_ADMIN_POPUP_DOCUMENT.
The function modules ARCHIVE_OPEN_FOR_READ,ARCHIVE_OPEN_FOR_MOVE, ARCHIVE_OPEN_FOR_CONVERSION, andARCHIVE_OPEN_FOR_DELETE call the function moduleARCHIVE_ADMIN_POPUP_DOCUMENT in online mode if no archiving runsor archiving files have been trasferred as parameters.
If you call the function module ARCHIVE_ADMIN_DEFINE_FILTERbefore the function modules named above, it can be applied to thefile(s) selected.

Example
DATA: HANDLE LIKE SY-TABIX.
DATA: BEGIN OF CLIENT_RTAB OCCURS 5.
INCLUDE STRUCTURE RNG_CLIENT.
DATA: END OF CLIENT_RTAB.
DATA: BEGIN OF DATE_RTAB OCCURS 5.
INCLUDE STRUCTURE RNG_DATE.
DATA: END OF DATE_RTAB.
DATA: BEGIN OF RELEASE_RTAB OCCURS 5.
INCLUDE STRUCTURE RNG_RELEAS.
DATA: END OF RELEASE_RTAB.
...
RELEASE_RTAB-SIGN = 'I'.
RELEASE_RTAB-OPTION = 'EQ'.
RELEASE_RTAB-LOW = '21A'.
RELEASE_RTAB-HIGH = '22Z'.
APPEND RELEASE_RTAB.
...
CALL FUNCTION 'ARCHIVE_ADMIN_DEFINE_FILTER'
EXPORTING
RADIO_BUTTONS = ' '
STATUS_DELETED_ONLY = 'X'
STATUS_SAVED_ONLY = ' '
TABLES
CLIENT_RANGE_TABLE = CLIENT_RTAB
RELEASE_RANGE_TABLE = RELEASE_RTAB
DATE_RANGE_TABLE = DATE_RTAB.
CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ'
EXPORTING
OBJECT = 'FI_DOCUMNT'
IMPORTING
ARCHIVE_HANDLE = HANDLE.

Description
This parameter ensures that only one archiving run can be selected withradiobuttons.
No single archive files are offered when using radiobuttons.
If checkboxes are to be used then the parameter RADIO_BUTTONS ofthe function module ARCHIVE_ADMIN_POPUP_DOCUMENTS can overridethis setting.

Value range
' ' = use checkboxes
'X' = use radionbuttons

Default
' ' = use checkboxes

Description
Use this parameter to specify which status the archive files must haveto be displayed in the selection dialog.

Value range
' ' = all
'X' = only archives whose data was deleted from the database

Default
' ' = all

Description
This parameter controls whether only those archiving runs with thestatus "Saved" should be offered. This parameter overrides theparameter STATUS_DELETED_ONLY.

Value range
' ' = normal selection
'X' = only display archives with the status "Saved"

Default
' ' = normal selection

Description
This table has the structure of a range table and defines the clientsto be considered when selecting files with the function moduleARCHIVE_ADMIN_POPUP_DOCUMENTS.

Description
This table has the structure of a range table and defines the data thatproduced the archives to be considered when selecting files with thefunction module ARCHIVE_ADMIN_POPUP_DOCUMENTS.

Description
This table has the structure of a range table and defines the Releasenames to be considered when selecting files with the function moduleARCHIVE_ADMIN_POPUP_DOCUMENTS.