SAP Function Modules

CK_F_KEKOS_SELECTION SAP Function module







CK_F_KEKOS_SELECTION 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 CK_F_KEKOS_SELECTION into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM CK_F_KEKOS_SELECTION - CK F KEKOS SELECTION





CALL FUNCTION 'CK_F_KEKOS_SELECTION' "
  EXPORTING
    maschin =                   " xfeld
    manuell =                   " xfeld
    mimeger =                   " xfeld
    ohmeger =                   " xfeld
    used_for_archive_rel =      " xfeld
*   p_kalaid =                  " ck_kalaid
*   p_kaladat =                 " ck_kaladat
*   bapi_call =                 " xfeld
*   f_kekokey =                 " ckikekokey
  TABLES
    t_keko =                    " cost_keko_itab
*   p_klvar =                   " rsklvar
*   p_tvers =                   " rstvers
*   p_kadat =                   " rskadat
*   p_bidat =                   " rsbidat
*   p_matnr =                   " rsmatnr
*   p_werks =                   " rswerks
*   p_bukrs =                   " rsbukrs
*   p_feh_sta =                 " rsfehsta
*   t_kalaid =                  " bapicostingrun
*   t_kaladat =                 " bapicostingrun_date
    .  "  CK_F_KEKOS_SELECTION

ABAP code example for Function Module CK_F_KEKOS_SELECTION





The ABAP code below is a full code listing to execute function module CK_F_KEKOS_SELECTION 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_t_keko  TYPE STANDARD TABLE OF COST_KEKO_ITAB,"TABLES PARAM
wa_t_keko  LIKE LINE OF it_t_keko ,
it_p_klvar  TYPE STANDARD TABLE OF RSKLVAR,"TABLES PARAM
wa_p_klvar  LIKE LINE OF it_p_klvar ,
it_p_tvers  TYPE STANDARD TABLE OF RSTVERS,"TABLES PARAM
wa_p_tvers  LIKE LINE OF it_p_tvers ,
it_p_kadat  TYPE STANDARD TABLE OF RSKADAT,"TABLES PARAM
wa_p_kadat  LIKE LINE OF it_p_kadat ,
it_p_bidat  TYPE STANDARD TABLE OF RSBIDAT,"TABLES PARAM
wa_p_bidat  LIKE LINE OF it_p_bidat ,
it_p_matnr  TYPE STANDARD TABLE OF RSMATNR,"TABLES PARAM
wa_p_matnr  LIKE LINE OF it_p_matnr ,
it_p_werks  TYPE STANDARD TABLE OF RSWERKS,"TABLES PARAM
wa_p_werks  LIKE LINE OF it_p_werks ,
it_p_bukrs  TYPE STANDARD TABLE OF RSBUKRS,"TABLES PARAM
wa_p_bukrs  LIKE LINE OF it_p_bukrs ,
it_p_feh_sta  TYPE STANDARD TABLE OF RSFEHSTA,"TABLES PARAM
wa_p_feh_sta  LIKE LINE OF it_p_feh_sta ,
it_t_kalaid  TYPE STANDARD TABLE OF BAPICOSTINGRUN,"TABLES PARAM
wa_t_kalaid  LIKE LINE OF it_t_kalaid ,
it_t_kaladat  TYPE STANDARD TABLE OF BAPICOSTINGRUN_DATE,"TABLES PARAM
wa_t_kaladat  LIKE LINE OF it_t_kaladat .

DATA(ld_maschin) = 'Check type of data required'.
DATA(ld_manuell) = 'Check type of data required'.
DATA(ld_mimeger) = 'Check type of data required'.
DATA(ld_ohmeger) = 'Check type of data required'.
DATA(ld_used_for_archive_rel) = 'Check type of data required'.
DATA(ld_p_kalaid) = 'Check type of data required'.
DATA(ld_p_kaladat) = 'Check type of data required'.
DATA(ld_bapi_call) = 'Check type of data required'.
DATA(ld_f_kekokey) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_keko to it_t_keko.

"populate fields of struture and append to itab
append wa_p_klvar to it_p_klvar.

"populate fields of struture and append to itab
append wa_p_tvers to it_p_tvers.

"populate fields of struture and append to itab
append wa_p_kadat to it_p_kadat.

"populate fields of struture and append to itab
append wa_p_bidat to it_p_bidat.

"populate fields of struture and append to itab
append wa_p_matnr to it_p_matnr.

