SAP K_CCA_PRODUCT_COSTING_EXP_PL Function Module for









K_CCA_PRODUCT_COSTING_EXP_PL is a standard k cca product costing exp pl 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 k cca product costing exp pl FM, simply by entering the name K_CCA_PRODUCT_COSTING_EXP_PL into the relevant SAP transaction such as SE37 or SE38.

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



Function K_CCA_PRODUCT_COSTING_EXP_PL 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 'K_CCA_PRODUCT_COSTING_EXP_PL'"
EXPORTING
ID_COAREA = "
ID_USE_CC_TEMPLATE = "
ID_FISCAL_YEAR = "
ID_VERSION = "
ID_COSTCENTER = "
ID_PERIOD_FROM = "
ID_PERIOD_TO = "
* ID_CALL_PROG = 'SAPLKCTV' "
ID_TEMPLATE = "
* ID_CLASS = 'CPI' "

TABLES
ET_TPL_VALUES = "

EXCEPTIONS
OBJECT_NOT_FOUND = 1 ERROR_DURING_EVALUATION = 2 NO_TEMPLATE_FOUND = 3
.



IMPORTING Parameters details for K_CCA_PRODUCT_COSTING_EXP_PL

ID_COAREA -

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

ID_USE_CC_TEMPLATE -

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

ID_FISCAL_YEAR -

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

ID_VERSION -

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

ID_COSTCENTER -

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

ID_PERIOD_FROM -

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

ID_PERIOD_TO -

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

ID_CALL_PROG -

Data type: SY-REPID
Default: 'SAPLKCTV'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ID_TEMPLATE -

Data type: COTPL-TEMPLATE
Optional: No
Call by Reference: Yes

ID_CLASS -

Data type: COTPL-CLASS
Default: 'CPI'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for K_CCA_PRODUCT_COSTING_EXP_PL

ET_TPL_VALUES -

Data type: TPLIC_RSOB_TAB
Optional: No
Call by Reference: Yes

EXCEPTIONS details

OBJECT_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

ERROR_DURING_EVALUATION -

Data type:
Optional: No
Call by Reference: Yes

NO_TEMPLATE_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for K_CCA_PRODUCT_COSTING_EXP_PL 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_id_coarea  TYPE KOKRS, "   
lt_et_tpl_values  TYPE STANDARD TABLE OF TPLIC_RSOB_TAB, "   
lv_object_not_found  TYPE TPLIC_RSOB_TAB, "   
lv_id_use_cc_template  TYPE BOOLE_D, "   
lv_id_fiscal_year  TYPE T009B-BDATJ, "   
lv_error_during_evaluation  TYPE T009B, "   
lv_id_version  TYPE TKA09-VERSN, "   
lv_no_template_found  TYPE TKA09, "   
lv_id_costcenter  TYPE CSKS-KOSTL, "   
lv_id_period_from  TYPE COTPLICVAL-PERIOD, "   
lv_id_period_to  TYPE COTPLICVAL-PERIOD, "   
lv_id_call_prog  TYPE SY-REPID, "   'SAPLKCTV'
lv_id_template  TYPE COTPL-TEMPLATE, "   
lv_id_class  TYPE COTPL-CLASS. "   'CPI'

  CALL FUNCTION 'K_CCA_PRODUCT_COSTING_EXP_PL'  "
    EXPORTING
         ID_COAREA = lv_id_coarea
         ID_USE_CC_TEMPLATE = lv_id_use_cc_template
         ID_FISCAL_YEAR = lv_id_fiscal_year
         ID_VERSION = lv_id_version
         ID_COSTCENTER = lv_id_costcenter
         ID_PERIOD_FROM = lv_id_period_from
         ID_PERIOD_TO = lv_id_period_to
         ID_CALL_PROG = lv_id_call_prog
         ID_TEMPLATE = lv_id_template
         ID_CLASS = lv_id_class
    TABLES
         ET_TPL_VALUES = lt_et_tpl_values
    EXCEPTIONS
        OBJECT_NOT_FOUND = 1
        ERROR_DURING_EVALUATION = 2
        NO_TEMPLATE_FOUND = 3
. " K_CCA_PRODUCT_COSTING_EXP_PL




ABAP code using 7.40 inline data declarations to call FM K_CCA_PRODUCT_COSTING_EXP_PL

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 BDATJ FROM T009B INTO @DATA(ld_id_fiscal_year).
 
 
"SELECT single VERSN FROM TKA09 INTO @DATA(ld_id_version).
 
 
"SELECT single KOSTL FROM CSKS INTO @DATA(ld_id_costcenter).
 
"SELECT single PERIOD FROM COTPLICVAL INTO @DATA(ld_id_period_from).
 
"SELECT single PERIOD FROM COTPLICVAL INTO @DATA(ld_id_period_to).
 
"SELECT single REPID FROM SY INTO @DATA(ld_id_call_prog).
DATA(ld_id_call_prog) = 'SAPLKCTV'.
 
"SELECT single TEMPLATE FROM COTPL INTO @DATA(ld_id_template).
 
"SELECT single CLASS FROM COTPL INTO @DATA(ld_id_class).
DATA(ld_id_class) = 'CPI'.
 


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!