SAP Reports / Programs

MEV_AD_ARCH1 SAP ABAP Report - Accrual Document: Write Archive







MEV_AD_ARCH1 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 MEV_AD_ARCH1 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 MEV_AD_ARCH1. "Basic submit
SUBMIT MEV_AD_ARCH1 AND RETURN. "Return to original report after report execution complete
SUBMIT MEV_AD_ARCH1 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: BUDAT = D .
Selection Text: BUKRS = D .
Selection Text: DOCNR = D .
Selection Text: GJAHR = D .
Selection Text: POPER = D .
Selection Text: P_AR_ILM = D .
Selection Text: P_COMENT = D .
Selection Text: P_DELTST = D .
Selection Text: P_DEST = D .
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
Selection Text: P_SNAP = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_WRITST = D .
Title: Accrual Document: Write Archive
Text Symbol: 001 = Accrual Document
Text Symbol: 024 = &1 % (&2 of &3) of the application logs processed
Text Symbol: N01 = Snapshot Archived
Text Symbol: N02 = Retention Time Reached
Text Symbol: N03 = Archivable
Text Symbol: N04 = Not Archivable


INCLUDES used within this REPORT MEV_AD_ARCH1

INCLUDE ARCH_WRITE_PRG_STANDARD2.


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:

AC_DOCUMENT_RECORD call function 'AC_DOCUMENT_RECORD' exporting i_awtyp = if_mev_constants=>gc_awtyp-mm i_awref = l_awref i_aworg = l_aworg x_dialog = lc_x_dialog exceptions no_reference = 1 no_document = 2 others = 3.

ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = iv_handle record = is_record record_flags = ' ' record_structure = lv_structure exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.

CHANGEDOCU_ARCHIVE_OBJECT call function 'CHANGEDOCU_ARCHIVE_OBJECT' exporting archive_handle = iv_handle objectclass = lc_objectclass objectid = lv_objectid object_delete_flag = abap_true exceptions wrong_access_to_archive = 1 others = 2.

CPE_ERP_ARCHIVE_OBJECT call function 'CPE_ERP_ARCHIVE_OBJECT' exporting iv_archive_handle = iv_handle is_key = ls_key iv_object_delete_flag = iv_object_delete_flag exceptions wrong_access_to_archive = 1 others = 2.

PRC_SUPPL_ARCHIVE_OBJECT call function 'PRC_SUPPL_ARCHIVE_OBJECT' exporting iv_archive_handle = iv_handle is_key = ls_key iv_object_delete_flag = iv_object_delete_flag exceptions wrong_access_to_archive = 1 others = 2.

ARCHIVE_PROTOCOL_INIT call function 'ARCHIVE_PROTOCOL_INIT' exporting i_detailprotocol = p_prot.

ARCHIVE_OPEN_FOR_WRITE call function 'ARCHIVE_OPEN_FOR_WRITE' exporting call_delete_job_in_test_mode = p_deltst create_archive_file = p_wriprd object = 'LO_CMM_AD' comments = p_coment do_not_delete_data = l_not_delete destroy = l_destroy importing archive_handle = lv_handle exceptions internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4 others = 5.

ARCHIVE_REGISTER_CLASS call function 'ARCHIVE_REGISTER_CLASS' exporting archive_class = 'TEXT' archive_handle = lv_handle exceptions class_not_found = 1 internal_error = 2 wrong_access_to_archive = 3 file_io_error = 4 others = 5.

ARCHIVE_REGISTER_CLASS call function 'ARCHIVE_REGISTER_CLASS' exporting archive_class = 'CPE_ERP' archive_handle = lv_handle exceptions class_not_found = 1 internal_error = 2 wrong_access_to_archive = 3 file_io_error = 4 others = 5.

ARCHIVE_REGISTER_CLASS call function 'ARCHIVE_REGISTER_CLASS' exporting archive_class = 'PRC_SUPPL' archive_handle = lv_handle exceptions class_not_found = 1 internal_error = 2 wrong_access_to_archive = 3 file_io_error = 4 others = 5.

ARCHIVE_REGISTER_CLASS call function 'ARCHIVE_REGISTER_CLASS' exporting archive_class = 'CHANGEDOCU' archive_handle = lv_handle exceptions class_not_found = 1 internal_error = 2 wrong_access_to_archive = 3 file_io_error = 4 others = 5.

ARCHIVE_NEW_OBJECT call function 'ARCHIVE_NEW_OBJECT' exporting archive_handle = lv_handle exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = ls_ad i_msgtype = 1 i_text = lf_text.

ARCHIVE_SAVE_OBJECT call function 'ARCHIVE_SAVE_OBJECT' exporting archive_handle = lv_handle exceptions file_io_error = 1 internal_error = 2 open_error = 3 termination_requested = 4 wrong_access_to_archive = 5 data_object_not_saved = 6 others = 7.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = ls_ad i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = ls_ad i_msgtype = 1 i_text = lf_text.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = ls_ad i_msgtype = 1 i_text = lf_text.

PROGRESS_INDICATOR call function 'PROGRESS_INDICATOR' exporting i_text = text-024 i_processed = lv_processed i_total = gv_total importing e_progress_sent = lv_progress_sent.

DB_COMMIT





call function 'DB_COMMIT'.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = ls_ad i_msgtype = 2 i_text = lf_text.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = ls_ad i_msgtype = 2 i_text = lf_text.

PROGRESS_INDICATOR call function 'PROGRESS_INDICATOR' exporting i_text = text-024 i_processed = lv_processed i_total = gv_total i_output_immediately = 'X'.

ARCHIVE_WRITE_STATISTICS call function 'ARCHIVE_WRITE_STATISTICS' exporting archive_handle = lv_handle statistics_only_per_run = abap_true exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.

ARCHIVE_PROTOCOL_WRITE call function 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting archive_handle = lv_handle exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.

TEXT_ARCHIVE_OBJECT call function 'TEXT_ARCHIVE_OBJECT' exporting archive_handle = iv_handle id = '0001' language = '*' name = lv_text_name object = 'CMM_PEV_AD' object_delete_flag = 'X' exceptions wrong_access_to_archive = 1 others = 2.



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 MEV_AD_ARCH1 or its description.