SAP Function Modules

FERC_PARAMETERS_GET SAP Function module - Get general or controlling area or company code dependent parameter







FERC_PARAMETERS_GET is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name FERC_PARAMETERS_GET into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FE01
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FERC_PARAMETERS_GET - FERC PARAMETERS GET





CALL FUNCTION 'FERC_PARAMETERS_GET' "Get general or controlling area or company code dependent parameter
  EXPORTING
    run_id =                    " ferc_r0-run_id
*   company_code =              " t001-bukrs
  IMPORTING
    period =                    " ferc_r0-perio  Period
    year =                      " ferc_r0-gjahr  Fiscal year
    read_actual_data =          " ferc_c1-actual  Flag: Read actual data of the natural accounts?
    co_version =                " versn         Version
    fi_version =                " rvers         Version
    doc_type_std_cost =         " fe_dtyp_sc    Document type used for standard cost adjustments
    doc_type_prim_cost_flow =   " fe_dtyp_pl    Document type used for traced costs postings
    doc_type_direct_post =      " fe_dtyp_bs    Document type used for direct postings
    absolut_accuracy =          " fe_acc_abs    Absolute accuracy in controlling area currency
    relative_accuracy =         " ferc_c1-acc_rel  Relative accuracy in %
    ext_settlement_not_traced =   " ferc_c0-ext_set  Treatment of external settlement cost elements
    dd_paths_criteria =         " ferc_c0-no_zero  Drill down path creation criteria
    threshold =                 " ferc_c0-threshold  Acceptable numerical error threshold in % per sending object
    higher_order_correction =   " sy-datar      Screens, display user entry
    no_of_blocking_attempts =   " sy-tabix      Internal table, current line index
    ignore_sce_allowed =        " sy-datar      Screens, display user entry
    std_cost_adjustment =       " ferc_c1-stdcostadj  Standard cost adjustment procedure activation indicator
    variance_allocation =       " fe_var_act    Flag: Variance allocation active?
    ext_settlement_only =       " fe_extsett    Flag: Process only objects with external settlements?
    cc_level_assignment =       " fe_cc_ass     Flag: Company code specific regulatory account assignments?
    account_group =             " fe_ktoks      Regulatory account group
    cost_center_types =         " fe_kosar      Clearing cost center types
    clearing_default =          " fe_clr_ce     Clearing cost element
    clearing_benefits =         " fe_clr_ce     Clearing cost element
    clearing_payroll =          " fe_clr_ce     Clearing cost element
    clearing_max_neg_percent =   " fe_clrg_neg  Maximal negative percentage per clearing category
    summarize_object_types =    " fe_summ_otype  Flag: Summarize objects of different object type?
    summarization_percentage =   " fe_summ_prc  Percentage threshold for small amount summarization warning
    summarization_amount =      " fe_summ_amt   Amount threshold for small amount summarization warning
    paths_max =                 " fe_paths_max  Maximal number of paths for one source object
    ferc_relevant =             " fe_buk_rel    Flag: Company code relevant for regulatory reporting?
    summarization_threshold =   " fe_summ_thresh  Summarization threshold for small amounts
    balance_sheet_offset =      " ska1-saknr    G/L account number
    profit_and_loss_offset =    " ska1-saknr    G/L account number
    in_offset =                 " ska1-saknr    G/L account number
    out_offset =                " ska1-saknr    G/L account number
    std_cost_adj_account =      " cska-kstar    Cost element
    std_cost_adj_order =        " aufk-aufnr    Order number
    var_alloc_cost_center =     " csks-kostl    Cost center
    var_alloc_activity =        " csla-lstar    Activity Type
    negative_flow =             " ferc_c1-neg_flow  Treatment of negative flow
    adjust_inter_clrg_flows =   " fe_adj_flow   Flag: Adjust inter-clearing group flows?
    non_reg_clearing =          " ferc_c0-nreg_clrg  Treatment of clearing costs from non-regulatory companies
    nwa_wbs_assignments =       " ferc_c0-nwa_wbs  Flag: Treat WBS assignment to NWA as flow for plan data?
    profit_center_trace =       " ferc_c0-prctr_trc_0  Flag: Include profit center in actual regulatory postings
    profit_center_direct =      " ferc_c0-prctr_dir_0  Flag: Include profit center in actual regulatory postings
    profit_center_direct_ledger =   " ferc_c0-rldnr_from  Ledger containing profit center records for direct postings
    profit_center_plan_ledger =   " ferc_c0-rldnr_to_1  Plan ledger updated with regulatory profit center postings
    badi =                      " if_ex_ferc    Business add-in interface IF_EX_FERC
  EXCEPTIONS
    NO_PARAMETERS_DEFINED = 1   "
    PARAMETERS_NOT_INITIALIZED = 2  "
    .  "  FERC_PARAMETERS_GET

ABAP code example for Function Module FERC_PARAMETERS_GET





