SAP Reports / Programs | Cross-Application Components | General Application Functions | Engineering Change Management(CA-GTF-ECM) SAP CA

ILO_CHANGEM_WRI SAP ABAP Report - Archiving of Change Master Records: Write Program







ILO_CHANGEM_WRI 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 ILO_CHANGEM_WRI 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 ILO_CHANGEM_WRI. "Basic submit
SUBMIT ILO_CHANGEM_WRI AND RETURN. "Return to original report after report execution complete
SUBMIT ILO_CHANGEM_WRI 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_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: Archiving of Change Master Records: Write Program
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


INCLUDES used within this REPORT ILO_CHANGEM_WRI

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:

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_CHANGEM' comments = p_coment do_not_delete_data = l_not_delete destroy = l_destroy IMPORTING archive_handle = 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 = 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 = 'CLASSIFY' archive_handle = 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 = handle EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 others = 3.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = itab_aenr record_flags = ' ' record_structure = 'AENR' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.

TEXT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_ARCHIVE_OBJECT' EXPORTING archive_handle = handle id = 'AENR' language = sy-langu name = name object = 'CHANGE' object_delete_flag = 'X' EXCEPTIONS wrong_access_to_archive = 1 others = 2.

CLASSIFY_ARCHIVE_OBJECT CALL FUNCTION 'CLASSIFY_ARCHIVE_OBJECT' EXPORTING archive_handle = handle object = object ptable = 'AENR' object_delete_flag = 'X' EXCEPTIONS wrong_access_to_archive = 1 others = 2.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = itab_aenv record_flags = ' ' record_structure = 'AENV' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = itab_aeoi record_flags = ' ' record_structure = 'AEOI' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.

TEXT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_ARCHIVE_OBJECT' EXPORTING archive_handle = handle id = 'AEOI' language = sy-langu name = name object = 'CHANGE' object_delete_flag = 'X' EXCEPTIONS wrong_access_to_archive = 1 others = 2.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = itab_aedt record_flags = ' ' record_structure = 'AEDT' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = itab_aehi record_flags = ' ' record_structure = 'AEHI' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = itab_aeef record_flags = ' ' record_structure = 'AEEF' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = l_aenr i_msgtype = 1 i_text = lf_text.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = 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 = l_aenr i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = l_aenr i_msgtype = 1 i_text = lf_text.

ARCHIVE_PROTOCOL_COLLECT





CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = l_aenr i_msgtype = 1 i_text = lf_text.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-024 i_processed = g_processed i_total = g_total IMPORTING e_progress_sent = g_progress_sent.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-024 i_processed = g_processed i_total = g_total i_output_immediately = 'X'.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = handle statistics_only_per_run = 'X' 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 = handle EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 others = 3.



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