SAP FERC_PARAMETERS_INIT Function Module for Initialize and read parameters into internal table









FERC_PARAMETERS_INIT is a standard ferc parameters init SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Initialize and read parameters into internal table processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for ferc parameters init FM, simply by entering the name FERC_PARAMETERS_INIT into the relevant SAP transaction such as SE37 or SE38.

Function Group: FE01
Program Name: SAPLFE01
Main Program: SAPLFE01
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FERC_PARAMETERS_INIT pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'FERC_PARAMETERS_INIT'"Initialize and read parameters into internal table
EXPORTING
CONTROLLING_AREA = "Controlling area
YEAR = "Fiscal year
PERIOD = "Period
* RECORD_TYPE = '0' "0 = Actual, 1 = Plan
* VERSION = '001' "Plan version
* FERC_STEP = ' ' "Regulatory procedure
* TEST_RUN = 'X' "Flag: Process with test mode?
* TEST_LOG = ' ' "
* CREATE_RUN_ID = ' ' "Flag: Create new run ID if missing?

IMPORTING
RUN_ID = "Run ID
RUN_NO = "Run number of procedure
CURRENCY = "Currency key
ARCHIVE_SESSION = "Archive session
READ_FROM_ARCHIVE = "Flag: Parameters in archive?
DD_TRC = "Flag: Process drill down for traced accounts?
DD_DIR = "Flag: Process drill down for direct accounts?

TABLES
* FERC_RELEVANT_COMPANY_CODES = "Table with all regulated company codes

EXCEPTIONS
NO_PARAMETERS_DEFINED = 1 PARAMETERS_DELETED = 2 INVALID_FERC_STEP = 3
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLFE01_001 Determine regulatory indicator or specify as clearing object
EXIT_SAPLFE01_002 Specific standard cost adjustment order and cost element of cost center
EXIT_SAPLFE01_004 Check if posting to G/L account is possible

IMPORTING Parameters details for FERC_PARAMETERS_INIT

CONTROLLING_AREA - Controlling area

Data type: TKA01-KOKRS
Optional: No
Call by Reference: No ( called with pass by value option)

YEAR - Fiscal year

Data type: BKPF-GJAHR
Optional: No
Call by Reference: No ( called with pass by value option)

PERIOD - Period

Data type: COEP-PERIO
Optional: No
Call by Reference: No ( called with pass by value option)

RECORD_TYPE - 0 = Actual, 1 = Plan

Data type: GLT0-RRCTY
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

VERSION - Plan version

Data type: TKA09-VERSN
Default: '001'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FERC_STEP - Regulatory procedure

Data type: FERC_L1-STEP
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

TEST_RUN - Flag: Process with test mode?

Data type: SY-DATAR
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TEST_LOG -

Data type: SY-DATAR
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

CREATE_RUN_ID - Flag: Create new run ID if missing?

Data type: SY-DATAR
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FERC_PARAMETERS_INIT

RUN_ID - Run ID

Data type: FERC_R0-RUN_ID
Optional: No
Call by Reference: No ( called with pass by value option)

RUN_NO - Run number of procedure

Data type: FERC_R0-EX_00
Optional: No
Call by Reference: No ( called with pass by value option)

CURRENCY - Currency key

Data type: FERC_R0-WAERS
Optional: No
Call by Reference: No ( called with pass by value option)

ARCHIVE_SESSION - Archive session

Data type: FERC_R0-ADMI_RUN
Optional: No
Call by Reference: No ( called with pass by value option)

READ_FROM_ARCHIVE - Flag: Parameters in archive?

Data type: SY-DATAR
Optional: No
Call by Reference: No ( called with pass by value option)

DD_TRC - Flag: Process drill down for traced accounts?

Data type: SY-DATAR
Optional: No
Call by Reference: No ( called with pass by value option)

DD_DIR - Flag: Process drill down for direct accounts?

Data type: SY-DATAR
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for FERC_PARAMETERS_INIT

