SAP Reports / Programs

RM08RW47 SAP ABAP Report - Archiving of Documents for Invoice Verification







RM08RW47 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 RM08RW47 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 RM08RW47. "Basic submit
SUBMIT RM08RW47 AND RETURN. "Return to original report after report execution complete
SUBMIT RM08RW47 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: S_PROJ = D .
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_XBLNR = D .
Selection Text: ER_LIFNR = D .
Selection Text: ER_GJAHR = D .
Selection Text: ER_BUKRS = D .
Selection Text: ER_BUDAT = D .
Selection Text: ER_BLDAT = D .
Selection Text: ER_BELNR = D .
Selection Text: SET_EPRJ = Exclude Project
Title: Archiving of Documents for Invoice Verification
Text Symbol: N02 = Retention Duration Reached
Text Symbol: N01 = Snapshot archived
Text Symbol: 110 = PS: Project
Text Symbol: 041 = Incoming invoice archived
Text Symbol: 040 = Incoming invoice is archivable
Text Symbol: 032 = Minimum residence time is not over yet
Text Symbol: 031 = No entry in application-specific Customizing
Text Symbol: 027 = Archiving in BAdI rejected
Text Symbol: 024 = &1% (&2 of &3) incoming invoices processed
Text Symbol: 021 = Read Incoming Invoices
Text Symbol: 002 = Restrictions
Text Symbol: 001 = Incoming Invoice


INCLUDES used within this REPORT RM08RW47

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_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_REBEL' 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 = 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 = progress_sent.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-024 i_processed = processed i_total = lines IMPORTING e_progress_sent = progress_sent.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = handle object_id = object_id.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = handle EXCEPTIONS termination_requested = 1 data_object_not_saved = 6.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = posid 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' "1868246 EXPORTING "1868246 i_object = posid "1868246 i_msgtype = 1 "1868246 i_text = lv_text. "1868246

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = posid i_msgtype = 2 "1868246 i_text = text-031.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = posid i_msgtype = 2 "1868246 i_text = text-032.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' "1868246 EXPORTING "1868246 i_object = posid "1868246 i_msgtype = 2 "1868246 i_text = lv_text. "1868246

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = s_rbkp record_structure = 'RBKP'.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = handle record_structure = 'RSEG' TABLES table = tab_rseg.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = handle record_structure = 'RBTX' TABLES table = tab_rbtx.

ARCHIVE_PUT_TABLE





CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = handle record_structure = 'RBCO' TABLES table = tab_rbco.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = handle record_structure = 'RBMA' TABLES table = tab_rbma.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = handle record_structure = 'RBVS' TABLES table = tab_rbvs.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = handle record_structure = 'RBWS' TABLES table = tab_rbws.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = handle record_structure = 'KONV' TABLES table = tab_konv.

PRC_SUPPL_ARCHIVE_OBJECT CALL FUNCTION 'PRC_SUPPL_ARCHIVE_OBJECT' EXPORTING iv_archive_handle = handle is_key = ls_key iv_object_delete_flag = abap_true EXCEPTIONS wrong_access_to_archive = 1 OTHERS = 2.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = handle record_structure = 'RBKP_BLOCKED' TABLES table = tab_rbkp_blocked.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = handle record_structure = 'IVEXT' TABLES table = tab_ivext.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = handle record_structure = 'RBDPC' TABLES table = tab_rbdpc.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = handle record_structure = 'RSEG_TM' TABLES table = tab_rseg_tm.

CHANGEDOCU_ARCHIVE_OBJECT CALL FUNCTION 'CHANGEDOCU_ARCHIVE_OBJECT' EXPORTING archive_handle = handle objectclass = 'RECHNUNG' objectid = objectid.

CHANGEDOCU_ARCHIVE_OBJECT CALL FUNCTION 'CHANGEDOCU_ARCHIVE_OBJECT' EXPORTING archive_handle = handle objectclass = 'INCOMINGINVOICE' objectid = objectid.

CHANGEDOCU_ARCHIVE_OBJECT CALL FUNCTION 'CHANGEDOCU_ARCHIVE_OBJECT' "NCF IV EXPORTING archive_handle = handle objectclass = 'INCOMINGINV_EXT' objectid = objectid.

SELECT_TEXT CALL FUNCTION 'SELECT_TEXT' EXPORTING id = tdid language = tdspras name = tdname object = 'RBKP' IMPORTING entries = entries TABLES selections = tab_text.

TEXT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_ARCHIVE_OBJECT' EXPORTING archive_handle = handle client = sy-mandt id = tab_text-tdid language = tab_text-tdspras name = tab_text-tdname object = tab_text-tdobject object_delete_flag = 'X'.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-024 i_processed = processed i_total = lines i_output_immediately = 'X'.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = handle 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.

CPE_ERP_FORMULA_ALL_READ_DB_AC CALL FUNCTION 'CPE_ERP_FORMULA_ALL_READ_DB_AC' EXPORTING iv_application = cl_mmpur_constants=>kappl_m it_knumv_struct = lt_cpet_knumv IMPORTING et_knumvtoguid = tab_knumvtoguid et_knumhtoguid = tab_knumhtoguid et_defformdoc = tab_defformdoc et_defforminput = tab_defforminput et_defformconvin = tab_defformconvin et_defformroundin = tab_defformroundin et_deftermgrp = tab_deftermgrp et_deftermconvin = tab_deftermconvin et_defterminput = tab_defterminput et_deftermroundin = tab_deftermroundin et_defperioddtin = tab_defperioddtin et_formdoc = tab_formdoc et_forminput = tab_forminput et_formconvout = tab_formconvout et_formconvin = tab_formconvin et_formroundin = tab_formroundin et_termgrpout = tab_termgrpout et_termout = tab_termout et_termconvout = tab_termconvout et_termconvin = tab_termconvin et_terminput = tab_terminput et_termroundin = tab_termroundin et_perioddtin = tab_perioddtin et_perioddtout = tab_perioddtout.




ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = handle record_structure = im_tabname TABLES table = .



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