BC_DBLOGS_READ_AR_BY_INDEX 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_READ_AR_BY_INDEX 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_CLIENT = D .
Selection Text: P_SYSID = D .
Selection Text: S_LGDATE = D .
Selection Text: S_LGID = D .
Selection Text: S_TABLE = D .
Title: Program BC_DBLOGS_READ_AR_BY_INDEX
Text Symbol: 010 = Tables
Text Symbol: 012 = Log Records of Table Changes
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
AS_DATASOURCE_INIT CALL FUNCTION 'AS_DATASOURCE_INIT' EXPORTING i_report = sy-repid i_reporttype = space IMPORTING e_use_database = cp_readdb e_use_archive = cp_readar e_use_infosys = cp_readas et_arch_sel = cs_files[].
AS_DATASOURCE_SELECT CALL FUNCTION 'AS_DATASOURCE_SELECT' EXPORTING i_report = sy-repid i_reporttype = space it_objects = lt_arch_obj[] CHANGING c_use_database = cp_readdb c_use_archive = cp_readar c_use_infosys = cp_readas ct_arch_sel = cs_files[].
AS_API_INFOSTRUC_FIND CALL FUNCTION 'AS_API_INFOSTRUC_FIND' EXPORTING i_fieldcat = gc_arch_fieldcat i_fields = lt_fields_filled[] IMPORTING e_infostruc = lv_info_struct_name e_matching_fields = lt_matching_fields[] EXCEPTIONS no_infostruc_found = 1.
READ_BC_DBLOGS CALL FUNCTION 'READ_BC_DBLOGS' EXPORTING it_lgdate = ps_lgdate it_lgtime = s_lgtime[] it_lgid = ps_lgid it_table = ps_table it_files = ps_files iv_readdb = ip_readdb iv_readar = ip_readar iv_readas = ip_readas CHANGING ct_dbtablog = ct_table.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = sy-repid i_structure_name = gc_tabname i_inclname = sy-repid CHANGING ct_fieldcat = lt_fieldcat.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_grid_title = text-012 i_callback_program = sy-repid it_fieldcat = lt_fieldcat[] TABLES t_outtab = pt_table.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.