FERC_RELEVANT_COMPANY_CODES - Table with all regulated company codes

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_PARAMETERS_DEFINED - No FERC parameters for controlling area found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PARAMETERS_DELETED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INVALID_FERC_STEP -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FERC_PARAMETERS_INIT Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_run_id  TYPE FERC_R0-RUN_ID, "   
lv_controlling_area  TYPE TKA01-KOKRS, "   
lv_no_parameters_defined  TYPE TKA01, "   
lt_ferc_relevant_company_codes  TYPE STANDARD TABLE OF TKA01, "   
lv_year  TYPE BKPF-GJAHR, "   
lv_run_no  TYPE FERC_R0-EX_00, "   
lv_parameters_deleted  TYPE FERC_R0, "   
lv_period  TYPE COEP-PERIO, "   
lv_currency  TYPE FERC_R0-WAERS, "   
lv_invalid_ferc_step  TYPE FERC_R0, "   
lv_record_type  TYPE GLT0-RRCTY, "   '0'
lv_archive_session  TYPE FERC_R0-ADMI_RUN, "   
lv_version  TYPE TKA09-VERSN, "   '001'
lv_read_from_archive  TYPE SY-DATAR, "   
lv_dd_trc  TYPE SY-DATAR, "   
lv_ferc_step  TYPE FERC_L1-STEP, "   ' '
lv_dd_dir  TYPE SY-DATAR, "   
lv_test_run  TYPE SY-DATAR, "   'X'
lv_test_log  TYPE SY-DATAR, "   ' '
lv_create_run_id  TYPE SY-DATAR. "   ' '

  CALL FUNCTION 'FERC_PARAMETERS_INIT'  "Initialize and read parameters into internal table
    EXPORTING
         CONTROLLING_AREA = lv_controlling_area
         YEAR = lv_year
         PERIOD = lv_period
         RECORD_TYPE = lv_record_type
         VERSION = lv_version
         FERC_STEP = lv_ferc_step
         TEST_RUN = lv_test_run
         TEST_LOG = lv_test_log
         CREATE_RUN_ID = lv_create_run_id
    IMPORTING
         RUN_ID = lv_run_id
         RUN_NO = lv_run_no
         CURRENCY = lv_currency
         ARCHIVE_SESSION = lv_archive_session
         READ_FROM_ARCHIVE = lv_read_from_archive
         DD_TRC = lv_dd_trc
         DD_DIR = lv_dd_dir
    TABLES
         FERC_RELEVANT_COMPANY_CODES = lt_ferc_relevant_company_codes
    EXCEPTIONS
        NO_PARAMETERS_DEFINED = 1
        PARAMETERS_DELETED = 2
        INVALID_FERC_STEP = 3
. " FERC_PARAMETERS_INIT




ABAP code using 7.40 inline data declarations to call FM FERC_PARAMETERS_INIT

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single RUN_ID FROM FERC_R0 INTO @DATA(ld_run_id).
 
"SELECT single KOKRS FROM TKA01 INTO @DATA(ld_controlling_area).
 
 
 
"SELECT single GJAHR FROM BKPF INTO @DATA(ld_year).
 
"SELECT single EX_00 FROM FERC_R0 INTO @DATA(ld_run_no).
 
 
"SELECT single PERIO FROM COEP INTO @DATA(ld_period).
 
"SELECT single WAERS FROM FERC_R0 INTO @DATA(ld_currency).
 
 
"SELECT single RRCTY FROM GLT0 INTO @DATA(ld_record_type).
DATA(ld_record_type) = '0'.
 
"SELECT single ADMI_RUN FROM FERC_R0 INTO @DATA(ld_archive_session).
 
"SELECT single VERSN FROM TKA09 INTO @DATA(ld_version).
DATA(ld_version) = '001'.
 
"SELECT single DATAR FROM SY INTO @DATA(ld_read_from_archive).
 
"SELECT single DATAR FROM SY INTO @DATA(ld_dd_trc).
 
"SELECT single STEP FROM FERC_L1 INTO @DATA(ld_ferc_step).
DATA(ld_ferc_step) = ' '.
 
"SELECT single DATAR FROM SY INTO @DATA(ld_dd_dir).
 
"SELECT single DATAR FROM SY INTO @DATA(ld_test_run).
DATA(ld_test_run) = 'X'.
 
"SELECT single DATAR FROM SY INTO @DATA(ld_test_log).
DATA(ld_test_log) = ' '.
 
"SELECT single DATAR FROM SY INTO @DATA(ld_create_run_id).
DATA(ld_create_run_id) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!