SAP Function Modules

CKTC20_KEKO_GET SAP Function module







CKTC20_KEKO_GET is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CKTC20_KEKO_GET into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CKTC20
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CKTC20_KEKO_GET - CKTC20 KEKO GET





CALL FUNCTION 'CKTC20_KEKO_GET' "
* EXPORTING
*   im_bzobj =                  " ck_obj
*   im_kalka =                  " ck_kalka
*   im_kadky =                  " ck_kadky
*   im_tvers =                  " ck_tvers
*   im_bwvar =                  " ck_bwvar
*   im_cuobj =                  " ck_cuobj
*   im_guid =                   " pvs_guid
* TABLES
*   it_bzobj =                  "
*   it_kalka =                  "
*   it_kadky =                  "
*   it_tvers =                  "
*   it_bwvar =                  "
*   it_guid =                   "
*   it_cuobj =                  "
*   et_keko =                   " keko
*   et_kekokey =                " ckkekokey
  EXCEPTIONS
    NOT_FOUND = 1               "
    WRONG_CALL = 2              "
    .  "  CKTC20_KEKO_GET

ABAP code example for Function Module CKTC20_KEKO_GET





The ABAP code below is a full code listing to execute function module CKTC20_KEKO_GET including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_it_bzobj  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_it_bzobj  LIKE LINE OF it_it_bzobj ,
it_it_kalka  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_it_kalka  LIKE LINE OF it_it_kalka ,
it_it_kadky  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_it_kadky  LIKE LINE OF it_it_kadky ,
it_it_tvers  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_it_tvers  LIKE LINE OF it_it_tvers ,
it_it_bwvar  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_it_bwvar  LIKE LINE OF it_it_bwvar ,
it_it_guid  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_it_guid  LIKE LINE OF it_it_guid ,
it_it_cuobj  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_it_cuobj  LIKE LINE OF it_it_cuobj ,
it_et_keko  TYPE STANDARD TABLE OF KEKO,"TABLES PARAM
wa_et_keko  LIKE LINE OF it_et_keko ,
it_et_kekokey  TYPE STANDARD TABLE OF CKKEKOKEY,"TABLES PARAM
wa_et_kekokey  LIKE LINE OF it_et_kekokey .

DATA(ld_im_bzobj) = 'Check type of data required'.
DATA(ld_im_kalka) = 'Check type of data required'.
DATA(ld_im_kadky) = 'Check type of data required'.
DATA(ld_im_tvers) = 'Check type of data required'.
DATA(ld_im_bwvar) = 'Check type of data required'.
DATA(ld_im_cuobj) = 'Check type of data required'.
DATA(ld_im_guid) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_bzobj to it_it_bzobj.

"populate fields of struture and append to itab
append wa_it_kalka to it_it_kalka.

"populate fields of struture and append to itab
append wa_it_kadky to it_it_kadky.

"populate fields of struture and append to itab
append wa_it_tvers to it_it_tvers.

"populate fields of struture and append to itab
append wa_it_bwvar to it_it_bwvar.

"populate fields of struture and append to itab
append wa_it_guid to it_it_guid.

"populate fields of struture and append to itab
append wa_it_cuobj to it_it_cuobj.

"populate fields of struture and append to itab
append wa_et_keko to it_et_keko.

"populate fields of struture and append to itab
append wa_et_kekokey to it_et_kekokey. . CALL FUNCTION 'CKTC20_KEKO_GET' * EXPORTING * im_bzobj = ld_im_bzobj * im_kalka = ld_im_kalka * im_kadky = ld_im_kadky * im_tvers = ld_im_tvers * im_bwvar = ld_im_bwvar * im_cuobj = ld_im_cuobj * im_guid = ld_im_guid * TABLES * it_bzobj = it_it_bzobj * it_kalka = it_it_kalka * it_kadky = it_it_kadky * it_tvers = it_it_tvers * it_bwvar = it_it_bwvar * it_guid = it_it_guid * it_cuobj = it_it_cuobj * et_keko = it_et_keko * et_kekokey = it_et_kekokey EXCEPTIONS NOT_FOUND = 1 WRONG_CALL = 2 . " CKTC20_KEKO_GET
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_im_bzobj  TYPE CK_OBJ ,
it_it_bzobj  TYPE STANDARD TABLE OF STRING ,
wa_it_bzobj  LIKE LINE OF it_it_bzobj,
ld_im_kalka  TYPE CK_KALKA ,
it_it_kalka  TYPE STANDARD TABLE OF STRING ,
wa_it_kalka  LIKE LINE OF it_it_kalka,
ld_im_kadky  TYPE CK_KADKY ,
it_it_kadky  TYPE STANDARD TABLE OF STRING ,
wa_it_kadky  LIKE LINE OF it_it_kadky,
ld_im_tvers  TYPE CK_TVERS ,
it_it_tvers  TYPE STANDARD TABLE OF STRING ,
wa_it_tvers  LIKE LINE OF it_it_tvers,
ld_im_bwvar  TYPE CK_BWVAR ,
it_it_bwvar  TYPE STANDARD TABLE OF STRING ,
wa_it_bwvar  LIKE LINE OF it_it_bwvar,
ld_im_cuobj  TYPE CK_CUOBJ ,
it_it_guid  TYPE STANDARD TABLE OF STRING ,
wa_it_guid  LIKE LINE OF it_it_guid,
ld_im_guid  TYPE PVS_GUID ,
it_it_cuobj  TYPE STANDARD TABLE OF STRING ,
wa_it_cuobj  LIKE LINE OF it_it_cuobj,
it_et_keko  TYPE STANDARD TABLE OF KEKO ,
wa_et_keko  LIKE LINE OF it_et_keko,
it_et_kekokey  TYPE STANDARD TABLE OF CKKEKOKEY ,
wa_et_kekokey  LIKE LINE OF it_et_kekokey.

ld_im_bzobj = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_bzobj to it_it_bzobj.
ld_im_kalka = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_kalka to it_it_kalka.
ld_im_kadky = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_kadky to it_it_kadky.
ld_im_tvers = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_tvers to it_it_tvers.
ld_im_bwvar = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_bwvar to it_it_bwvar.
ld_im_cuobj = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_guid to it_it_guid.
ld_im_guid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_cuobj to it_it_cuobj.

"populate fields of struture and append to itab
append wa_et_keko to it_et_keko.

"populate fields of struture and append to itab
append wa_et_kekokey to it_et_kekokey.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CKTC20_KEKO_GET or its description.