SAP Reports / Programs | Financial Accounting(FI) SAP FI

FERCR100 SAP ABAP Report - Reversal of Regulatory Procedure







FERCR100 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The reversal program allows the user to reverse all of the regulatory postings and to delete all entries in the regulatory reporting tables...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 FERCR100 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

FERR - Reverse regulatory procedure


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 FERCR100. "Basic submit
SUBMIT FERCR100 AND RETURN. "Return to original report after report execution complete
SUBMIT FERCR100 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 = Version
Selection Text: P_STEP = D Regulatory procedure
Selection Text: P_PERIO = D Period
Selection Text: P_KOKRS = D Controlling area
Selection Text: P_GJAHR = D Fiscal year
Selection Text: P_BUDAT = D Posting date
Selection Text: F_TEST = D Test run
Title: Reversal of Regulatory Procedure
Text Symbol: SRV = Rev:
Text Symbol: S60 = Archiving
Text Symbol: S41 = Reset all plan data
Text Symbol: S40 = direct postings
Text Symbol: S30 = variance allocations
Text Symbol: S21 = Reset traced plan data
Text Symbol: S20 = traced cost postings
Text Symbol: S10 = flow of cost trace
Text Symbol: S00 = standard cost adjustments
Text Symbol: REV = Reversal of
Text Symbol: R60 = Discard archive
Text Symbol: R00 = |Account |Name |No of records|
Text Symbol: Q00 = Process with
Text Symbol: P80 = Regulatory procedure to be reversed
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: M00 = |T|No. |Message |
Text Symbol: GUI = Deleting
Text Symbol: F00 = |Company code|Document |
Text Symbol: DEL = Deletion of
Text Symbol: D00 = |Table |Contents |No of records|





Text Symbol: C00 = |Document |
Text Symbol: 60D = Discarded archive:
002 settl.per. ccent order accou rec. period
001 BALANCE no valid Missing in T9q12 no valid


INCLUDES used within this REPORT FERCR100

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:

FERC_DEFAULT_GET CALL FUNCTION 'FERC_DEFAULT_GET' IMPORTING controlling_area = p_kokrs period = p_perio year = p_gjahr * LAST_DAY_OF_PERIOD = P_BUDAT EXCEPTIONS OTHERS = 4.

CONVERT_KOKRS_TO_BUKRS CALL FUNCTION 'CONVERT_KOKRS_TO_BUKRS' EXPORTING kokrs = p_kokrs TABLES tbukrs = ferc_cc.

FERC_PARAMETERS_INIT CALL FUNCTION 'FERC_PARAMETERS_INIT' EXPORTING controlling_area = p_kokrs year = p_gjahr period = p_perio record_type = ferc-rrcty version = p_versn TABLES ferc_relevant_company_codes = ferc_cc.

FAGL_CHECK_GLFLEX_ACTIVE CALL FUNCTION 'FAGL_CHECK_GLFLEX_ACTIVE' IMPORTING e_glflex_active = gv_glflex_active EXCEPTIONS OTHERS = 0.

FAGL_GET_LEADING_LEDGER CALL FUNCTION 'FAGL_GET_LEADING_LEDGER' IMPORTING e_rldnr = t895-rldnr.

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING arbgb = 'GP' msgty = ferc-msgty msgv1 = t895-rldnr msgv2 = ferc-version msgv3 = ferc_cc-bukrs msgv4 = ferc-gjahr txtnr = '110' zeile = ferc-zeile IMPORTING max_severity = ferc-severity.

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING arbgb = 'GP' msgty = ferc-msgty msgv1 = t895-rldnr msgv2 = ferc-version msgv3 = ferc_cc-bukrs msgv4 = ferc-gjahr txtnr = '125' zeile = ferc-zeile IMPORTING max_severity = ferc-severity.

CO_DOCUMENT_RECORD CALL FUNCTION 'CO_DOCUMENT_RECORD' EXPORTING i_awtyp = ferc0_awtyp i_awref = ferc-awref i_aworg = ferc-aworg TABLES t_documents = acc_doc.

