SAP Reports / Programs

RM08RARC SAP ABAP Report - Archiving of Documents for Invoice Verification







RM08RARC is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Create archive file Invoice documents are archived in two steps: Program RM08RARC creates the archive file...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 RM08RARC 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 RM08RARC. "Basic submit
SUBMIT RM08RARC AND RETURN. "Return to original report after report execution complete
SUBMIT RM08RARC 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: TESTLAUF = Test Run
Selection Text: S_XBLNR = Reference
Selection Text: S_LIFNR = Creditor
Selection Text: S_GJAHR = Fiscal Year
Selection Text: S_BUKRS = Company Code
Selection Text: S_BUDAT = Posting Date
Selection Text: S_BLDAT = Document Date
Selection Text: S_BELNR = Invoice Document
Selection Text: P_TEXT = Comment
Selection Text: OBJ_LIST = Log of Archived Tables
Selection Text: DB_UPDTE = Delete Archived Data
Title: Archiving of Documents for Invoice Verification
Text Symbol: T01 = Archiving of Documents for Inv. Verifictn
Text Symbol: 110 = Minimum document life not reached
Text Symbol: 101 = Document Year CCode Reason
Text Symbol: 100 = Following documents were not reorganized
Text Symbol: 009 = Processing Options
Text Symbol: 008 = Doc. Selection
Text Symbol: 007 = No documents would be archived
Text Symbol: 006 = No documents were archived
Text Symbol: 005 = Following documents would be archived:
Text Symbol: 004 = Following documents were archived:
Text Symbol: 003 = Archive file;; created on ;;
Text Symbol: 001 = Test Run


INCLUDES used within this REPORT RM08RARC

INCLUDE: MRM_CONST_BASIS,
MRM_TYPES_BASIS.


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:

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING mode = 'CURRENT' IMPORTING out_archive_parameters = ls_arc_parameters out_parameters = ls_print_parameters EXCEPTIONS OTHERS = 0.

ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING call_delete_job_in_test_mode = xdel_test create_archive_file = archive_file object = c_arch_object_re comments = p_text IMPORTING archive_handle = handle.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = a_record record_flags = ' ' record_structure = a_structure.

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

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = handle.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = handle.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = handle.

ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = handle IMPORTING archive_creation_date = date archive_name = name.

CHANGEDOCU_ARCHIVE_OBJECT CALL FUNCTION 'CHANGEDOCU_ARCHIVE_OBJECT' EXPORTING archive_handle = handle objectclass = c_cd_objectclass_re objectid = objid.

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

SELECT_TEXT CALL FUNCTION 'SELECT_TEXT' EXPORTING id = stxh-tdid language = stxh-tdspras name = textname object = 'RBKP' IMPORTING entries = txt_entries TABLES selections = txt_tab.

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

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 = it_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.

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.



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