SCPRARCHIVE_DELETE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.
If you would like to execute this report or see the full code listing simply enter SCPRARCHIVE_DELETE into the relevant SAP transactions such as SE38 or SE80
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Selection Text: TESTMODE = Test Mode
Title: Report SCPRARCHIVE_DELETE
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
SCPR_AUTHORITY_CHECK CALL FUNCTION 'SCPR_AUTHORITY_CHECK' EXPORTING task = 'DELETE' * ID = EXCEPTIONS wrong_parameters = 1 no_authority = 2 OTHERS = 3 .
ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING * ARCHIVE_NAME = ' ' object = 'BC_BCSET' test_mode = testmode * AINDFLAG = 'X' * NO_STATISTICS = ' ' * OUTPUT_SEL_SCREEN_WHEN_DIALOG = ' ' * OUTPUT_SEL_SCREEN_WHEN_BATCH = ' ' IMPORTING archive_handle = handle * TABLES * SELECTED_FILES = EXCEPTIONS file_already_open = 1 file_io_error = 2 internal_error = 3 no_files_available = 4 object_not_found = 5 open_error = 6 not_authorized = 7 OTHERS = 8 .
ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = 'BC_BCSET' IMPORTING commit_count_for_delete_prg = commit_count maintain_index = maintain_index EXCEPTIONS object_not_found = 1 OTHERS = 2.
ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = handle IMPORTING * ARCHIVE_CREATION_DATE = * ARCHIVE_CREATION_RELEASE = * ARCHIVE_CREATION_SYSTEM = archive_document = document archive_name = archive_key * OBJECT = * ARCHIVE_CODE_PAGE = * ARCHIVE_NUMBER_FORMAT = * ADK_VERSION = * TABLES * USED_CLASSES = EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3 .
ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = handle * IMPORTING * OBJECT_ID = * OBJECT_OFFSET = * ARCHIVE_NAME = * COMPR_OBJECT_LENGTH = * SESSION = EXCEPTIONS end_of_file = 1 file_io_error = 2 internal_error = 3 open_error = 4 wrong_access_to_archive = 5 OTHERS = 6 .
ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = handle record_structure = 'SCPRATTR' * ALL_RECORDS_OF_OBJECT = ' ' * AUTOMATIC_CONVERSION = 'X' * IMPORTING * RECORD_CURSOR = * RECORD_FLAGS = * RECORD_LENGTH = TABLES table = lt_attr * RECORD_FLAGS_TABLE = EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4 .
SCPR_SV_ENQUEUE_BCSET CALL FUNCTION 'SCPR_SV_ENQUEUE_BCSET' EXPORTING bcset_id =
-id EXCEPTIONS is_already_locked = 1 system_failure = 2 OTHERS = 3.
SCPR_PRSET_DB_DELETE CALL FUNCTION 'SCPR_PRSET_DB_DELETE' EXPORTING profid =
-id version = version_new category = -category proftype = -type del_local_tadir = space "do not delete local TADIR! EXCEPTIONS still_text_existing = 1 still_data_existing = 2 still_subp_existing = 3 db_delete_error = 4 OTHERS = 5.
SCPR_SV_ENQUEUE_BCSET CALL FUNCTION 'SCPR_SV_ENQUEUE_BCSET' EXPORTING bcset_id = lwa_pprl-id EXCEPTIONS is_already_locked = 1 system_failure = 2 OTHERS = 3.
SCPR_SV_DEQUEUE_BCSET CALL FUNCTION 'SCPR_SV_DEQUEUE_BCSET' EXPORTING bcset_id = lwa_pprl-id.
SCPR_SV_DEQUEUE_BCSET CALL FUNCTION 'SCPR_SV_DEQUEUE_BCSET' EXPORTING bcset_id =
-id.
ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = handle * STATISTICS_ONLY_PER_RUN = ' ' * STATISTICS_ONLY_PER_FILE = ' ' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3 .
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = handle EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.