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

FERCR040 SAP ABAP Report - Direct Postings







FERCR040 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 FERCR040 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

FER4 - Direct postings


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 FERCR040. "Basic submit
SUBMIT FERCR040 AND RETURN. "Return to original report after report execution complete
SUBMIT FERCR040 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: F_LOG = D .
Selection Text: F_TEST = D .
Selection Text: P_VERSN = D .
Selection Text: P_PERIO = D .
Selection Text: P_KOKRS = D .
Selection Text: P_GJAHR = D .
Selection Text: P_BUDAT = D .
Title: Direct Postings
Text Symbol: RAM = Reading account masterfiles
Text Symbol: RAB = Reading account balances
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: H00 = Direct postings to regulatory accounts
Text Symbol: DDD = Deleting drill down data for direct accounts
002 settl.per. ccent order accou rec. period
001 BALANCE no valid Missing in T9q12 no valid


INCLUDES used within this REPORT FERCR040

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

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

FERC_PARAMETERS_GET CALL FUNCTION 'FERC_PARAMETERS_GET' EXPORTING run_id = ferc-run_id IMPORTING fi_version = ferc-fi_version co_version = ferc-co_version doc_type_direct_post = ferc-blart account_group = ferc-ktoks ext_settlement_not_traced = ext_sett_not_traced profit_center_direct = use_profit_center profit_center_direct_ledger = pc_ledger_from profit_center_plan_ledger = pc_plan_ledger dd_paths_criteria = dd_paths_criteria.

FAGL_GET_LEADING_LEDGER CALL FUNCTION 'FAGL_GET_LEADING_LEDGER' IMPORTING e_rldnr = pc_ledger_from.

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

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

FI_PERIOD_CHECK CALL FUNCTION 'FI_PERIOD_CHECK' EXPORTING i_bukrs = ferc_cc-bukrs i_gjahr = ferc-gjahr i_koart = koart i_konto = ferc_cc-glaccount 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.

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

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING msgty = ferc-msgty txtnr = '149' 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 = '110' zeile = ferc-zeile IMPORTING max_severity = ferc-severity.

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

DDIF_TABL_GET CALL FUNCTION 'DDIF_TABL_GET' EXPORTING name = pc_table_from TABLES dd03p_tab = i_fieldtab EXCEPTIONS illegal_input = 1 OTHERS = 2.

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING msgty = 'A' msgv1 = pc_table_from msgv2 = pc_ledger_from msgv3 = lv_select txtnr = '152' IMPORTING max_severity = ferc-severity.

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING 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.

FERC_PROGRESS_INDICATOR CALL FUNCTION 'FERC_PROGRESS_INDICATOR' EXPORTING text = 'Reading account masterfiles'(RAM).

FERC_PROGRESS_INDICATOR CALL FUNCTION 'FERC_PROGRESS_INDICATOR' EXPORTING text = 'Reading account balances'(RAB).

FERC_PARAMETERS_GET CALL FUNCTION 'FERC_PARAMETERS_GET' EXPORTING run_id = ferc-run_id company_code = ferc_cc-bukrs IMPORTING balance_sheet_offset = ferc_cc-glaccount profit_and_loss_offset = ferc_cc-placcount.

FERC_MESSAGE_STORE





CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING zeile = ferc-zeile arbgb = ferc0_arbgb msgty = 'A' txtnr = '046' msgv1 = ferc_cc-bukrs.

FAGL_GET_GLT0 CALL FUNCTION 'FAGL_GET_GLT0' EXPORTING i_rrcty = ferc-s_rrcty i_rvers = ferc-fi_version i_bukrs = ferc_cc-bukrs i_ryear = p_gjahr i_rpmax = block-rpmax it_fieldlist = lt_select IMPORTING et_glt0 = lt_glt0.

FERC_DIRECT_ACCOUNTS_GET CALL FUNCTION 'FERC_DIRECT_ACCOUNTS_GET' EXPORTING run_id = ferc-run_id company_code = ferc_cc-bukrs account = int_fi-saknr TABLES ferc_accounts = dir_acc EXCEPTIONS OTHERS = 4.

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING zeile = ferc-zeile arbgb = ferc0_arbgb msgty = ferc-msgty txtnr = '047' msgv1 = int_fi-bukrs msgv2 = sy-msgv2.

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING zeile = ferc-zeile arbgb = ferc0_arbgb msgty = ferc-msgty txtnr = '050' msgv1 = ferc_cc-bukrs msgv2 = sy-msgv2 msgv3 = sy-msgv3.

