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

Function CK_F_PROCUREMENT_U_COSTING 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_PROCUREMENT_U_COSTING'".
EXPORTING
F_KVMK = "Assembly to be costed
P_KLVAR = "
* CYCLE_FLG = ' ' "
* KALKSCHEMA = ' ' "Pricing Schema
* SOBES_IMP = ' ' "Special procurement type
* SONDERBESCHAFFUNGSWERK_IMP = ' ' "Procurement plant
* UEBID_IMP = ' ' "ID of transfer control
* TOP_POSITION = ' ' "
* TOP_LEVEL = ' ' "
* BZOBJ = '0' "
* KZBWS = ' ' "
IMPORTING
F_KVMK_EXP = "Enriched with information
TEMPLATE_EXP = "
EXCEPTIONS
NO_COSTING = 1 ERROR_MESSAGE = 2
IMPORTING Parameters details for CK_F_PROCUREMENT_U_COSTING
F_KVMK - Assembly to be costed
Data type: CKKVMKOptional: No
Call by Reference: No ( called with pass by value option)
P_KLVAR -
Data type: TCK03-KLVAROptional: No
Call by Reference: No ( called with pass by value option)
CYCLE_FLG -
Data type: SY-BATCHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KALKSCHEMA - Pricing Schema
Data type: TCK05-KALSMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SOBES_IMP - Special procurement type
Data type: T460A-SOBESDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SONDERBESCHAFFUNGSWERK_IMP - Procurement plant
Data type: T460A-WRK02Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
UEBID_IMP - ID of transfer control
Data type: TCK24-UEBIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TOP_POSITION -
Data type: SY-BATCHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TOP_LEVEL -
Data type: SY-BATCHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
BZOBJ -
Data type: KEKO-BZOBJDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
KZBWS -
Data type: MSEG-KZBWSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CK_F_PROCUREMENT_U_COSTING
F_KVMK_EXP - Enriched with information
Data type: CKKVMKOptional: No
Call by Reference: No ( called with pass by value option)
TEMPLATE_EXP -
Data type: COTPL-TEMPLATEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_COSTING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_MESSAGE -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CK_F_PROCUREMENT_U_COSTING 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_f_kvmk | TYPE CKKVMK, " | |||
| lv_f_kvmk_exp | TYPE CKKVMK, " | |||
| lv_no_costing | TYPE CKKVMK, " | |||
| lv_p_klvar | TYPE TCK03-KLVAR, " | |||
| lv_cycle_flg | TYPE SY-BATCH, " SPACE | |||
| lv_kalkschema | TYPE TCK05-KALSM, " SPACE | |||
| lv_template_exp | TYPE COTPL-TEMPLATE, " | |||
| lv_error_message | TYPE COTPL, " | |||
| lv_sobes_imp | TYPE T460A-SOBES, " SPACE | |||
| lv_sonderbeschaffungswerk_imp | TYPE T460A-WRK02, " SPACE | |||
| lv_uebid_imp | TYPE TCK24-UEBID, " SPACE | |||
| lv_top_position | TYPE SY-BATCH, " SPACE | |||
| lv_top_level | TYPE SY-BATCH, " SPACE | |||
| lv_bzobj | TYPE KEKO-BZOBJ, " '0' | |||
| lv_kzbws | TYPE MSEG-KZBWS. " SPACE |
|   CALL FUNCTION 'CK_F_PROCUREMENT_U_COSTING' " |
| EXPORTING | ||
| F_KVMK | = lv_f_kvmk | |
| P_KLVAR | = lv_p_klvar | |
| CYCLE_FLG | = lv_cycle_flg | |
| KALKSCHEMA | = lv_kalkschema | |
| SOBES_IMP | = lv_sobes_imp | |
| SONDERBESCHAFFUNGSWERK_IMP | = lv_sonderbeschaffungswerk_imp | |
| UEBID_IMP | = lv_uebid_imp | |
| TOP_POSITION | = lv_top_position | |
| TOP_LEVEL | = lv_top_level | |
| BZOBJ | = lv_bzobj | |
| KZBWS | = lv_kzbws | |
| IMPORTING | ||
| F_KVMK_EXP | = lv_f_kvmk_exp | |
| TEMPLATE_EXP | = lv_template_exp | |
| EXCEPTIONS | ||
| NO_COSTING = 1 | ||
| ERROR_MESSAGE = 2 | ||
| . " CK_F_PROCUREMENT_U_COSTING | ||
ABAP code using 7.40 inline data declarations to call FM CK_F_PROCUREMENT_U_COSTING
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 TCK03 INTO @DATA(ld_p_klvar). | ||||
| "SELECT single BATCH FROM SY INTO @DATA(ld_cycle_flg). | ||||
| DATA(ld_cycle_flg) | = ' '. | |||
| "SELECT single KALSM FROM TCK05 INTO @DATA(ld_kalkschema). | ||||
| DATA(ld_kalkschema) | = ' '. | |||
| "SELECT single TEMPLATE FROM COTPL INTO @DATA(ld_template_exp). | ||||
| "SELECT single SOBES FROM T460A INTO @DATA(ld_sobes_imp). | ||||
| DATA(ld_sobes_imp) | = ' '. | |||
| "SELECT single WRK02 FROM T460A INTO @DATA(ld_sonderbeschaffungswerk_imp). | ||||
| DATA(ld_sonderbeschaffungswerk_imp) | = ' '. | |||
| "SELECT single UEBID FROM TCK24 INTO @DATA(ld_uebid_imp). | ||||
| DATA(ld_uebid_imp) | = ' '. | |||
| "SELECT single BATCH FROM SY INTO @DATA(ld_top_position). | ||||
| DATA(ld_top_position) | = ' '. | |||
| "SELECT single BATCH FROM SY INTO @DATA(ld_top_level). | ||||
| DATA(ld_top_level) | = ' '. | |||
| "SELECT single BZOBJ FROM KEKO INTO @DATA(ld_bzobj). | ||||
| DATA(ld_bzobj) | = '0'. | |||
| "SELECT single KZBWS FROM MSEG INTO @DATA(ld_kzbws). | ||||
| DATA(ld_kzbws) | = ' '. | |||
Search for further information about these or an SAP related objects