BC_ARCHIVE_PRE 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_ARCHIVE_PRE 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: USER = D .
Selection Text: SEL_DOC = D .
Selection Text: P_PROT_O = D .
Selection Text: P_PROT = D .
Selection Text: P_PRETST = D .
Selection Text: P_PREPRD = D .
Selection Text: SEL_OBJ = Archiving Object
Selection Text: DEL_RES = Sess. Without Accessible Res.
Selection Text: DEL_FS = Sess. Without Accessible Files
Selection Text: DATE = Date of Archiving Session
Selection Text: ALINK = Stored in archive system
Title: Archiving Archive Administration Data: Preprocessing Program
Text Symbol: 313 = Archiving Run Has the Status 'Resulting from Reloading'
Text Symbol: 312 = Archive Files Not Yet Destroyed
Text Symbol: 311 = Cannot Be Marked for Archiving
Text Symbol: 310 = Not Marked for Archiving
Text Symbol: 309 = No Authorization
Text Symbol: 308 = Contains Resources
Text Symbol: 307 = Contains Accessible Files
Text Symbol: 306 = Contains Unstored Files
Text Symbol: 305 = To Be Archived Indicator Has Been Set
Text Symbol: 304 = To Be Archived Indicator Can be Set
Text Symbol: 303 = Additional Selection Criteria for XML Archiving Objects
Text Symbol: 302 = Additional Selection Criteria for ADK Archiving Objects
Text Symbol: 300 = Further Selection Criteria
Text Symbol: 200 = Archiving Sessions
Text Symbol: 013 = Setting the To Be Archived Indicator: Session Details
INCLUDE ADK_CONST.
INCLUDE ARCH_PREPROC_PRG_STANDARD2. " FLOW CONTROL
No SAP DATABASE tables are accessed within this REPORT code!
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
ENQUEUE_E_TABLE CALL FUNCTION 'ENQUEUE_E_TABLE' EXPORTING mode_rstable = 'E' tabname = 'ADMI_RUN' EXCEPTIONS foreign_lock = 4 system_failure = 8.
ENQUEUE_E_TABLE CALL FUNCTION 'ENQUEUE_E_TABLE' EXPORTING mode_rstable = 'E' tabname = 'ADMI_XRUN' EXCEPTIONS foreign_lock = 4 system_failure = 8.
DEQUEUE_E_TABLE CALL FUNCTION 'DEQUEUE_E_TABLE' EXPORTING mode_rstable = 'E' tabname = 'ADMI_RUN'.
DEQUEUE_E_TABLE CALL FUNCTION 'DEQUEUE_E_TABLE' EXPORTING mode_rstable = 'E' tabname = 'ADMI_XRUN'.
ARCHIVE_ADMIN_SELECT_SESSIONS CALL FUNCTION 'ARCHIVE_ADMIN_SELECT_SESSIONS' EXPORTING runs_without_files = 'X' indicate_progress = 'X' incorrect = 'X' incomplete = 'X' complete = 'X' being_reloaded = 'X' created_by_reload = 'X' replaced = 'X' to_be_archived = 'X' invalid = 'X' interrupted_incomplete = 'X' interrupted_complete = 'X' IMPORTING archive_runs = me->t_adk_runs TABLES object = sel_obj document = sel_doc date = date user = user selected_runs = lt_admi_run EXCEPTIONS object_not_found = 0.
ENQUEUE_E_TABLE CALL FUNCTION 'ENQUEUE_E_TABLE' EXPORTING tabname = 'ADMI_FILES' varkey = l_enqueue_key EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.
DEQUEUE_E_TABLE CALL FUNCTION 'DEQUEUE_E_TABLE' EXPORTING tabname = 'ADMI_FILES' varkey = l_enqueue_key EXCEPTIONS OTHERS = 0.
FILE_GET_NAME_USING_PATH CALL FUNCTION 'FILE_GET_NAME_USING_PATH' EXPORTING logical_path =
-pathintern parameter_1 = ls_applic parameter_3 = ls_object file_name = -filename IMPORTING file_name_with_path = -filename EXCEPTIONS path_not_found = 1 OTHERS = 5.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = l_msg_obj i_text = p_msgtxt i_msgtype = p_msgtype i_callback_parameter = lt_parameter.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = l_msg_obj i_msgid = p_msgid i_msgno = p_msgno i_msgv1 = p_msgv1 i_msgtype = p_msgtype i_callback_parameter = lt_parameter.
ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot i_callback_parameter = gs_bal_s_parm.
ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.
ARCHIVE_PROTOCOL_LINE_DETAIL CALL FUNCTION 'ARCHIVE_PROTOCOL_LINE_DETAIL'.
CONVERT_DATE_TO_EXTERNAL CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL' EXPORTING date_internal = l_date_in IMPORTING date_external = l_date EXCEPTIONS OTHERS = 2.
POPUP_DISPLAY_TEXT_WITH_PARAMS CALL FUNCTION 'POPUP_DISPLAY_TEXT_WITH_PARAMS' EXPORTING language = sy-langu popup_title = l_titel start_column = 10 start_row = 3 text_object = 'ARCHIVE_FLAG_SESSIONS' TABLES parameters = lt_params EXCEPTIONS OTHERS = 0.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
BC_ARCHIVE_PRE - Archiving Archive Administration Data: Preprocessing Program BC_ARCHIVE_PRE - Archiving Archive Administration Data: Preprocessing Program BC_ALV_GRID_CONTROL - BCALVGRIDCONTROL BC_ALV_DEMO_HTML_D0100 - Include BC_ALV_DEMO_HTML_D0100 BC_ALVHIERTOP - Include BC_ALVHIERTOP BC_ALVHIERGRID1_HIER - Include BC_ALVHIERGRID1_HIER