AC_DOCUMENT_RECORD * CALL FUNCTION 'AC_DOCUMENT_RECORD' * EXPORTING * i_awtyp = ferc0_awtyp * i_awref = ferc-awref * i_aworg = ferc-aworg * i_awtyp_excl = 'COBK ' * x_dialog = boole * TABLES * t_documents = acc_doc * EXCEPTIONS * no_reference = 1 * no_document = 2 * OTHERS = 3.

FI_DOCUMENT_RECORD CALL FUNCTION 'FI_DOCUMENT_RECORD' EXPORTING i_awtyp = ferc0_awtyp i_awref = ferc-awref i_aworg = ferc-aworg TABLES t_documents = acc_doc.

FI_DOCUMENT_RECORD CALL FUNCTION 'FI_DOCUMENT_RECORD' EXPORTING i_awtyp = ferc0_awtyp i_awref = ferc-awref i_aworg = ferc-aworg TABLES t_documents = acc_doc.

FERC_PARAMETERS_GET CALL FUNCTION 'FERC_PARAMETERS_GET' EXPORTING run_id = ferc-run_id company_code = ferc_cc-bukrs IMPORTING std_cost_adj_account = test_account.

FERC_PARAMETERS_GET CALL FUNCTION 'FERC_PARAMETERS_GET' EXPORTING run_id = ferc-run_id company_code = ferc_cc-bukrs IMPORTING profit_and_loss_offset = test_account.

FERC_PARAMETERS_GET CALL FUNCTION 'FERC_PARAMETERS_GET' EXPORTING run_id = ferc-run_id company_code = ferc_cc-bukrs IMPORTING balance_sheet_offset = test_account.

FI_PERIOD_CHECK CALL FUNCTION 'FI_PERIOD_CHECK' EXPORTING i_bukrs = ferc_cc-bukrs i_gjahr = ferc-gjahr i_koart = koart i_konto = test_account i_monat = ferc-perio EXCEPTIONS OTHERS = 1.






FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING zeile = ferc-zeile arbgb = sy-msgid msgty = sy-msgty txtnr = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 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 = del_block EXCEPTIONS object_not_found = 1.

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

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING zeile = ferc-zeile arbgb = ferc0_arbgb msgty = ferc-msgty msgv1 = ferc-admi_run msgv2 = ferc-perio msgv3 = ferc-gjahr msgv4 = ferc-kokrs txtnr = ferc-txtnr.

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

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = gui_per text = sy-lisel.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = gui_per text = sy-lisel.

BAPI_ACC_ACT_POSTINGS_REVERSE CALL FUNCTION 'BAPI_ACC_ACT_POSTINGS_REVERSE' EXPORTING doc_header = gs_doc_header ignore_warnings = 'X' TABLES return = lt_return.

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING arbgb = ls_return-id msgty = ls_return-type msgv1 = ls_return-message_v1 msgv2 = ls_return-message_v2 msgv3 = ls_return-message_v3 msgv4 = ls_return-message_v4 txtnr = ls_return-number zeile = ferc-zeile.

K_ORDER_CHECK CALL FUNCTION 'K_ORDER_CHECK' EXPORTING aufnr = ferc_accit-aufnr test_vrgng = 'RFBU'.

MESSAGES_COUNT CALL FUNCTION 'MESSAGES_COUNT' IMPORTING max_severity = ferc-severity.

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

FERC_PARAMETERS_GET CALL FUNCTION 'FERC_PARAMETERS_GET' EXPORTING run_id = ferc-run_id IMPORTING account_group = ferc-ktoks profit_center_trace = use_profit_center_trc profit_center_direct = use_profit_center_dir profit_center_plan_ledger = plan_ledger.

FERC_PLAN_DATA_RESET CALL FUNCTION 'FERC_PLAN_DATA_RESET' EXPORTING ledger = plan_ledger version = ferc-version year = ferc-gjahr period = ferc-perio test_run = ferc-test TABLES reset = ferc_reset.

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.

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

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

RS_DD_FIEL_SHOW CALL FUNCTION 'RS_DD_FIEL_SHOW' EXPORTING eutype = 'T' objname = ferc_sft-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 FERCR100 or its description.