"populate fields of struture and append to itab
append wa_p_werks to it_p_werks.

"populate fields of struture and append to itab
append wa_p_bukrs to it_p_bukrs.

"populate fields of struture and append to itab
append wa_p_feh_sta to it_p_feh_sta.

"populate fields of struture and append to itab
append wa_t_kalaid to it_t_kalaid.

"populate fields of struture and append to itab
append wa_t_kaladat to it_t_kaladat. . CALL FUNCTION 'CK_F_KEKOS_SELECTION' EXPORTING maschin = ld_maschin manuell = ld_manuell mimeger = ld_mimeger ohmeger = ld_ohmeger used_for_archive_rel = ld_used_for_archive_rel * p_kalaid = ld_p_kalaid * p_kaladat = ld_p_kaladat * bapi_call = ld_bapi_call * f_kekokey = ld_f_kekokey TABLES t_keko = it_t_keko * p_klvar = it_p_klvar * p_tvers = it_p_tvers * p_kadat = it_p_kadat * p_bidat = it_p_bidat * p_matnr = it_p_matnr * p_werks = it_p_werks * p_bukrs = it_p_bukrs * p_feh_sta = it_p_feh_sta * t_kalaid = it_t_kalaid * t_kaladat = it_t_kaladat . " CK_F_KEKOS_SELECTION
IF SY-SUBRC EQ 0. "All OK 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_maschin  TYPE XFELD ,
it_t_keko  TYPE STANDARD TABLE OF COST_KEKO_ITAB ,
wa_t_keko  LIKE LINE OF it_t_keko,
ld_manuell  TYPE XFELD ,
it_p_klvar  TYPE STANDARD TABLE OF RSKLVAR ,
wa_p_klvar  LIKE LINE OF it_p_klvar,
ld_mimeger  TYPE XFELD ,
it_p_tvers  TYPE STANDARD TABLE OF RSTVERS ,
wa_p_tvers  LIKE LINE OF it_p_tvers,
ld_ohmeger  TYPE XFELD ,
it_p_kadat  TYPE STANDARD TABLE OF RSKADAT ,
wa_p_kadat  LIKE LINE OF it_p_kadat,
ld_used_for_archive_rel  TYPE XFELD ,
it_p_bidat  TYPE STANDARD TABLE OF RSBIDAT ,
wa_p_bidat  LIKE LINE OF it_p_bidat,
ld_p_kalaid  TYPE CK_KALAID ,
it_p_matnr  TYPE STANDARD TABLE OF RSMATNR ,
wa_p_matnr  LIKE LINE OF it_p_matnr,
ld_p_kaladat  TYPE CK_KALADAT ,
it_p_werks  TYPE STANDARD TABLE OF RSWERKS ,
wa_p_werks  LIKE LINE OF it_p_werks,
ld_bapi_call  TYPE XFELD ,
it_p_bukrs  TYPE STANDARD TABLE OF RSBUKRS ,
wa_p_bukrs  LIKE LINE OF it_p_bukrs,
ld_f_kekokey  TYPE CKIKEKOKEY ,
it_p_feh_sta  TYPE STANDARD TABLE OF RSFEHSTA ,
wa_p_feh_sta  LIKE LINE OF it_p_feh_sta,
it_t_kalaid  TYPE STANDARD TABLE OF BAPICOSTINGRUN ,
wa_t_kalaid  LIKE LINE OF it_t_kalaid,
it_t_kaladat  TYPE STANDARD TABLE OF BAPICOSTINGRUN_DATE ,
wa_t_kaladat  LIKE LINE OF it_t_kaladat.

ld_maschin = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_keko to it_t_keko.
ld_manuell = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_p_klvar to it_p_klvar.
ld_mimeger = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_p_tvers to it_p_tvers.
ld_ohmeger = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_p_kadat to it_p_kadat.
ld_used_for_archive_rel = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_p_bidat to it_p_bidat.
ld_p_kalaid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_p_matnr to it_p_matnr.
ld_p_kaladat = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_p_werks to it_p_werks.
ld_bapi_call = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_p_bukrs to it_p_bukrs.
ld_f_kekokey = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_p_feh_sta to it_p_feh_sta.

"populate fields of struture and append to itab
append wa_t_kalaid to it_t_kalaid.

"populate fields of struture and append to itab
append wa_t_kaladat to it_t_kaladat.

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 CK_F_KEKOS_SELECTION or its description.