SD_AGREEM_ARCH_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 SD_AGREEM_ARCH_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: P_DELPRD = D .
Selection Text: P_DELTST = D .
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
Title: Report SD_AGREEM_ARCH_DELETE
Text Symbol: P01 = Agreement Deleted
Text Symbol: P02 = &1% Agreements Deleted
INCLUDE SD_AGREEM_COMMON_DATA.
INCLUDE ARCH_DELETE_PRG_STANDARD2.
INCLUDE SD_AGREEM_ARCH_FORMS.
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_PROTOCOL_INIT_APPL CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT_APPL' EXPORTING i_detailprotocol = p_prot.
ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = arch_object IMPORTING commit_count_for_delete_prg = commcnt.
ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = arch_object test_mode = p_deltst IMPORTING archive_handle = arch_handle EXCEPTIONS file_io_error = 01 object_not_found = 02 open_error = 03 no_files_available = 04 OTHERS = 05.
ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = arch_handle EXCEPTIONS end_of_file = 01 open_error = 02.
ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING archive_handle = arch_handle IMPORTING record_ref = buffer_ref record_flags = dflag record_structure = rstruct EXCEPTIONS end_of_object = 01.
ARCHIVE_DELETE_OBJECT_DATA CALL FUNCTION 'ARCHIVE_DELETE_OBJECT_DATA' EXPORTING archive_handle = arch_handle EXCEPTIONS internal_error = 01 wrong_access_to_archive = 02.
ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = arch_handle.
ARCHIVE_PROTOCOL_WRITE_APPL CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE_APPL'.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = arch_handle.
MM_ARR_DELETE_NAST_ARCHIVE CALL FUNCTION 'MM_ARR_DELETE_NAST_ARCHIVE' TABLES t_kona = kona_tab.
RV_TABLE_NAME_SET CALL FUNCTION 'RV_TABLE_NAME_SET' EXPORTING rt_kotabnr =
-kotabnr rt_kvewe = -kvewe IMPORTING rt_kotab = l_kotab.
PROGRESS_INDICATOR_APPL CALL FUNCTION 'PROGRESS_INDICATOR_APPL' EXPORTING i_text = text-p02 i_processed = sy-index i_total = g_lines i_output_immediately = 'X' IMPORTING e_progress_sent = g_progress_sent.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = arch_handle TABLES TABLE = arch_stat.
ARCHIVE_PROTOCOL_COLLECT_APPL CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING i_object = kona_tab-knuma i_msgtype = '01' i_text = text-p01.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.