SAP KKEK_ABC_XPOS_CREATE_CM Function Module for









KKEK_ABC_XPOS_CREATE_CM is a standard kkek abc xpos create cm 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 kkek abc xpos create cm FM, simply by entering the name KKEK_ABC_XPOS_CREATE_CM into the relevant SAP transaction such as SE37 or SE38.

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



Function KKEK_ABC_XPOS_CREATE_CM 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 'KKEK_ABC_XPOS_CREATE_CM'"
EXPORTING
* KOKRS_IMP = "
FLG_COSTING_WQS = "New Input Values
TEMPLATE_IMP = "New Input Values
TPL_CLASS_IMP = "Valid Environments
* DATE_IMP = "
* CO_OBJECT_IMP = "
* VERSN_IMP = "
* PERIV_IMP = "
* ENVIRONMENT_KHS1_IMP = "
* MESSAGE_ON_SCREEN = ' ' "
I_TRACE_OBJECT = "
TEMPLATE_REFERENCE = "PCP: Interface Required for (Cost Estimate) Reference Object

IMPORTING
TEMPLATE_EXP = "
RC = "
T_RESOURCE_CHG = "

TABLES
* T_KIS1_IMP = "Internal Structure CKIS + CKIT

EXCEPTIONS
DATE_TO_PERIOD_CONVERT_FAILED = 1
.



IMPORTING Parameters details for KKEK_ABC_XPOS_CREATE_CM

KOKRS_IMP -

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

FLG_COSTING_WQS - New Input Values

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

TEMPLATE_IMP - New Input Values

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

TPL_CLASS_IMP - Valid Environments

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

DATE_IMP -

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

CO_OBJECT_IMP -

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

VERSN_IMP -

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

PERIV_IMP -

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

ENVIRONMENT_KHS1_IMP -

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

MESSAGE_ON_SCREEN -

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

I_TRACE_OBJECT -

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

TEMPLATE_REFERENCE - PCP: Interface Required for (Cost Estimate) Reference Object

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

EXPORTING Parameters details for KKEK_ABC_XPOS_CREATE_CM

TEMPLATE_EXP -

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

RC -

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

T_RESOURCE_CHG -

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

TABLES Parameters details for KKEK_ABC_XPOS_CREATE_CM

T_KIS1_IMP - Internal Structure CKIS + CKIT

Data type: KIS1
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

DATE_TO_PERIOD_CONVERT_FAILED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for KKEK_ABC_XPOS_CREATE_CM 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_kokrs_imp  TYPE KHS1-KOKRS, "   
lt_t_kis1_imp  TYPE STANDARD TABLE OF KIS1, "   
lv_template_exp  TYPE COTPL-TEMPLATE, "   
lv_date_to_period_convert_failed  TYPE COTPL, "   
lv_flg_costing_wqs  TYPE XFLAG, "   
lv_template_imp  TYPE ABC_TEMPL, "   
lv_tpl_class_imp  TYPE COTPL-CLASS, "   
lv_rc  TYPE SY-SUBRC, "   
lv_date_imp  TYPE KHS1-PSDAT, "   
lv_co_object_imp  TYPE KHS1-OBJNR, "   
lv_t_resource_chg  TYPE CKF_T_RESOURCE_TEMPLATE_AMOUNT, "   
lv_versn_imp  TYPE RK70X-VERSN, "   
lv_periv_imp  TYPE TKA01-LMONA, "   
lv_environment_khs1_imp  TYPE KHS1, "   
lv_message_on_screen  TYPE XFLAG, "   SPACE
lv_i_trace_object  TYPE CHAR30, "   
lv_template_reference  TYPE IF_TEMPLATE_REFERENCE_CK. "   

  CALL FUNCTION 'KKEK_ABC_XPOS_CREATE_CM'  "
    EXPORTING
         KOKRS_IMP = lv_kokrs_imp
         FLG_COSTING_WQS = lv_flg_costing_wqs
         TEMPLATE_IMP = lv_template_imp
         TPL_CLASS_IMP = lv_tpl_class_imp
         DATE_IMP = lv_date_imp
         CO_OBJECT_IMP = lv_co_object_imp
         VERSN_IMP = lv_versn_imp
         PERIV_IMP = lv_periv_imp
         ENVIRONMENT_KHS1_IMP = lv_environment_khs1_imp
         MESSAGE_ON_SCREEN = lv_message_on_screen
         I_TRACE_OBJECT = lv_i_trace_object
         TEMPLATE_REFERENCE = lv_template_reference
    IMPORTING
         TEMPLATE_EXP = lv_template_exp
         RC = lv_rc
         T_RESOURCE_CHG = lv_t_resource_chg
    TABLES
         T_KIS1_IMP = lt_t_kis1_imp
    EXCEPTIONS
        DATE_TO_PERIOD_CONVERT_FAILED = 1
. " KKEK_ABC_XPOS_CREATE_CM




ABAP code using 7.40 inline data declarations to call FM KKEK_ABC_XPOS_CREATE_CM

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 KOKRS FROM KHS1 INTO @DATA(ld_kokrs_imp).
 
 
"SELECT single TEMPLATE FROM COTPL INTO @DATA(ld_template_exp).
 
 
 
 
"SELECT single CLASS FROM COTPL INTO @DATA(ld_tpl_class_imp).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_rc).
 
"SELECT single PSDAT FROM KHS1 INTO @DATA(ld_date_imp).
 
"SELECT single OBJNR FROM KHS1 INTO @DATA(ld_co_object_imp).
 
 
"SELECT single VERSN FROM RK70X INTO @DATA(ld_versn_imp).
 
"SELECT single LMONA FROM TKA01 INTO @DATA(ld_periv_imp).
 
 
DATA(ld_message_on_screen) = ' '.
 
 
 


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!