FERC_ACCOUNT_CHECK CALL FUNCTION 'FERC_ACCOUNT_CHECK' EXPORTING account = dir_acc-saknr company_code = int_fi-bukrs chart_of_accounts = tka01-ktopl.

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING zeile = ferc-zeile arbgb = ferc0_arbgb msgty = ferc-msgty txtnr = '049' msgv1 = ferc_cc-bukrs msgv2 = sy-msgv2 msgv3 = '988'.

FERC_MESSAGE_TYPE_GET CALL FUNCTION 'FERC_MESSAGE_TYPE_GET' EXPORTING message_number = ferc-txtnr IMPORTING message_type = ferc-msgty.

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING zeile = ferc-zeile arbgb = ferc0_arbgb msgv1 = int_fi-bukrs msgv2 = int_fi-saknr msgty = ferc-msgty txtnr = ferc-txtnr.

FERC_MESSAGE_TYPE_GET CALL FUNCTION 'FERC_MESSAGE_TYPE_GET' EXPORTING message_number = ferc-txtnr IMPORTING message_type = ferc-msgty.

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING zeile = ferc-zeile arbgb = ferc0_arbgb msgv1 = int_fi-bukrs msgv2 = int_fi-saknr msgty = ferc-msgty txtnr = ferc-txtnr.

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

FERC_DIRECT_ACCOUNTS_GET CALL FUNCTION 'FERC_DIRECT_ACCOUNTS_GET' EXPORTING run_id = ferc-run_id company_code = ferc_cc-bukrs account = int_fi-saknr check_existence_only = 'X' EXCEPTIONS OTHERS = 4.

FERC_COST_ELEMENT_CHECK CALL FUNCTION 'FERC_COST_ELEMENT_CHECK' EXPORTING controlling_area = ferc-kokrs cost_element = int_fi-saknr IMPORTING cost_element_type = int_katyp EXCEPTIONS no_cost_element = 1 OTHERS = 2.

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING zeile = ferc-zeile arbgb = ferc0_arbgb msgty = ferc-msgty txtnr = '047' msgv1 = int_fi-bukrs msgv2 = sy-msgv2.

FERC_PROGRESS_INDICATOR CALL FUNCTION 'FERC_PROGRESS_INDICATOR' EXPORTING text = 'Deleting drill down data for direct accounts'(DDD).

FERC_DIRECT_ACCOUNTS_GET CALL FUNCTION 'FERC_DIRECT_ACCOUNTS_GET' EXPORTING run_id = ferc-run_id company_code = int_fi-bukrs account = int_fi-saknr IMPORTING factor_total = factor_total TABLES ferc_accounts = dir_acc.

FERC_PLAN_DATA_UPDATE CALL FUNCTION 'FERC_PLAN_DATA_UPDATE' EXPORTING ledger = pc_plan_ledger version = ferc-version year = ferc-gjahr period = ferc-perio currency = ferc-waers TABLES line_items = ferc_doc EXCEPTIONS error_message = 1.

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

FERC_DIRECT_ACCOUNTS_GET CALL FUNCTION 'FERC_DIRECT_ACCOUNTS_GET' EXPORTING run_id = ferc-run_id company_code = ferc_cc-bukrs account = int_fi-saknr IMPORTING factor_total = factor_total TABLES ferc_accounts = dir_acc EXCEPTIONS OTHERS = 0.




FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING msgty = 'A' txtnr = '151' zeile = ferc-zeile IMPORTING max_severity = ferc-severity.

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING arbgb = 'GG' msgty = 'A' txtnr = '158' msgv1 = rldnr zeile = ferc-zeile.

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING arbgb = 'GG' msgty = 'A' txtnr = '087' msgv1 = rldnr zeile = ferc-zeile.

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING arbgb = 'FAGL_LEDGER_CUST' msgty = 'A' txtnr = '141' msgv1 = rldnr zeile = ferc-zeile.

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING arbgb = 'GH' msgty = 'A' txtnr = '104' msgv1 = rldnr msgv2 = '20' zeile = ferc-zeile.

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING msgty = 'A' txtnr = '153' msgv1 = rldnr msgv2 = t881-tab zeile = ferc-zeile.

FERC_MESSAGE_STORE CALL FUNCTION 'FERC_MESSAGE_STORE' EXPORTING msgty = ferc-msgty msgv1 = pc_table_from msgv2 = pc_ledger_from msgv3 = domain txtnr = '150' IMPORTING max_severity = ferc-severity.

K_COSTELEMENT_SHOW CALL FUNCTION 'K_COSTELEMENT_SHOW' EXPORTING kokrs = ferc-kokrs kstar = gt_outtab-s_saknr datab = ferc-budat datbi = ferc-budat.

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