RM06IW47 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Report RM06IW47 writes all purchasing info records 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 RM06IW47 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_WRITST = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_PROT_O = D .
Selection Text: P_PROT = D .
Selection Text: P_DELTST = D .
Selection Text: P_COMENT = D .
Selection Text: ER_WERKS = D .
Selection Text: ER_MATNR = D .
Selection Text: ER_MATKL = D .
Selection Text: ER_LIFNR = D .
Selection Text: ER_INFNR = D .
Selection Text: ER_ESOKZ = D .
Selection Text: ER_EKORG = Purchasing Organization
Title: Archiving of Purchasing Info Records: Write Program
Text Symbol: 043 = Purchasing info purch. org. data was archived
Text Symbol: 042 = Purchasing info purch. org. data archivable
Text Symbol: 041 = Purchasing info purch. org. data was archived
Text Symbol: 040 = Purchasing info general data archivable
Text Symbol: 036 = Purchasing info purch. org. data cannot be archd
Text Symbol: 035 = Purchasing info general data cannot be archived
Text Symbol: 034 = User has no authorization for purchasing group &
Text Symbol: 033 = User has no authorization for purchasing organization &
Text Symbol: 032 = User has no authorization for plant &
Text Symbol: 027 = Archiving in BAdI refused
Text Symbol: 024 = &1 of &2 PI documents processed
Text Symbol: 021 = Read Purch. Info Records
Text Symbol: 002 = Restrictions
Text Symbol: 001 = Pur. Info Record
INCLUDE ARCH_WRITE_PRG_STANDARD2.
No SAP DATABASE tables are accessed within this REPORT code!
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_EINA' comments = p_coment output_sel_screen_when_dialog = space output_sel_screen_when_batch = space IMPORTING archive_handle = g_handle.
ARCHIVE_PROTOCOL_INIT_APPL CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT_APPL' EXPORTING i_detailprotocol = p_prot.
PROGRESS_INDICATOR_APPL CALL FUNCTION 'PROGRESS_INDICATOR_APPL' EXPORTING i_text = text-021 i_output_immediately = 'X' IMPORTING e_progress_sent = g_progress_sent.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
PROGRESS_INDICATOR_APPL CALL FUNCTION 'PROGRESS_INDICATOR_APPL' 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_APPL CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING i_object = gw_eina-infnr i_msgtype = '02' i_text = g_detail_text.
ARCHIVE_PROTOCOL_COLLECT_APPL CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING i_object = gw_eina-infnr i_msgtype = '02' i_text = text-027.
ARCHIVE_PROTOCOL_COLLECT_APPL CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING i_object = gw_eina-infnr i_msgtype = '01' i_text = text-040.
ARCHIVE_PROTOCOL_COLLECT_APPL CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING i_object = gw_eina-infnr i_msgtype = '01' i_text = text-041.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = gw_eina-infnr i_msgtype = '02' i_text = text-035.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = gv_eine i_msgtype = '02' i_text = l_text.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = gv_eine i_msgtype = '02' i_text = l_text.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = gv_eine i_msgtype = '02' i_text = l_text.
ARCHIVE_PROTOCOL_COLLECT_APPL CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING i_object = gv_eine i_msgtype = '01' i_text = text-042.
ARCHIVE_PROTOCOL_COLLECT_APPL CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING i_object = gv_eine i_msgtype = '01' i_text = text-043.
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.
CALL FUNCTION 'PROGRESS_INDICATOR_APPL' 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_APPL CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE_APPL'.
ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = g_handle record = p_eina record_structure = 'EINA'.
CHANGEDOCU_ARCHIVE_OBJECT CALL FUNCTION 'CHANGEDOCU_ARCHIVE_OBJECT' EXPORTING archive_handle = g_handle objectclass = 'INFOSATZ' objectid = l_objectid.
SELECT_TEXT CALL FUNCTION 'SELECT_TEXT' EXPORTING id = l_tdid language = l_tdspras name = l_tdname object = 'EINA' IMPORTING entries = l_entries TABLES selections = lt_text.
TEXT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_ARCHIVE_OBJECT' EXPORTING archive_handle = g_handle client = sy-mandt id = lt_text-tdid language = lt_text-tdspras name = lt_text-tdname object = lt_text-tdobject object_delete_flag = 'X'.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle record_structure = 'EIPA' TABLES table = lt_eipa.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle record_structure = 'LFEI' TABLES table = lt_lfei.
ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = g_handle record = p_eina record_structure = 'EINA'.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle record_structure = 'EINE' TABLES table = gt_eine.
SELECT_TEXT CALL FUNCTION 'SELECT_TEXT' EXPORTING id = l_tdid language = l_tdspras name = l_tdname object = 'EINE' IMPORTING entries = l_entries TABLES selections = lt_text.
TEXT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_ARCHIVE_OBJECT' EXPORTING archive_handle = g_handle client = sy-mandt id = lt_text-tdid language = lt_text-tdspras name = lt_text-tdname object = lt_text-tdobject object_delete_flag = 'X'.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle record_structure = 'A017' TABLES table = lt_a017.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle record_structure = 'A018' TABLES table = lt_a018.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle record_structure = 'A025' TABLES table = lt_a025.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle record_structure = 'A028' TABLES table = lt_a028.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle record_structure = 'A066' TABLES table = lt_a066.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle record_structure = 'A067' TABLES table = lt_a067.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle record_structure = 'A160' TABLES table = lt_a160.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle record_structure = 'A161' TABLES table = lt_a161.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle record_structure = 'KONH' TABLES table = lt_konh.
CHANGEDOCU_ARCHIVE_OBJECT CALL FUNCTION 'CHANGEDOCU_ARCHIVE_OBJECT' EXPORTING archive_handle = g_handle objectclass = 'COND_A' objectid = l_objectid.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle record_structure = 'KONP' TABLES table = lt_konp.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle record_structure = 'KONM' TABLES table = lt_konm.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle record_structure = 'KONW' TABLES table = lt_konw.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = gv_eine i_msgtype = '02' i_text = text-036.
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 RM06IW47 or its description.
RM06IW47 - Archiving of Purchasing Info Records: Write Program RM06IW47 - Archiving of Purchasing Info Records: Write Program RM06IW30 - Write Program: Archiving of Info Records RM06IW30 - Write Program: Archiving of Info Records RM06IW00 - Info Records per Material Group RM06IW00 - Info Records per Material Group