SAP CKKA_COSTING_PROCESS Function Module for









CKKA_COSTING_PROCESS is a standard ckka costing process 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 ckka costing process FM, simply by entering the name CKKA_COSTING_PROCESS into the relevant SAP transaction such as SE37 or SE38.

Function Group: CKKA
Program Name: SAPLCKKA
Main Program: SAPLCKKA
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CKKA_COSTING_PROCESS 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 'CKKA_COSTING_PROCESS'"
EXPORTING
I_RK70S = "
* S_ONLY_CHECK_VO = ' ' "
* I_SOBKZ = "Special Stock Indicator
* I_PS_PSP_PNR = "Work Breakdown Structure Element (WBS Element)
I_T459K = "
* I_VBELN = ' ' "
* I_POSNR = '000000' "
* I_VVBELN = ' ' "
* I_VPOSNR = '000000' "
I_CUOBJ = "
* I_TECHS = ' ' "
* S_DUNKEL = ' ' "

IMPORTING
E_RK70SOUT = "
E_COSTING_TO_SAVE = "
SAVE_FLG = "

EXCEPTIONS
FATAL_ERROR = 1
.



IMPORTING Parameters details for CKKA_COSTING_PROCESS

I_RK70S -

Data type: RK70S
Optional: No
Call by Reference: No ( called with pass by value option)

S_ONLY_CHECK_VO -

Data type: CKI64A-SELKZ
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SOBKZ - Special Stock Indicator

Data type: VBAP-SOBKZ
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PS_PSP_PNR - Work Breakdown Structure Element (WBS Element)

Data type: VBAP-PS_PSP_PNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_T459K -

Data type: T459K
Optional: No
Call by Reference: No ( called with pass by value option)

I_VBELN -

Data type: RK70_KKEA-VBELN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_POSNR -

Data type: RK70_KKEA-POSNR
Default: '000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VVBELN -

Data type: RK70_KKEA-VBELN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VPOSNR -

Data type: RK70_KKEA-POSNR
Default: '000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CUOBJ -

Data type: KEKO-CUOBJ
Optional: No
Call by Reference: No ( called with pass by value option)

I_TECHS -

Data type: KEKO-TECHS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

S_DUNKEL -

Data type: CKI64A-SELKZ
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CKKA_COSTING_PROCESS

E_RK70SOUT -

Data type: RK70SOUT
Optional: No
Call by Reference: No ( called with pass by value option)

E_COSTING_TO_SAVE -

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

SAVE_FLG -

Data type: RK70EQ-CHAR1
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

FATAL_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CKKA_COSTING_PROCESS 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_i_rk70s  TYPE RK70S, "   
lv_e_rk70sout  TYPE RK70SOUT, "   
lv_fatal_error  TYPE RK70SOUT, "   
lv_s_only_check_vo  TYPE CKI64A-SELKZ, "   SPACE
lv_i_sobkz  TYPE VBAP-SOBKZ, "   
lv_i_ps_psp_pnr  TYPE VBAP-PS_PSP_PNR, "   
lv_i_t459k  TYPE T459K, "   
lv_e_costing_to_save  TYPE C, "   
lv_i_vbeln  TYPE RK70_KKEA-VBELN, "   SPACE
lv_save_flg  TYPE RK70EQ-CHAR1, "   
lv_i_posnr  TYPE RK70_KKEA-POSNR, "   '000000'
lv_i_vvbeln  TYPE RK70_KKEA-VBELN, "   SPACE
lv_i_vposnr  TYPE RK70_KKEA-POSNR, "   '000000'
lv_i_cuobj  TYPE KEKO-CUOBJ, "   
lv_i_techs  TYPE KEKO-TECHS, "   SPACE
lv_s_dunkel  TYPE CKI64A-SELKZ. "   SPACE

  CALL FUNCTION 'CKKA_COSTING_PROCESS'  "
    EXPORTING
         I_RK70S = lv_i_rk70s
         S_ONLY_CHECK_VO = lv_s_only_check_vo
         I_SOBKZ = lv_i_sobkz
         I_PS_PSP_PNR = lv_i_ps_psp_pnr
         I_T459K = lv_i_t459k
         I_VBELN = lv_i_vbeln
         I_POSNR = lv_i_posnr
         I_VVBELN = lv_i_vvbeln
         I_VPOSNR = lv_i_vposnr
         I_CUOBJ = lv_i_cuobj
         I_TECHS = lv_i_techs
         S_DUNKEL = lv_s_dunkel
    IMPORTING
         E_RK70SOUT = lv_e_rk70sout
         E_COSTING_TO_SAVE = lv_e_costing_to_save
         SAVE_FLG = lv_save_flg
    EXCEPTIONS
        FATAL_ERROR = 1
. " CKKA_COSTING_PROCESS




ABAP code using 7.40 inline data declarations to call FM CKKA_COSTING_PROCESS

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 SELKZ FROM CKI64A INTO @DATA(ld_s_only_check_vo).
DATA(ld_s_only_check_vo) = ' '.
 
"SELECT single SOBKZ FROM VBAP INTO @DATA(ld_i_sobkz).
 
"SELECT single PS_PSP_PNR FROM VBAP INTO @DATA(ld_i_ps_psp_pnr).
 
 
 
"SELECT single VBELN FROM RK70_KKEA INTO @DATA(ld_i_vbeln).
DATA(ld_i_vbeln) = ' '.
 
"SELECT single CHAR1 FROM RK70EQ INTO @DATA(ld_save_flg).
 
"SELECT single POSNR FROM RK70_KKEA INTO @DATA(ld_i_posnr).
DATA(ld_i_posnr) = '000000'.
 
"SELECT single VBELN FROM RK70_KKEA INTO @DATA(ld_i_vvbeln).
DATA(ld_i_vvbeln) = ' '.
 
"SELECT single POSNR FROM RK70_KKEA INTO @DATA(ld_i_vposnr).
DATA(ld_i_vposnr) = '000000'.
 
"SELECT single CUOBJ FROM KEKO INTO @DATA(ld_i_cuobj).
 
"SELECT single TECHS FROM KEKO INTO @DATA(ld_i_techs).
DATA(ld_i_techs) = ' '.
 
"SELECT single SELKZ FROM CKI64A INTO @DATA(ld_s_dunkel).
DATA(ld_s_dunkel) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!