SAP Reports / Programs | Sales and Distribution | Master Data | Conditions(SD-MD-CM) SAP SD

SD_AGREEM_ARCH_DELETE SAP ABAP Report - Report SD_AGREEM_ARCH_DELETE







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


ABAP code to call this SAP report using the submit statement

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.






SUBMIT SD_AGREEM_ARCH_DELETE. "Basic submit
SUBMIT SD_AGREEM_ARCH_DELETE AND RETURN. "Return to original report after report execution complete
SUBMIT SD_AGREEM_ARCH_DELETE VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


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


INCLUDES used within this REPORT SD_AGREEM_ARCH_DELETE

INCLUDE SD_AGREEM_COMMON_DATA.
INCLUDE ARCH_DELETE_PRG_STANDARD2.
INCLUDE SD_AGREEM_ARCH_FORMS.


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

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.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name SD_AGREEM_ARCH_DELETE or its description.