SAP CK_F_MATERIAL_CALC_DISPLAY Function Module for
CK_F_MATERIAL_CALC_DISPLAY is a standard ck f material calc display 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 ck f material calc display FM, simply by entering the name CK_F_MATERIAL_CALC_DISPLAY into the relevant SAP transaction such as SE37 or SE38.
Function Group: CKDI
Program Name: SAPLCKDI
Main Program: SAPLCKDI
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CK_F_MATERIAL_CALC_DISPLAY 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 'CK_F_MATERIAL_CALC_DISPLAY'".
EXPORTING
* KLVAR = "
* MATNR = "Material
* WERKS = "Plant
* LTYPE = "Configured material (stockable type)
* WRKLT = "Plant (Variant)
* TVERS = "
* AMDAT = "
* KALNR_BA = "
* NO_CREATE = 'X' "Create Not Allowed
TABLES
* T_KEKO_IMP = "Product Costing - Header Data
* T_FCODE_IMP = "Inactive Function Codes
EXCEPTIONS
WRONG_CALL = 1
IMPORTING Parameters details for CK_F_MATERIAL_CALC_DISPLAY
KLVAR -
Data type: KEKO-KLVAROptional: Yes
Call by Reference: No ( called with pass by value option)
MATNR - Material
Data type: MARA-MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
WERKS - Plant
Data type: MARC-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
LTYPE - Configured material (stockable type)
Data type: KEKO-TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
WRKLT - Plant (Variant)
Data type: KEKO-WRKLTOptional: Yes
Call by Reference: No ( called with pass by value option)
TVERS -
Data type: KEKO-TVERSOptional: Yes
Call by Reference: No ( called with pass by value option)
AMDAT -
Data type: CKI64A-AMDATOptional: Yes
Call by Reference: No ( called with pass by value option)
KALNR_BA -
Data type: CKI64A-KALNR_BAOptional: Yes
Call by Reference: No ( called with pass by value option)
NO_CREATE - Create Not Allowed
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CK_F_MATERIAL_CALC_DISPLAY
T_KEKO_IMP - Product Costing - Header Data
Data type: KEKOOptional: Yes
Call by Reference: Yes
T_FCODE_IMP - Inactive Function Codes
Data type: CK_FCODEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
WRONG_CALL - Incorrect Call
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CK_F_MATERIAL_CALC_DISPLAY 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_klvar | TYPE KEKO-KLVAR, " | |||
| lt_t_keko_imp | TYPE STANDARD TABLE OF KEKO, " | |||
| lv_wrong_call | TYPE KEKO, " | |||
| lv_matnr | TYPE MARA-MATNR, " | |||
| lt_t_fcode_imp | TYPE STANDARD TABLE OF CK_FCODE, " | |||
| lv_werks | TYPE MARC-WERKS, " | |||
| lv_ltype | TYPE KEKO-TYPE, " | |||
| lv_wrklt | TYPE KEKO-WRKLT, " | |||
| lv_tvers | TYPE KEKO-TVERS, " | |||
| lv_amdat | TYPE CKI64A-AMDAT, " | |||
| lv_kalnr_ba | TYPE CKI64A-KALNR_BA, " | |||
| lv_no_create | TYPE C. " 'X' |
|   CALL FUNCTION 'CK_F_MATERIAL_CALC_DISPLAY' " |
| EXPORTING | ||
| KLVAR | = lv_klvar | |
| MATNR | = lv_matnr | |
| WERKS | = lv_werks | |
| LTYPE | = lv_ltype | |
| WRKLT | = lv_wrklt | |
| TVERS | = lv_tvers | |
| AMDAT | = lv_amdat | |
| KALNR_BA | = lv_kalnr_ba | |
| NO_CREATE | = lv_no_create | |
| TABLES | ||
| T_KEKO_IMP | = lt_t_keko_imp | |
| T_FCODE_IMP | = lt_t_fcode_imp | |
| EXCEPTIONS | ||
| WRONG_CALL = 1 | ||
| . " CK_F_MATERIAL_CALC_DISPLAY | ||
ABAP code using 7.40 inline data declarations to call FM CK_F_MATERIAL_CALC_DISPLAY
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 KLVAR FROM KEKO INTO @DATA(ld_klvar). | ||||
| "SELECT single MATNR FROM MARA INTO @DATA(ld_matnr). | ||||
| "SELECT single WERKS FROM MARC INTO @DATA(ld_werks). | ||||
| "SELECT single TYPE FROM KEKO INTO @DATA(ld_ltype). | ||||
| "SELECT single WRKLT FROM KEKO INTO @DATA(ld_wrklt). | ||||
| "SELECT single TVERS FROM KEKO INTO @DATA(ld_tvers). | ||||
| "SELECT single AMDAT FROM CKI64A INTO @DATA(ld_amdat). | ||||
| "SELECT single KALNR_BA FROM CKI64A INTO @DATA(ld_kalnr_ba). | ||||
| DATA(ld_no_create) | = 'X'. | |||
Search for further information about these or an SAP related objects