SAP Reports / Programs

RM07IARCS SAP ABAP Report - Archiving Physical Inventory Documents: Write Program







RM07IARCS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Report RM07IARCS writes all physical inventory documents from an interval defined by the user that satisfy the archiving conditions to a storage system...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RM07IARCS 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 RM07IARCS. "Basic submit
SUBMIT RM07IARCS AND RETURN. "Return to original report after report execution complete
SUBMIT RM07IARCS 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_WRITST = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_SNAP = D .
Selection Text: P_PROT_O = D .
Selection Text: P_PROT = D .
Selection Text: P_DEST = D .
Selection Text: P_DELTST = D .
Selection Text: P_COMENT = D .
Selection Text: P_AR_ILM = D .
Selection Text: ER_WERKS = D .
Selection Text: ER_IBLNR = D .
Selection Text: ER_GJAHR = D .
Selection Text: PA_MONAT = Number of Resident Months
Title: Archiving Physical Inventory Documents: Write Program
Text Symbol: N02 = Persist duration reached
Text Symbol: N01 = Snapshot archived
Text Symbol: 040 = PI document is archivable
Text Symbol: 032 = Retention period not yet expired
Text Symbol: 031 = Inventory differences not yet posted
Text Symbol: 027 = Document not archivable due to add-on archivability check
Text Symbol: 024 = &1 of &2 PI documents processed
Text Symbol: 021 = Read PI Documents
Text Symbol: 008 = Product. Mode
Text Symbol: 007 = Test Mode
Text Symbol: 006 = No. Resident Months
Text Symbol: 005 = Plnt
Text Symbol: 004 = Fiscal Year
Text Symbol: 003 = Option
Text Symbol: 002 = Restrictions
Text Symbol: 001 = PI Documents


INCLUDES used within this REPORT RM07IARCS

No INCLUDES are used within this REPORT code!


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_OPEN_FOR_WRITE call function 'ARCHIVE_OPEN_FOR_WRITE' exporting call_delete_job_in_test_mode = p_deltst create_archive_file = p_wriprd object = 'MM_INVBEL' comments = p_coment do_not_delete_data = l_not_delete destroy = l_destroy output_sel_screen_when_dialog = space output_sel_screen_when_batch = space importing archive_handle = g_handle exceptions internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.

ARCHIVE_PROTOCOL_WRITE call function 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_PROTOCOL_INIT call function 'ARCHIVE_PROTOCOL_INIT' exporting i_detailprotocol = p_prot.

PROGRESS_INDICATOR call function 'PROGRESS_INDICATOR' exporting i_text = text-021 i_output_immediately = 'X' 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_msgv1 = g_processed i_msgv2 = g_lines i_processed = g_processed i_total = g_lines importing e_progress_sent = g_progress_sent.

DB_COMMIT call function 'DB_COMMIT'.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = i_msgtype = '02' i_text = g_detail_text.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = g_iblnr i_msgtype = '02' i_text = text-027.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = g_iblnr i_msgtype = '01' i_text = text-040.

ARCHIVE_NEW_OBJECT call function 'ARCHIVE_NEW_OBJECT' exporting archive_handle = g_handle object_id = g_object_id.

ARCHIVE_SAVE_OBJECT call function 'ARCHIVE_SAVE_OBJECT' exporting archive_handle = g_handle exceptions termination_requested = 1 data_object_not_saved = 6.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = -iblnr i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.

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

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

PROGRESS_INDICATOR call function 'PROGRESS_INDICATOR' exporting i_text = text-024 i_msgv1 = g_processed i_msgv2 = g_lines i_processed = g_processed i_total = g_lines i_output_immediately = 'X'.

ARCHIVE_WRITE_STATISTICS call function 'ARCHIVE_WRITE_STATISTICS' exporting archive_handle = g_handle exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.

ARCHIVE_CLOSE_FILE





call function 'ARCHIVE_CLOSE_FILE' exporting archive_handle = g_handle.

ARCHIVE_PROTOCOL_WRITE call function 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = l_iblnr i_msgtype = '02' i_text = text-031.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = l_iblnr i_msgtype = '02' i_text = text-032.

ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = g_handle record = p_ikpf record_structure = 'IKPF'.

CHANGEDOCU_ARCHIVE_OBJECT call function 'CHANGEDOCU_ARCHIVE_OBJECT' exporting archive_handle = g_handle objectclass = cdhdr-objectclas objectid = cdhdr-objectid.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = g_handle record_structure = 'ISEG' tables table = lt_iseg.



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