SAP FC_CALCULATE_MISSING_VALUES Function Module for
FC_CALCULATE_MISSING_VALUES is a standard fc calculate missing values SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 fc calculate missing values FM, simply by entering the name FC_CALCULATE_MISSING_VALUES into the relevant SAP transaction such as SE37 or SE38.
Function Group: FC04
Program Name: SAPLFC04
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FC_CALCULATE_MISSING_VALUES 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 'FC_CALCULATE_MISSING_VALUES'".
EXPORTING
ED_DIMEN = "
ED_RLDNR = "
ED_RVERS = "
ED_BUNIT = "
ED_RYEAR = "
ED_PERID = "
* ED_CTYPE = "
ED_LCURR = "
ED_GCURR = "
CHANGING
CD_LCVAL = "
CD_GCVAL = "
CD_CRATE = "
* CD_LFACT = "
* CD_GFACT = "
* CT_MESSAGE = "
IMPORTING Parameters details for FC_CALCULATE_MISSING_VALUES
ED_DIMEN -
Data type: FC_DIMENOptional: No
Call by Reference: No ( called with pass by value option)
ED_RLDNR -
Data type: FC_RLDNROptional: No
Call by Reference: No ( called with pass by value option)
ED_RVERS -
Data type: FC_RVERSOptional: No
Call by Reference: No ( called with pass by value option)
ED_BUNIT -
Data type: FC_BUNITOptional: No
Call by Reference: No ( called with pass by value option)
ED_RYEAR -
Data type: FC_RYEAROptional: No
Call by Reference: No ( called with pass by value option)
ED_PERID -
Data type: FC_PERIDOptional: No
Call by Reference: No ( called with pass by value option)
ED_CTYPE -
Data type: FC_EXRINDOptional: Yes
Call by Reference: No ( called with pass by value option)
ED_LCURR -
Data type: FC_CURROptional: No
Call by Reference: No ( called with pass by value option)
ED_GCURR -
Data type: FC_CURROptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for FC_CALCULATE_MISSING_VALUES
CD_LCVAL -
Data type: TF630-BKVRCOptional: No
Call by Reference: No ( called with pass by value option)
CD_GCVAL -
Data type: TF630-BKVRCOptional: No
Call by Reference: No ( called with pass by value option)
CD_CRATE -
Data type: TF630-CRATEOptional: No
Call by Reference: No ( called with pass by value option)
CD_LFACT -
Data type: TF660-TFACTOptional: Yes
Call by Reference: No ( called with pass by value option)
CD_GFACT -
Data type: TF660-FFACTOptional: Yes
Call by Reference: No ( called with pass by value option)
CT_MESSAGE -
Data type: FC00_T_MESSAGEOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FC_CALCULATE_MISSING_VALUES 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_cd_lcval | TYPE TF630-BKVRC, " | |||
| lv_ed_dimen | TYPE FC_DIMEN, " | |||
| lv_cd_gcval | TYPE TF630-BKVRC, " | |||
| lv_ed_rldnr | TYPE FC_RLDNR, " | |||
| lv_cd_crate | TYPE TF630-CRATE, " | |||
| lv_ed_rvers | TYPE FC_RVERS, " | |||
| lv_cd_lfact | TYPE TF660-TFACT, " | |||
| lv_ed_bunit | TYPE FC_BUNIT, " | |||
| lv_cd_gfact | TYPE TF660-FFACT, " | |||
| lv_ed_ryear | TYPE FC_RYEAR, " | |||
| lv_ed_perid | TYPE FC_PERID, " | |||
| lv_ct_message | TYPE FC00_T_MESSAGE, " | |||
| lv_ed_ctype | TYPE FC_EXRIND, " | |||
| lv_ed_lcurr | TYPE FC_CURR, " | |||
| lv_ed_gcurr | TYPE FC_CURR. " |
|   CALL FUNCTION 'FC_CALCULATE_MISSING_VALUES' " |
| EXPORTING | ||
| ED_DIMEN | = lv_ed_dimen | |
| ED_RLDNR | = lv_ed_rldnr | |
| ED_RVERS | = lv_ed_rvers | |
| ED_BUNIT | = lv_ed_bunit | |
| ED_RYEAR | = lv_ed_ryear | |
| ED_PERID | = lv_ed_perid | |
| ED_CTYPE | = lv_ed_ctype | |
| ED_LCURR | = lv_ed_lcurr | |
| ED_GCURR | = lv_ed_gcurr | |
| CHANGING | ||
| CD_LCVAL | = lv_cd_lcval | |
| CD_GCVAL | = lv_cd_gcval | |
| CD_CRATE | = lv_cd_crate | |
| CD_LFACT | = lv_cd_lfact | |
| CD_GFACT | = lv_cd_gfact | |
| CT_MESSAGE | = lv_ct_message | |
| . " FC_CALCULATE_MISSING_VALUES | ||
ABAP code using 7.40 inline data declarations to call FM FC_CALCULATE_MISSING_VALUES
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 BKVRC FROM TF630 INTO @DATA(ld_cd_lcval). | ||||
| "SELECT single BKVRC FROM TF630 INTO @DATA(ld_cd_gcval). | ||||
| "SELECT single CRATE FROM TF630 INTO @DATA(ld_cd_crate). | ||||
| "SELECT single TFACT FROM TF660 INTO @DATA(ld_cd_lfact). | ||||
| "SELECT single FFACT FROM TF660 INTO @DATA(ld_cd_gfact). | ||||
Search for further information about these or an SAP related objects