The ABAP code below is a full code listing to execute function module FERC_PARAMETERS_GET including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_period  TYPE FERC_R0-PERIO ,
ld_year  TYPE FERC_R0-GJAHR ,
ld_read_actual_data  TYPE FERC_C1-ACTUAL ,
ld_co_version  TYPE VERSN ,
ld_fi_version  TYPE RVERS ,
ld_doc_type_std_cost  TYPE FE_DTYP_SC ,
ld_doc_type_prim_cost_flow  TYPE FE_DTYP_PL ,
ld_doc_type_direct_post  TYPE FE_DTYP_BS ,
ld_absolut_accuracy  TYPE FE_ACC_ABS ,
ld_relative_accuracy  TYPE FERC_C1-ACC_REL ,
ld_ext_settlement_not_traced  TYPE FERC_C0-EXT_SET ,
ld_dd_paths_criteria  TYPE FERC_C0-NO_ZERO ,
ld_threshold  TYPE FERC_C0-THRESHOLD ,
ld_higher_order_correction  TYPE SY-DATAR ,
ld_no_of_blocking_attempts  TYPE SY-TABIX ,
ld_ignore_sce_allowed  TYPE SY-DATAR ,
ld_std_cost_adjustment  TYPE FERC_C1-STDCOSTADJ ,
ld_variance_allocation  TYPE FE_VAR_ACT ,
ld_ext_settlement_only  TYPE FE_EXTSETT ,
ld_cc_level_assignment  TYPE FE_CC_ASS ,
ld_account_group  TYPE FE_KTOKS ,
ld_cost_center_types  TYPE FE_KOSAR ,
ld_clearing_default  TYPE FE_CLR_CE ,
ld_clearing_benefits  TYPE FE_CLR_CE ,
ld_clearing_payroll  TYPE FE_CLR_CE ,
ld_clearing_max_neg_percent  TYPE FE_CLRG_NEG ,
ld_summarize_object_types  TYPE FE_SUMM_OTYPE ,
ld_summarization_percentage  TYPE FE_SUMM_PRC ,
ld_summarization_amount  TYPE FE_SUMM_AMT ,
ld_paths_max  TYPE FE_PATHS_MAX ,
ld_ferc_relevant  TYPE FE_BUK_REL ,
ld_summarization_threshold  TYPE FE_SUMM_THRESH ,
ld_balance_sheet_offset  TYPE SKA1-SAKNR ,
ld_profit_and_loss_offset  TYPE SKA1-SAKNR ,
ld_in_offset  TYPE SKA1-SAKNR ,
ld_out_offset  TYPE SKA1-SAKNR ,
ld_std_cost_adj_account  TYPE CSKA-KSTAR ,
ld_std_cost_adj_order  TYPE AUFK-AUFNR ,
ld_var_alloc_cost_center  TYPE CSKS-KOSTL ,
ld_var_alloc_activity  TYPE CSLA-LSTAR ,
ld_negative_flow  TYPE FERC_C1-NEG_FLOW ,
ld_adjust_inter_clrg_flows  TYPE FE_ADJ_FLOW ,
ld_non_reg_clearing  TYPE FERC_C0-NREG_CLRG ,
ld_nwa_wbs_assignments  TYPE FERC_C0-NWA_WBS ,
ld_profit_center_trace  TYPE FERC_C0-PRCTR_TRC_0 ,
ld_profit_center_direct  TYPE FERC_C0-PRCTR_DIR_0 ,
ld_profit_center_direct_ledger  TYPE FERC_C0-RLDNR_FROM ,
ld_profit_center_plan_ledger  TYPE FERC_C0-RLDNR_TO_1 ,
ld_badi  TYPE IF_EX_FERC .


SELECT single RUN_ID
FROM FERC_R0
INTO @DATA(ld_run_id).


