SAP FERC_REVERSAL_STEP_GET Function Module for IS-U/FERC: Get the FERC step to be reversed next
FERC_REVERSAL_STEP_GET is a standard ferc reversal step get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-U/FERC: Get the FERC step to be reversed next 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 reversal step get FM, simply by entering the name FERC_REVERSAL_STEP_GET 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_REVERSAL_STEP_GET 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_REVERSAL_STEP_GET'"IS-U/FERC: Get the FERC step to be reversed next.
EXPORTING
CONTROLLING_AREA = "Controlling Area
PERIOD = "Period
YEAR = "Fiscal year
RECORD_TYPE = "Record Type
VERSION = "Version
TEST_RUN = "Perform test run
IMPORTING
RUN_ID = "
RUN_NO = "
ARCHIVE_SESSION = "
REVERSE_DOCUMENT = "
DD_TRC = "
DD_DIR = "
CHANGING
FERC_STEP = "
EXCEPTIONS
NOT_YET_EXECUTED = 1 NO_STEP_TO_BE_REVERSED = 2
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_REVERSAL_STEP_GET
CONTROLLING_AREA - Controlling Area
Data type: KOKRSOptional: No
Call by Reference: No ( called with pass by value option)
PERIOD - Period
Data type: CO_PERIOOptional: No
Call by Reference: No ( called with pass by value option)
YEAR - Fiscal year
Data type: GJAHROptional: No
Call by Reference: No ( called with pass by value option)
RECORD_TYPE - Record Type
Data type: FE_RRCTYOptional: No
Call by Reference: No ( called with pass by value option)
VERSION - Version
Data type: RVERSOptional: No
Call by Reference: No ( called with pass by value option)
TEST_RUN - Perform test run
Data type: TESTLAUFOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FERC_REVERSAL_STEP_GET
RUN_ID -
Data type: FERC_R0-RUN_IDOptional: No
Call by Reference: No ( called with pass by value option)
RUN_NO -
Data type: FERC_R0-EX_00Optional: No
Call by Reference: No ( called with pass by value option)
ARCHIVE_SESSION -
Data type: FERC_R0-ADMI_RUNOptional: No
Call by Reference: No ( called with pass by value option)
REVERSE_DOCUMENT -
Data type: ACCIT-AWREF_REVOptional: No
Call by Reference: No ( called with pass by value option)
DD_TRC -
Data type: SY-DATAROptional: No
Call by Reference: No ( called with pass by value option)
DD_DIR -
Data type: SY-DATAROptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for FERC_REVERSAL_STEP_GET
FERC_STEP -
Data type: FERC_L1-STEPOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_YET_EXECUTED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_STEP_TO_BE_REVERSED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FERC_REVERSAL_STEP_GET 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_ferc_step | TYPE FERC_L1-STEP, " | |||
| lv_controlling_area | TYPE KOKRS, " | |||
| lv_not_yet_executed | TYPE KOKRS, " | |||
| lv_period | TYPE CO_PERIO, " | |||
| lv_run_no | TYPE FERC_R0-EX_00, " | |||
| lv_no_step_to_be_reversed | TYPE FERC_R0, " | |||
| lv_year | TYPE GJAHR, " | |||
| lv_archive_session | TYPE FERC_R0-ADMI_RUN, " | |||
| lv_record_type | TYPE FE_RRCTY, " | |||
| lv_reverse_document | TYPE ACCIT-AWREF_REV, " | |||
| lv_dd_trc | TYPE SY-DATAR, " | |||
| lv_version | TYPE RVERS, " | |||
| lv_dd_dir | TYPE SY-DATAR, " | |||
| lv_test_run | TYPE TESTLAUF. " |
|   CALL FUNCTION 'FERC_REVERSAL_STEP_GET' "IS-U/FERC: Get the FERC step to be reversed next |
| EXPORTING | ||
| CONTROLLING_AREA | = lv_controlling_area | |
| PERIOD | = lv_period | |
| YEAR | = lv_year | |
| RECORD_TYPE | = lv_record_type | |
| VERSION | = lv_version | |
| TEST_RUN | = lv_test_run | |
| IMPORTING | ||
| RUN_ID | = lv_run_id | |
| RUN_NO | = lv_run_no | |
| ARCHIVE_SESSION | = lv_archive_session | |
| REVERSE_DOCUMENT | = lv_reverse_document | |
| DD_TRC | = lv_dd_trc | |
| DD_DIR | = lv_dd_dir | |
| CHANGING | ||
| FERC_STEP | = lv_ferc_step | |
| EXCEPTIONS | ||
| NOT_YET_EXECUTED = 1 | ||
| NO_STEP_TO_BE_REVERSED = 2 | ||
| . " FERC_REVERSAL_STEP_GET | ||
ABAP code using 7.40 inline data declarations to call FM FERC_REVERSAL_STEP_GET
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 STEP FROM FERC_L1 INTO @DATA(ld_ferc_step). | ||||
| "SELECT single EX_00 FROM FERC_R0 INTO @DATA(ld_run_no). | ||||
| "SELECT single ADMI_RUN FROM FERC_R0 INTO @DATA(ld_archive_session). | ||||
| "SELECT single AWREF_REV FROM ACCIT INTO @DATA(ld_reverse_document). | ||||
| "SELECT single DATAR FROM SY INTO @DATA(ld_dd_trc). | ||||
| "SELECT single DATAR FROM SY INTO @DATA(ld_dd_dir). | ||||
Search for further information about these or an SAP related objects