SAP Reports / Programs

FERCR070 SAP ABAP Report - Delete archived regulatory data







FERCR070 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 FERCR070 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 FERCR070. "Basic submit
SUBMIT FERCR070 AND RETURN. "Return to original report after report execution complete
SUBMIT FERCR070 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: R_PLAN = Plan
Selection Text: R_ACTUAL = Actual
Selection Text: P_VERSN = D Version
Selection Text: P_PERIO = D Period
Selection Text: P_KOKRS = D CO area
Selection Text: P_GJAHR = D Fiscal year
Selection Text: P_BUDAT = D Posting date
Selection Text: F_TEST = D Test run
Selection Text: F_LOG = D Create log
Title: Delete archived regulatory data
Text Symbol: Q00 = Process with
Text Symbol: P70 = Create log
Text Symbol: P60 = Test run
Text Symbol: P50 = Version
Text Symbol: P40 = Plan
Text Symbol: P30 = Actual
Text Symbol: P20 = Posting date
Text Symbol: P11 = /
Text Symbol: P10 = Period
Text Symbol: P00 = Parameters
Text Symbol: H01 = Reload archive
Text Symbol: H00 = Delete archive


INCLUDES used within this REPORT FERCR070

INCLUDE FERCD000.
INCLUDE FERCD100.
INCLUDE FERCF000.


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_OPEN_FOR_READ CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ' EXPORTING object = ferc0_object IMPORTING archive_handle = ferc-handle TABLES archive_files = archive_files EXCEPTIONS file_already_open = 1 file_io_error = 2 internal_error = 3 no_files_available = 4 object_not_found = 5 open_error = 6 not_authorized = 7 OTHERS = 8.

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING zeile = ferc-zeile arbgb = sy-msgid msgty = 'A' msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 txtnr = ferc-txtnr IMPORTING max_severity = ferc-severity.

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 = 0.

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 open_error = 3 wrong_access_to_archive = 4.

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_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' "builds up index EXPORTING archive_handle = ferc-handle IMPORTING record_ref = buffer_ref record_structure = arc_buffer-rname EXCEPTIONS end_of_object = 01.

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING arbgb = ferc0_arbgb msgty = 'S' txtnr = ferc-txtnr zeile = ferc-zeile.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = ferc-handle.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING * i_bypassing_buffer = 'X' i_structure_name = 'FERC_SFT' CHANGING ct_fieldcat = rt_fieldcat.

RS_DD_FIEL_SHOW CALL FUNCTION 'RS_DD_FIEL_SHOW' EXPORTING eutype = 'T' objname = gt_outtab-tabname.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_top_of_page.



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