FERC_DEL is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program is deleting archived regulatory data from the database system...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter FERC_DEL 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_DELPRD = D .
Selection Text: P_DELTST = D .
Title: Program FERC_DEL1
INCLUDE ARCH_DELETE_PRG_STANDARD1.
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = ferc0_object test_mode = ferc-test IMPORTING archive_handle = ferc-handle TABLES selected_files = lt_files.
ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = ferc0_object IMPORTING commit_count_for_delete_prg = commcnt maintain_index = flg_index EXCEPTIONS object_not_found = 1.
ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = ferc-handle IMPORTING object_id = arch_idx-object_id object_offset = arch_idx-offset archive_name = arch_idx-archivekey EXCEPTIONS end_of_file = 1.
ARCHIVE_ADMIN_SAVE_INDEX CALL FUNCTION 'ARCHIVE_ADMIN_SAVE_INDEX' EXPORTING object = ferc0_object object_id = arch_idx-object_id archivekey = arch_idx-archivekey object_offset = arch_idx-offset.
ARCHIVE_READ_OBJECT_BY_HANDLE CALL FUNCTION 'ARCHIVE_READ_OBJECT_BY_HANDLE' EXPORTING iv_handle = ferc-handle CHANGING ct_obj_data = lt_data_object.
ARCHIVE_DELETE_TABLE CALL FUNCTION 'ARCHIVE_DELETE_TABLE' EXPORTING iv_tabname = ls_object_data-tabname it_records =
iv_deltst = p_deltst iv_handle = ferc-handle.
ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = ferc-handle TABLES table = obj_statistic.
FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING arbgb = ferc0_arbgb msgty = 'S' txtnr = ferc-txtnr.
ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = ferc-handle statistics_only_per_file = 'X'.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = ferc-handle.
FERC_PARAMETERS_INIT CALL FUNCTION 'FERC_PARAMETERS_INIT' EXPORTING controlling_area = ferc-kokrs year = ferc-gjahr period = ferc-perio record_type = ferc-rrcty version = ferc-version ferc_step = ferc-step test_run = ferc-test IMPORTING run_id = ferc-run_id run_no = ferc-run_no currency = ferc-waers archive_session = ferc-admi_run dd_dir = ferc-dd_dir dd_trc = ferc-dd_trc.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.