SAP CK_F_ASSEMBLY_COSTING Function Module for
CK_F_ASSEMBLY_COSTING is a standard ck f assembly 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 assembly costing FM, simply by entering the name CK_F_ASSEMBLY_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_ASSEMBLY_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_ASSEMBLY_COSTING'".
EXPORTING
F_KVMK = "Assembly to be costed
* GLEICHTEILE = '0' "
* KZBWS = ' ' "
* CYCLE_FLG = ' ' "
* CYCLE_FLG2 = ' ' "
KALKSCHEMA = "Costing sheet --> Overhead
* LOBEZUS_IMP = ' ' "Surcharge with subcontracting
* SOBES_IMP = ' ' "Special procurement type
* UEBID_IMP = ' ' "ID of transfer control
* TOP_POSITION = ' ' "
* TOP_LEVEL = ' ' "
* BZOBJ = '0' "
KLVAR = "
IMPORTING
F_KVMK_EXP = "Enriched with information
VORGANGSNUMMER = "Operation number for repetitive mfg
TEMPLATE_EXP = "
EXCEPTIONS
NO_COSTING = 1
IMPORTING Parameters details for CK_F_ASSEMBLY_COSTING
F_KVMK - Assembly to be costed
Data type: CKKVMKOptional: No
Call by Reference: No ( called with pass by value option)
GLEICHTEILE -
Data type: NDefault: '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)
CYCLE_FLG -
Data type: SY-BATCHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CYCLE_FLG2 -
Data type: CKI64A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KALKSCHEMA - Costing sheet --> Overhead
Data type: TCK05-KALSMOptional: No
Call by Reference: No ( called with pass by value option)
LOBEZUS_IMP - Surcharge with subcontracting
Data type: TCK05-LOBEZUSDefault: 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)
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)
KLVAR -
Data type: KEKO-KLVAROptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CK_F_ASSEMBLY_COSTING
F_KVMK_EXP - Enriched with information
Data type: CKKVMKOptional: No
Call by Reference: No ( called with pass by value option)
VORGANGSNUMMER - Operation number for repetitive mfg
Data type: CAUFVD-AUFPLOptional: 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)
Copy and paste ABAP code example for CK_F_ASSEMBLY_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_gleichteile | TYPE N, " '0' | |||
| lv_kzbws | TYPE MSEG-KZBWS, " SPACE | |||
| lv_cycle_flg | TYPE SY-BATCH, " SPACE | |||
| lv_cycle_flg2 | TYPE CKI64A-SELKZ, " SPACE | |||
| lv_kalkschema | TYPE TCK05-KALSM, " | |||
| lv_vorgangsnummer | TYPE CAUFVD-AUFPL, " | |||
| lv_lobezus_imp | TYPE TCK05-LOBEZUS, " SPACE | |||
| lv_template_exp | TYPE COTPL-TEMPLATE, " | |||
| lv_sobes_imp | TYPE T460A-SOBES, " 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_klvar | TYPE KEKO-KLVAR. " |
|   CALL FUNCTION 'CK_F_ASSEMBLY_COSTING' " |
| EXPORTING | ||
| F_KVMK | = lv_f_kvmk | |
| GLEICHTEILE | = lv_gleichteile | |
| KZBWS | = lv_kzbws | |
| CYCLE_FLG | = lv_cycle_flg | |
| CYCLE_FLG2 | = lv_cycle_flg2 | |
| KALKSCHEMA | = lv_kalkschema | |
| LOBEZUS_IMP | = lv_lobezus_imp | |
| SOBES_IMP | = lv_sobes_imp | |
| UEBID_IMP | = lv_uebid_imp | |
| TOP_POSITION | = lv_top_position | |
| TOP_LEVEL | = lv_top_level | |
| BZOBJ | = lv_bzobj | |
| KLVAR | = lv_klvar | |
| IMPORTING | ||
| F_KVMK_EXP | = lv_f_kvmk_exp | |
| VORGANGSNUMMER | = lv_vorgangsnummer | |
| TEMPLATE_EXP | = lv_template_exp | |
| EXCEPTIONS | ||
| NO_COSTING = 1 | ||
| . " CK_F_ASSEMBLY_COSTING | ||
ABAP code using 7.40 inline data declarations to call FM CK_F_ASSEMBLY_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.| DATA(ld_gleichteile) | = '0'. | |||
| "SELECT single KZBWS FROM MSEG INTO @DATA(ld_kzbws). | ||||
| DATA(ld_kzbws) | = ' '. | |||
| "SELECT single BATCH FROM SY INTO @DATA(ld_cycle_flg). | ||||
| DATA(ld_cycle_flg) | = ' '. | |||
| "SELECT single SELKZ FROM CKI64A INTO @DATA(ld_cycle_flg2). | ||||
| DATA(ld_cycle_flg2) | = ' '. | |||
| "SELECT single KALSM FROM TCK05 INTO @DATA(ld_kalkschema). | ||||
| "SELECT single AUFPL FROM CAUFVD INTO @DATA(ld_vorgangsnummer). | ||||
| "SELECT single LOBEZUS FROM TCK05 INTO @DATA(ld_lobezus_imp). | ||||
| DATA(ld_lobezus_imp) | = ' '. | |||
| "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 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 KLVAR FROM KEKO INTO @DATA(ld_klvar). | ||||
Search for further information about these or an SAP related objects