ROIRA_ARC_PRNT_WRITE 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 ROIRA_ARC_PRNT_WRITE 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: O_FKDAT = Billing date
Selection Text: O_PBLNR = Business location ID
Selection Text: P_AR_ILM = Archiving
Selection Text: P_COMENT = Archiving Session Note
Selection Text: P_DELTST = Delete with Test Variant
Selection Text: P_DEST = Data Destruction
Selection Text: P_PROT = Detail Log
Selection Text: P_PROT_O = Log Output
Selection Text: P_SNAP = Snapshot
Selection Text: P_WRIPRD = Production Mode
Selection Text: P_WRITST = Test Mode
Title: SSR Collective Print tables Archive - Write
Text Symbol: 000 = Print document data
Text Symbol: 013 = Memory snapshot is written
Text Symbol: 014 = Retention Per. End Reached
Text Symbol: 015 = Print documents are being processed
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING I_DETAILPROTOCOL = P_PROT I_PROTOCOL_OUTPUT = P_PROT_O.
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 = 'OIR_SSRPRN' COMMENTS = P_COMENT DO_NOT_DELETE_DATA = L_NOT_DELETE DESTROY = L_DESTROY IMPORTING ARCHIVE_HANDLE = LV_HANDLE.
PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING I_TEXT = TEXT-015 "#EC * "text shall be understandable for EN-speaking coleagues I_PROCESSED = LV_OBJECTS_PROCESSED I_TOTAL = LV_TOTAL_OF_OBJECTS IMPORTING E_PROGRESS_SENT = LV_PROGRESS_SEND.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'. "otherwise messag will not appear in the job-log
ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING ARCHIVE_HANDLE = LV_HANDLE.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = LV_HANDLE.
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 = 'OIR_SSRPRN' * COMMENTS = P_COMENT * DO_NOT_DELETE_DATA = L_NOT_DELETE * DESTROY = L_DESTROY * IMPORTING * ARCHIVE_HANDLE = LV_HANDLE.
ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = lv_handle.
ARCHIVE_PUT_TABLE * CALL FUNCTION 'ARCHIVE_PUT_TABLE' * EXPORTING * ARCHIVE_HANDLE = LV_HANDLE * RECORD_STRUCTURE = 'OIRA_PRNDOC_HEAD' * TABLES * TABLE = LT_PRNDOC_HEAD.
ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING ARCHIVE_HANDLE = LV_HANDLE RECORD = LS_PRNDOC_HEAD RECORD_STRUCTURE = 'OIRA_PRNDOC_HEAD'.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = lv_handle record_structure = 'OIRA_PRNDOC_ITEM' TABLES table = lt_prndoc_item.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = lv_handle record_structure = 'OIRA_PRINTINDEX' TABLES table = lt_print_index.
ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = lv_handle EXCEPTIONS termination_requested = 1 data_object_not_saved = 6 OTHERS = 7.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING * i_object = lv_object_id "lw_doi_detail-doi_id i_msgtype = '1' i_text = text-013.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING * i_object = lv_object_id "lw_doi_detail-doi_id i_msgtype = '1' i_text = text-014.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING * i_object = lv_object_id "lw_doi_detail-doi_id 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_INIT * CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' * EXPORTING * I_DETAILPROTOCOL = P_PROT * I_PROTOCOL_OUTPUT = P_PROT_O.
PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = 'Print documents are being processed' "#EC * "text shall be understandable for EN-speaking coleagues i_processed = lv_objects_processed i_total = lv_total_of_objects i_output_immediately = 'X'. "force the progress output
* CALL FUNCTION 'PROGRESS_INDICATOR' * EXPORTING * I_TEXT = TEXT-015 "#EC * "text shall be understandable for EN-speaking coleagues * I_PROCESSED = LV_OBJECTS_PROCESSED * I_TOTAL = LV_TOTAL_OF_OBJECTS * IMPORTING * E_PROGRESS_SENT = LV_PROGRESS_SEND.
DB_COMMIT * CALL FUNCTION 'DB_COMMIT'. "otherwise messag will not appear in the job-log
ARCHIVE_WRITE_STATISTICS * CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' * EXPORTING * ARCHIVE_HANDLE = LV_HANDLE.
ARCHIVE_CLOSE_FILE * CALL FUNCTION 'ARCHIVE_CLOSE_FILE' * EXPORTING * ARCHIVE_HANDLE = LV_HANDLE.
ARCHIVE_PROTOCOL_LINE_DETAIL CALL FUNCTION 'ARCHIVE_PROTOCOL_LINE_DETAIL'.
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 ROIRA_ARC_PRNT_WRITE or its description.
ROIRA_ARC_PRNT_WRITE - SSR Collective Print tables Archive - Write ROIRA_ARC_PRNT_WRITE - SSR Collective Print tables Archive - Write ROIRA_ARC_PRNT_DELETE - SSR Collective Print tables Archive - Delete ROIRA_ARC_PRNT_DELETE - SSR Collective Print tables Archive - Delete ROIRA_ARC_GMM_WRITE - SSR Meter Readings Archive - Write ROIRA_ARC_GMM_WRITE - SSR Meter Readings Archive - Write