SAP KKEK_CO_OBJECT_CREATE Function Module for









KKEK_CO_OBJECT_CREATE is a standard kkek co object create 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 co object create FM, simply by entering the name KKEK_CO_OBJECT_CREATE 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_CO_OBJECT_CREATE 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_CO_OBJECT_CREATE'"
EXPORTING
KHS1_IMP = "Cost Estimate Header
WRTTP_IMP = "Value Type
* OBART_KOMPONENTE_IMP = "
FLG_ALL_CURR_ACTIV = "
* MATNR_IMP = ' ' "
* FLG_CO_OBJECT_CONDENSED = '0' "
* MESSAGE_ON_SCREEN = ' ' "
KKEA1_IMP = "
AUART_IMP = "Order Type
AUTYP_IMP = "Order Category
KOSTV_IMP = "
GSBER_IMP = "Business Area
VERSN_IMP = "Plan Version
WERKS_IMP = "
PRCTR_IMP = "

IMPORTING
CKCOUEB_EXP = "
FLG_NO_OCURR = "
FLG_NO_TCURR = "
RC = "Return Code

CHANGING
* CO_OBJECT_CHG = "

TABLES
KIS1_IMP = "

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for KKEK_CO_OBJECT_CREATE

KHS1_IMP - Cost Estimate Header

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

WRTTP_IMP - Value Type

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

OBART_KOMPONENTE_IMP -

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

FLG_ALL_CURR_ACTIV -

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

MATNR_IMP -

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

FLG_CO_OBJECT_CONDENSED -

Data type: KKEK0_BOOLEAN
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MESSAGE_ON_SCREEN -

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

KKEA1_IMP -

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

AUART_IMP - Order Type

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

AUTYP_IMP - Order Category

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

KOSTV_IMP -

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

GSBER_IMP - Business Area

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

VERSN_IMP - Plan Version

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

WERKS_IMP -

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

PRCTR_IMP -

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

EXPORTING Parameters details for KKEK_CO_OBJECT_CREATE

CKCOUEB_EXP -

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

FLG_NO_OCURR -

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

FLG_NO_TCURR -

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

RC - Return Code

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

CHANGING Parameters details for KKEK_CO_OBJECT_CREATE

CO_OBJECT_CHG -

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

TABLES Parameters details for KKEK_CO_OBJECT_CREATE

KIS1_IMP -

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

EXCEPTIONS details

ERROR -

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

Copy and paste ABAP code example for KKEK_CO_OBJECT_CREATE 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_error  TYPE STRING, "   
lv_khs1_imp  TYPE KHS1, "   
lt_kis1_imp  TYPE STANDARD TABLE OF KIS1, "   
lv_ckcoueb_exp  TYPE CKCOUEB, "   
lv_co_object_chg  TYPE KKCK_CO_OBJECT, "   
lv_wrttp_imp  TYPE RK70X-WRTTP, "   
lv_obart_komponente_imp  TYPE RK70X-OBART_KOMPONENTE, "   
lv_flg_all_curr_activ  TYPE KKEK0_BOOLEAN, "   
lv_matnr_imp  TYPE KEKO-MATNR, "   SPACE
lv_flg_co_object_condensed  TYPE KKEK0_BOOLEAN, "   '0'
lv_message_on_screen  TYPE RK70EQ-CHAR1, "   ' '
lv_kkea1_imp  TYPE KKEA1, "   
lv_flg_no_ocurr  TYPE KKEK0_BOOLEAN, "   
lv_auart_imp  TYPE RK70X-AUART, "   
lv_flg_no_tcurr  TYPE KKEK0_BOOLEAN, "   
lv_rc  TYPE SY-SUBRC, "   
lv_autyp_imp  TYPE RK70X-AUTYP, "   
lv_kostv_imp  TYPE RK70X-KOSTV, "   
lv_gsber_imp  TYPE RK70X-GSBER, "   
lv_versn_imp  TYPE RK70X-VERSN, "   
lv_werks_imp  TYPE RK70X-WERKS, "   
lv_prctr_imp  TYPE RK70X-PRCTR. "   

  CALL FUNCTION 'KKEK_CO_OBJECT_CREATE'  "
    EXPORTING
         KHS1_IMP = lv_khs1_imp
         WRTTP_IMP = lv_wrttp_imp
         OBART_KOMPONENTE_IMP = lv_obart_komponente_imp
         FLG_ALL_CURR_ACTIV = lv_flg_all_curr_activ
         MATNR_IMP = lv_matnr_imp
         FLG_CO_OBJECT_CONDENSED = lv_flg_co_object_condensed
         MESSAGE_ON_SCREEN = lv_message_on_screen
         KKEA1_IMP = lv_kkea1_imp
         AUART_IMP = lv_auart_imp
         AUTYP_IMP = lv_autyp_imp
         KOSTV_IMP = lv_kostv_imp
         GSBER_IMP = lv_gsber_imp
         VERSN_IMP = lv_versn_imp
         WERKS_IMP = lv_werks_imp
         PRCTR_IMP = lv_prctr_imp
    IMPORTING
         CKCOUEB_EXP = lv_ckcoueb_exp
         FLG_NO_OCURR = lv_flg_no_ocurr
         FLG_NO_TCURR = lv_flg_no_tcurr
         RC = lv_rc
    CHANGING
         CO_OBJECT_CHG = lv_co_object_chg
    TABLES
         KIS1_IMP = lt_kis1_imp
    EXCEPTIONS
        ERROR = 1
. " KKEK_CO_OBJECT_CREATE




ABAP code using 7.40 inline data declarations to call FM KKEK_CO_OBJECT_CREATE

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 WRTTP FROM RK70X INTO @DATA(ld_wrttp_imp).
 
"SELECT single OBART_KOMPONENTE FROM RK70X INTO @DATA(ld_obart_komponente_imp).
 
 
"SELECT single MATNR FROM KEKO INTO @DATA(ld_matnr_imp).
DATA(ld_matnr_imp) = ' '.
 
DATA(ld_flg_co_object_condensed) = '0'.
 
"SELECT single CHAR1 FROM RK70EQ INTO @DATA(ld_message_on_screen).
DATA(ld_message_on_screen) = ' '.
 
 
 
"SELECT single AUART FROM RK70X INTO @DATA(ld_auart_imp).
 
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_rc).
 
"SELECT single AUTYP FROM RK70X INTO @DATA(ld_autyp_imp).
 
"SELECT single KOSTV FROM RK70X INTO @DATA(ld_kostv_imp).
 
"SELECT single GSBER FROM RK70X INTO @DATA(ld_gsber_imp).
 
"SELECT single VERSN FROM RK70X INTO @DATA(ld_versn_imp).
 
"SELECT single WERKS FROM RK70X INTO @DATA(ld_werks_imp).
 
"SELECT single PRCTR FROM RK70X INTO @DATA(ld_prctr_imp).
 


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!