SAP Reports / Programs | Basis Components | Basis Components | Table History(BC-CUS-TOL-ALO) SAP BC

BC_DBLOGS_WRI SAP ABAP Report - Table Change Log Record Archiving: Write Program







BC_DBLOGS_WRI 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 BC_DBLOGS_WRI 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 BC_DBLOGS_WRI. "Basic submit
SUBMIT BC_DBLOGS_WRI AND RETURN. "Return to original report after report execution complete
SUBMIT BC_DBLOGS_WRI 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: SR_TABNA = 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_AR_ILM = D .
Selection Text: P_COMENT = Archiving Session Note
Selection Text: FROM_T = Time
Selection Text: FROM_DAY = Date
Title: Table Change Log Record Archiving: Write Program
Text Symbol: N03 = Table Change Log Records Archivable
Text Symbol: N02 = Retention Time Reached
Text Symbol: N01 = Snapshot Archived
Text Symbol: 104 = Archiving statistics write error
Text Symbol: 102 = Archive write error
Text Symbol: 101 = Archive creation error
Text Symbol: 100 = No authorization to create an archive
Text Symbol: 026 = Frm
Text Symbol: 025 = Comment
Text Symbol: 024 = &2 Database table logs processed
Text Symbol: 022 = Reading Data
Text Symbol: 007 = Restrictions
Text Symbol: 006 = Table Name
Text Symbol: 005 = to (Date/Time)
Text Symbol: 004 = from (Date/Time)
Text Symbol: 001 = Table Change Log Records


INCLUDES used within this REPORT BC_DBLOGS_WRI

INCLUDE RSLD_DEF.
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_PROTOCOL_INIT call function 'ARCHIVE_PROTOCOL_INIT' exporting i_detailprotocol = p_prot.

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 = dblog_arch_obj_name comments = comment_buf do_not_delete_data = g_not_delete destroy = g_destroy importing archive_handle = handle exceptions * internal_error = 1 * object_not_found = 2 * open_error = 3 not_authorized = 4 others = 5.

PROGRESS_INDICATOR call function 'PROGRESS_INDICATOR' exporting i_text = text-022 i_output_immediately = 'X'.

ARCHIVE_NEW_OBJECT call function 'ARCHIVE_NEW_OBJECT' exporting archive_handle = handle exceptions others = 3.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = handle record_structure = dblog_xkey_struc_name tables table = xkey_buffer exceptions others = 4.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = handle record_structure = dblog_log_table_name tables table = gt_log_buffer exceptions others = 4.

ARCHIVE_SAVE_OBJECT call function 'ARCHIVE_SAVE_OBJECT' exporting archive_handle = handle exceptions termination_requested = 4 data_object_not_saved = 6 others = 7.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = gv_tablog i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = gv_tablog i_msgtype = 1 i_text = gv_text.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = gv_tablog i_msgtype = 1 i_text = gv_text.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = gv_tablog i_msgtype = 1 i_text = gv_text.

ARCHIVE_NEW_OBJECT call function 'ARCHIVE_NEW_OBJECT' exporting archive_handle = handle exceptions others = 3.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = handle record_structure = dblog_xkey_struc_name tables table = xkey_buffer exceptions others = 4.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = handle record_structure = dblog_log_table_name tables table = gt_log_buffer exceptions others = 4.

ARCHIVE_SAVE_OBJECT call function 'ARCHIVE_SAVE_OBJECT' exporting archive_handle = handle exceptions termination_requested = 4 data_object_not_saved = 6 others = 7.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = gv_tablog i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = gv_tablog i_msgtype = 1 i_text = gv_text.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = gv_tablog i_msgtype = 1 i_text = gv_text.

ARCHIVE_PROTOCOL_COLLECT





call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = gv_tablog i_msgtype = 1 i_text = gv_text.

PROGRESS_INDICATOR call function 'PROGRESS_INDICATOR' exporting i_text = text-024 i_processed = g_processed importing e_progress_sent = g_progress_sent.

DB_COMMIT call function 'DB_COMMIT'.

PROGRESS_INDICATOR call function 'PROGRESS_INDICATOR' exporting i_text = text-024 i_processed = g_processed i_output_immediately = 'X'.

ARCHIVE_WRITE_STATISTICS call function 'ARCHIVE_WRITE_STATISTICS' exporting archive_handle = handle * STATISTICS_ONLY_PER_RUN = ' ' exceptions * internal_error = 1 others = 2.

ARCHIVE_PROTOCOL_WRITE call function 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting archive_handle = handle exceptions * internal_error = 1 * wrong_access_to_archive = 2 others = 3.



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