SAP FBICRC_GET_LAST_DIFF Function Module for Determine Last Valid Difference
FBICRC_GET_LAST_DIFF is a standard fbicrc get last diff SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine Last Valid Difference 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 fbicrc get last diff FM, simply by entering the name FBICRC_GET_LAST_DIFF into the relevant SAP transaction such as SE37 or SE38.
Function Group: FB_ICRC_SERVICES
Program Name: SAPLFB_ICRC_SERVICES
Main Program: SAPLFB_ICRC_SERVICES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function FBICRC_GET_LAST_DIFF 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 'FBICRC_GET_LAST_DIFF'"Determine Last Valid Difference.
EXPORTING
ED_RPROC = "Reconciliation Process
ED_RYEAR = "Fiscal Year
ED_POPER = "Posting period
* ED_FYVAR = "Fiscal Year Variant
ED_RVERS = "Version
ED_DCURR = "Currency Key
IMPORTING
IS_STRUCTDEF = "Structure
TABLES
CT_DATA = "Cluster Table
ET_RA_RCOMP = "SELECT-OPTIONS Table
* IT_STRUCTDEF = "DDIC Definition
* IT_MESSAGE = "Messages
EXCEPTIONS
EXC_PARAMETERS_INCOMPLETE = 1 EXC_DDIC_INCOMPLETE = 2 EXC_RPROC_INCOMPLETE = 3 EXC_FYVAR_MAP_IMPOSSIBLE = 4
IMPORTING Parameters details for FBICRC_GET_LAST_DIFF
ED_RPROC - Reconciliation Process
Data type: FB_RC_RPROCOptional: No
Call by Reference: No ( called with pass by value option)
ED_RYEAR - Fiscal Year
Data type: GJAHROptional: No
Call by Reference: No ( called with pass by value option)
ED_POPER - Posting period
Data type: POPEROptional: No
Call by Reference: No ( called with pass by value option)
ED_FYVAR - Fiscal Year Variant
Data type: PERIVOptional: Yes
Call by Reference: No ( called with pass by value option)
ED_RVERS - Version
Data type: RVERSOptional: No
Call by Reference: No ( called with pass by value option)
ED_DCURR - Currency Key
Data type: WAERSOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FBICRC_GET_LAST_DIFF
IS_STRUCTDEF - Structure
Data type: DD02VOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FBICRC_GET_LAST_DIFF
CT_DATA - Cluster Table
Data type: FBRC_T_CLUSTROptional: No
Call by Reference: Yes
ET_RA_RCOMP - SELECT-OPTIONS Table
Data type: RSELOPTIONOptional: No
Call by Reference: Yes
IT_STRUCTDEF - DDIC Definition
Data type: FBRC_T_DD03POptional: Yes
Call by Reference: Yes
IT_MESSAGE - Messages
Data type: TSMESGOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
EXC_PARAMETERS_INCOMPLETE - Obligatory Parameters Not Supplied
Data type:Optional: No
Call by Reference: Yes
EXC_DDIC_INCOMPLETE - Necessary DDIC Structures Do Not Exist
Data type:Optional: No
Call by Reference: Yes
EXC_RPROC_INCOMPLETE - Reconciliation Properties Are Incomplete
Data type:Optional: No
Call by Reference: Yes
EXC_FYVAR_MAP_IMPOSSIBLE - Fiscal Year Variant Mapping Impossible
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FBICRC_GET_LAST_DIFF 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: | ||||
| lt_ct_data | TYPE STANDARD TABLE OF FBRC_T_CLUSTR, " | |||
| lv_ed_rproc | TYPE FB_RC_RPROC, " | |||
| lv_is_structdef | TYPE DD02V, " | |||
| lv_exc_parameters_incomplete | TYPE DD02V, " | |||
| lv_ed_ryear | TYPE GJAHR, " | |||
| lt_et_ra_rcomp | TYPE STANDARD TABLE OF RSELOPTION, " | |||
| lv_exc_ddic_incomplete | TYPE RSELOPTION, " | |||
| lv_ed_poper | TYPE POPER, " | |||
| lt_it_structdef | TYPE STANDARD TABLE OF FBRC_T_DD03P, " | |||
| lv_exc_rproc_incomplete | TYPE FBRC_T_DD03P, " | |||
| lv_ed_fyvar | TYPE PERIV, " | |||
| lt_it_message | TYPE STANDARD TABLE OF TSMESG, " | |||
| lv_exc_fyvar_map_impossible | TYPE TSMESG, " | |||
| lv_ed_rvers | TYPE RVERS, " | |||
| lv_ed_dcurr | TYPE WAERS. " |
|   CALL FUNCTION 'FBICRC_GET_LAST_DIFF' "Determine Last Valid Difference |
| EXPORTING | ||
| ED_RPROC | = lv_ed_rproc | |
| ED_RYEAR | = lv_ed_ryear | |
| ED_POPER | = lv_ed_poper | |
| ED_FYVAR | = lv_ed_fyvar | |
| ED_RVERS | = lv_ed_rvers | |
| ED_DCURR | = lv_ed_dcurr | |
| IMPORTING | ||
| IS_STRUCTDEF | = lv_is_structdef | |
| TABLES | ||
| CT_DATA | = lt_ct_data | |
| ET_RA_RCOMP | = lt_et_ra_rcomp | |
| IT_STRUCTDEF | = lt_it_structdef | |
| IT_MESSAGE | = lt_it_message | |
| EXCEPTIONS | ||
| EXC_PARAMETERS_INCOMPLETE = 1 | ||
| EXC_DDIC_INCOMPLETE = 2 | ||
| EXC_RPROC_INCOMPLETE = 3 | ||
| EXC_FYVAR_MAP_IMPOSSIBLE = 4 | ||
| . " FBICRC_GET_LAST_DIFF | ||
ABAP code using 7.40 inline data declarations to call FM FBICRC_GET_LAST_DIFF
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.Search for further information about these or an SAP related objects