SELECT single BUKRS
FROM T001
INTO @DATA(ld_company_code).
. CALL FUNCTION 'FERC_PARAMETERS_GET' EXPORTING run_id = ld_run_id * company_code = ld_company_code IMPORTING period = ld_period year = ld_year read_actual_data = ld_read_actual_data co_version = ld_co_version fi_version = ld_fi_version doc_type_std_cost = ld_doc_type_std_cost doc_type_prim_cost_flow = ld_doc_type_prim_cost_flow doc_type_direct_post = ld_doc_type_direct_post absolut_accuracy = ld_absolut_accuracy relative_accuracy = ld_relative_accuracy ext_settlement_not_traced = ld_ext_settlement_not_traced dd_paths_criteria = ld_dd_paths_criteria threshold = ld_threshold higher_order_correction = ld_higher_order_correction no_of_blocking_attempts = ld_no_of_blocking_attempts ignore_sce_allowed = ld_ignore_sce_allowed std_cost_adjustment = ld_std_cost_adjustment variance_allocation = ld_variance_allocation ext_settlement_only = ld_ext_settlement_only cc_level_assignment = ld_cc_level_assignment account_group = ld_account_group cost_center_types = ld_cost_center_types clearing_default = ld_clearing_default clearing_benefits = ld_clearing_benefits clearing_payroll = ld_clearing_payroll clearing_max_neg_percent = ld_clearing_max_neg_percent summarize_object_types = ld_summarize_object_types summarization_percentage = ld_summarization_percentage summarization_amount = ld_summarization_amount paths_max = ld_paths_max ferc_relevant = ld_ferc_relevant summarization_threshold = ld_summarization_threshold balance_sheet_offset = ld_balance_sheet_offset profit_and_loss_offset = ld_profit_and_loss_offset in_offset = ld_in_offset out_offset = ld_out_offset std_cost_adj_account = ld_std_cost_adj_account std_cost_adj_order = ld_std_cost_adj_order var_alloc_cost_center = ld_var_alloc_cost_center var_alloc_activity = ld_var_alloc_activity negative_flow = ld_negative_flow adjust_inter_clrg_flows = ld_adjust_inter_clrg_flows non_reg_clearing = ld_non_reg_clearing nwa_wbs_assignments = ld_nwa_wbs_assignments profit_center_trace = ld_profit_center_trace profit_center_direct = ld_profit_center_direct profit_center_direct_ledger = ld_profit_center_direct_ledger profit_center_plan_ledger = ld_profit_center_plan_ledger badi = ld_badi EXCEPTIONS NO_PARAMETERS_DEFINED = 1 PARAMETERS_NOT_INITIALIZED = 2 . " FERC_PARAMETERS_GET
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_period  TYPE FERC_R0-PERIO ,
ld_run_id  TYPE FERC_R0-RUN_ID ,
ld_year  TYPE FERC_R0-GJAHR ,
ld_company_code  TYPE T001-BUKRS ,
ld_read_actual_data  TYPE FERC_C1-ACTUAL ,
ld_co_version  TYPE VERSN ,
ld_fi_version  TYPE RVERS ,
ld_doc_type_std_cost  TYPE FE_DTYP_SC ,
ld_doc_type_prim_cost_flow  TYPE FE_DTYP_PL ,
ld_doc_type_direct_post  TYPE FE_DTYP_BS ,
ld_absolut_accuracy  TYPE FE_ACC_ABS ,
ld_relative_accuracy  TYPE FERC_C1-ACC_REL ,
ld_ext_settlement_not_traced  TYPE FERC_C0-EXT_SET ,
ld_dd_paths_criteria  TYPE FERC_C0-NO_ZERO ,
ld_threshold  TYPE FERC_C0-THRESHOLD ,
ld_higher_order_correction  TYPE SY-DATAR ,
ld_no_of_blocking_attempts  TYPE SY-TABIX ,
ld_ignore_sce_allowed  TYPE SY-DATAR ,
ld_std_cost_adjustment  TYPE FERC_C1-STDCOSTADJ ,
ld_variance_allocation  TYPE FE_VAR_ACT ,
ld_ext_settlement_only  TYPE FE_EXTSETT ,
ld_cc_level_assignment  TYPE FE_CC_ASS ,
ld_account_group  TYPE FE_KTOKS ,
ld_cost_center_types  TYPE FE_KOSAR ,
ld_clearing_default  TYPE FE_CLR_CE ,
ld_clearing_benefits  TYPE FE_CLR_CE ,
ld_clearing_payroll  TYPE FE_CLR_CE ,
ld_clearing_max_neg_percent  TYPE FE_CLRG_NEG ,
ld_summarize_object_types  TYPE FE_SUMM_OTYPE ,
ld_summarization_percentage  TYPE FE_SUMM_PRC ,
ld_summarization_amount  TYPE FE_SUMM_AMT ,
ld_paths_max  TYPE FE_PATHS_MAX ,
ld_ferc_relevant  TYPE FE_BUK_REL ,
ld_summarization_threshold  TYPE FE_SUMM_THRESH ,
ld_balance_sheet_offset  TYPE SKA1-SAKNR ,
ld_profit_and_loss_offset  TYPE SKA1-SAKNR ,
ld_in_offset  TYPE SKA1-SAKNR ,
ld_out_offset  TYPE SKA1-SAKNR ,
ld_std_cost_adj_account  TYPE CSKA-KSTAR ,
ld_std_cost_adj_order  TYPE AUFK-AUFNR ,
ld_var_alloc_cost_center  TYPE CSKS-KOSTL ,
ld_var_alloc_activity  TYPE CSLA-LSTAR ,
ld_negative_flow  TYPE FERC_C1-NEG_FLOW ,
ld_adjust_inter_clrg_flows  TYPE FE_ADJ_FLOW ,
ld_non_reg_clearing  TYPE FERC_C0-NREG_CLRG ,
ld_nwa_wbs_assignments  TYPE FERC_C0-NWA_WBS ,
ld_profit_center_trace  TYPE FERC_C0-PRCTR_TRC_0 ,
ld_profit_center_direct  TYPE FERC_C0-PRCTR_DIR_0 ,
ld_profit_center_direct_ledger  TYPE FERC_C0-RLDNR_FROM ,
ld_profit_center_plan_ledger  TYPE FERC_C0-RLDNR_TO_1 ,
ld_badi  TYPE IF_EX_FERC .


SELECT single RUN_ID
FROM FERC_R0
INTO ld_run_id.


SELECT single BUKRS
FROM T001
INTO ld_company_code.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FERC_PARAMETERS_GET or its description.