SAPRVAM0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The SAPRVAM0 report realizes the first step in
If you would like to execute this report or see the full code listing simply enter SAPRVAM0 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_SNAP = D .
Selection Text: P_DEST = D .
Selection Text: P_AR_ILM = D .
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: SE_IDENT = Broker Report
Selection Text: P_ARDAY = Archiving Key Date
Title: Broker Report Archiving - Archiving Program
Text Symbol: S01 = Broker Report Archived
Text Symbol: E10 = non-archived broker reports
Text Symbol: E09 = non-archivable broker reports
Text Symbol: E07 = Runtime not Adhered to
Text Symbol: E05 = Cause
Text Symbol: E01 = Detailed Log-Non-Archivable Broker Reports
Text Symbol: E00 = Detailed Log-Non-Archived Broker Reports
Text Symbol: D30 = No. Entries in Archived Tables
Text Symbol: D14 = Overview Log - Archivable Broker Reports
Text Symbol: D13 = Detailed Log - Archivable Broker Reports
Text Symbol: D12 = Overview Log - Archived Broker Reports
Text Symbol: D11 = Detailed Log - Archived Broker Reports
Text Symbol: D10 = Table
Text Symbol: D09 = In Bytes...........
Text Symbol: D07 = Archived.....
Text Symbol: D06 = Read.......
Text Symbol: D01 = Broker Report
Text Symbol: 011 = <<< Update Run >>>
Text Symbol: 010 = <<< Test Run >>>
Text Symbol: 007 = Proc. Flow Ctrl
Text Symbol: 006 = No Log Data Available
Text Symbol: 002 = Restrictions
Text Symbol: 001 = Archiving Quantity Selection
INCLUDE RVVAMI00_0.
INCLUDE RVVAMI00.
INCLUDE RVVAM_FORMS.
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_PROTOCOL_LINE_DETAIL CALL FUNCTION 'ARCHIVE_PROTOCOL_LINE_DETAIL'.
ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING object = sys_objct call_delete_job_in_test_mode = p_deltst create_archive_file = xprod comments = arc_comm output_sel_screen_when_dialog = ' ' do_not_delete_data = p_snap destroy = p_dest IMPORTING archive_handle = arc_data-handle.
FKK_ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'FKK_ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot.
FKK_ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'FKK_ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = arc_data-handle.
ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = arc_data-handle.
DD_DOMVALUE_TEXT_GET CALL FUNCTION 'DD_DOMVALUE_TEXT_GET' EXPORTING domname = 'STATUS_BRO' value = dd_value IMPORTING dd07v_wa = dd_text.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = ld_stmh-ident i_text = dd_text-ddtext i_msgtype = 2.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = ld_stmh-ident i_text = text-e07 i_msgtype = 2.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING I_OBJECT = LD_STMH-IDENT I_MSGTYPE = 2 I_MSGID = 'VARCHI' I_MSGNO = 2.
FKK_ARCHIVE_NEW_OBJECT CALL FUNCTION 'FKK_ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = arc_data-handle object_id = ld_arch_all-archindex.
FKK_ARCHIVE_PUT_RECORD CALL FUNCTION 'FKK_ARCHIVE_PUT_RECORD' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = 'IBROSTMH' record = ld_arch_all-stmh.
FKK_ARCHIVE_PUT_TABLE CALL FUNCTION 'FKK_ARCHIVE_PUT_TABLE' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = 'IBROSTMP' TABLES table = ld_arch_all-stmp.
FKK_ARCHIVE_PUT_TABLE CALL FUNCTION 'FKK_ARCHIVE_PUT_TABLE' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = 'IBROSTMS' TABLES table = ld_arch_all-stms.
FKK_ARCHIVE_PUT_TABLE CALL FUNCTION 'FKK_ARCHIVE_PUT_TABLE' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = 'IBROSTMCF' TABLES table = ld_arch_all-stcf.
FKK_ARCHIVE_PUT_TABLE CALL FUNCTION 'FKK_ARCHIVE_PUT_TABLE' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = 'IBROSTMPE' TABLES table = ld_arch_all-stpe.
FKK_ARCHIVE_PUT_TABLE CALL FUNCTION 'FKK_ARCHIVE_PUT_TABLE' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = 'IBROSTMDFLT' TABLES table = ld_arch_all-stmd.
FKK_ARCHIVE_PUT_TABLE CALL FUNCTION 'FKK_ARCHIVE_PUT_TABLE' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = 'IBROSTMFKY' TABLES table = ld_arch_all-stmy.
FKK_ARCHIVE_PUT_TABLE CALL FUNCTION 'FKK_ARCHIVE_PUT_TABLE' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = csdoc TABLES table = ld_arch_all-sdoc.
FKK_ARCHIVE_PUT_TABLE CALL FUNCTION 'FKK_ARCHIVE_PUT_TABLE' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = csact TABLES table = ld_arch_all-sact.
FKK_ARCHIVE_PUT_TABLE CALL FUNCTION 'FKK_ARCHIVE_PUT_TABLE' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = csumn TABLES table = ld_arch_all-sumn.
FKK_ARCHIVE_PUT_TABLE CALL FUNCTION 'FKK_ARCHIVE_PUT_TABLE' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = cwdgrp TABLES table = ld_arch_all-wdgrp.
FKK_ARCH_STAT_READ CALL FUNCTION 'FKK_ARCH_STAT_READ' EXPORTING i_table = iv_name i_number = iv_number.
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 SAPRVAM0 or its description.
SAPRVAM0 - Broker Report Archiving - Archiving Program SAPRVAM0 - Broker Report Archiving - Archiving Program SAPRVAG3 - Money Laundering Law Archiving - Reload Program SAPRVAG3 - Money Laundering Law Archiving - Reload Program SAPRVAG2 - Money Laundering Law Archiving - Deletion Program SAPRVAG2 - Money Laundering Law Archiving - Deletion Program