SAP CK_F_MAT_COST_SELECT_SCREEN Function Module for









CK_F_MAT_COST_SELECT_SCREEN is a standard ck f mat cost select screen 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 ck f mat cost select screen FM, simply by entering the name CK_F_MAT_COST_SELECT_SCREEN into the relevant SAP transaction such as SE37 or SE38.

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



Function CK_F_MAT_COST_SELECT_SCREEN 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 'CK_F_MAT_COST_SELECT_SCREEN'"
EXPORTING
* P_MATNR = "
* P_AMDAT = SY-DATLO "
* S_SUCHE_PLAN_KALKZ = "
* S_SUCHE_PLAN_KALKL = 'X' "
* S_SUCHE_PLAN_KALKV = "
* S_SUCHE_SONSTIGE = "
* S_SUCHE_MIT_DATUM = 'X' "
* S_MIT_MENGENGERUEST = 'X' "
* S_OHNE_MENGENGERUEST = 'X' "
* S_ADDITIVE = "
* S_MIT_ERW_SELEKTION = "
* P_WERKS = "
* S_MIT_SCREEN = 'X' "
* P_WINX1 = 1 "
* P_WINY1 = 1 "
* P_KEKO_ANZAHL_INFO = 30 "
* S_AUSWAHL_MIT_OHNE_ADD = 'X' "
* S_AUSWAHL_ADDITIVE = 'X' "
* S_NO_MKALK_BALTKZ = "
* P_KOKRS = "
* P_CLASS = "
* P_TYPE = "
* P_WRKTYP = "
* P_KLVAR = "
* P_TVERS = "
* P_FEHSTA = 'KA' "

IMPORTING
ANZA_KEKO = "

TABLES
* T_MATNR = "
* T_WERKS = "
* T_CLASS = "
* T_TYPE = "
* T_WRKTYP = "
* T_KLVAR = "
* T_TVERS = "
* T_FEHSTA = "
* T_KEKO = "

EXCEPTIONS
NO_DATA_FOUND = 1 NO_DATA_WANTED = 2 WRONG_CALL = 3 SONSTIGES = 4
.



IMPORTING Parameters details for CK_F_MAT_COST_SELECT_SCREEN

P_MATNR -

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

P_AMDAT -

Data type: CKI64A-AMDAT
Default: SY-DATLO
Optional: Yes
Call by Reference: No ( called with pass by value option)

S_SUCHE_PLAN_KALKZ -

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

S_SUCHE_PLAN_KALKL -

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

S_SUCHE_PLAN_KALKV -

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

S_SUCHE_SONSTIGE -

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

S_SUCHE_MIT_DATUM -

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

S_MIT_MENGENGERUEST -

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

S_OHNE_MENGENGERUEST -

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

S_ADDITIVE -

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

S_MIT_ERW_SELEKTION -

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

P_WERKS -

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

S_MIT_SCREEN -

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

P_WINX1 -

Data type: T185V-WINX1
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_WINY1 -

Data type: T185V-WINY1
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_KEKO_ANZAHL_INFO -

Data type: SY-TFILL
Default: 30
Optional: Yes
Call by Reference: No ( called with pass by value option)

S_AUSWAHL_MIT_OHNE_ADD -

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

S_AUSWAHL_ADDITIVE -

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

S_NO_MKALK_BALTKZ -

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

P_KOKRS -

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

P_CLASS -

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

P_TYPE -

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

P_WRKTYP -

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

P_KLVAR -

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

P_TVERS -

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

P_FEHSTA -

Data type: KEKO-FEH_STA
Default: 'KA'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CK_F_MAT_COST_SELECT_SCREEN

ANZA_KEKO -

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

TABLES Parameters details for CK_F_MAT_COST_SELECT_SCREEN

T_MATNR -

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

T_WERKS -

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

T_CLASS -

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

T_TYPE -

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

T_WRKTYP -

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

T_KLVAR -

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

T_TVERS -

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

T_FEHSTA -

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

T_KEKO -

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

EXCEPTIONS details

NO_DATA_FOUND -

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

NO_DATA_WANTED -

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

WRONG_CALL -

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

SONSTIGES -

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

Copy and paste ABAP code example for CK_F_MAT_COST_SELECT_SCREEN 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_p_matnr  TYPE KEKO-MATNR, "   
lt_t_matnr  TYPE STANDARD TABLE OF KEKO, "   
lv_anza_keko  TYPE SY-TFILL, "   
lv_no_data_found  TYPE SY, "   
lv_p_amdat  TYPE CKI64A-AMDAT, "   SY-DATLO
lv_s_suche_plan_kalkz  TYPE XFELD, "   
lv_s_suche_plan_kalkl  TYPE XFELD, "   'X'
lv_s_suche_plan_kalkv  TYPE XFELD, "   
lv_s_suche_sonstige  TYPE XFELD, "   
lv_s_suche_mit_datum  TYPE XFELD, "   'X'
lv_s_mit_mengengeruest  TYPE XFELD, "   'X'
lv_s_ohne_mengengeruest  TYPE XFELD, "   'X'
lv_s_additive  TYPE XFELD, "   
lv_s_mit_erw_selektion  TYPE XFELD, "   
lv_p_werks  TYPE KEKO-WERKS, "   
lt_t_werks  TYPE STANDARD TABLE OF KEKO, "   
lv_no_data_wanted  TYPE KEKO, "   
lv_s_mit_screen  TYPE XFELD, "   'X'
lv_p_winx1  TYPE T185V-WINX1, "   1
lv_p_winy1  TYPE T185V-WINY1, "   1
lv_p_keko_anzahl_info  TYPE SY-TFILL, "   30
lv_s_auswahl_mit_ohne_add  TYPE XFELD, "   'X'
lv_s_auswahl_additive  TYPE XFELD, "   'X'
lv_s_no_mkalk_baltkz  TYPE XFELD, "   
lv_p_kokrs  TYPE KEKO-KOKRS, "   
lt_t_class  TYPE STANDARD TABLE OF KEKO, "   
lv_wrong_call  TYPE KEKO, "   
lt_t_type  TYPE STANDARD TABLE OF KEKO, "   
lv_p_class  TYPE KLAH-CLASS, "   
lv_sonstiges  TYPE KLAH, "   
lv_p_type  TYPE KEKO-TYPE, "   
lt_t_wrktyp  TYPE STANDARD TABLE OF KEKO, "   
lt_t_klvar  TYPE STANDARD TABLE OF KEKO, "   
lv_p_wrktyp  TYPE KEKO-WRKLT, "   
lv_p_klvar  TYPE KEKO-KLVAR, "   
lt_t_tvers  TYPE STANDARD TABLE OF KEKO, "   
lv_p_tvers  TYPE KEKO-TVERS, "   
lt_t_fehsta  TYPE STANDARD TABLE OF KEKO, "   
lt_t_keko  TYPE STANDARD TABLE OF KEKO, "   
lv_p_fehsta  TYPE KEKO-FEH_STA. "   'KA'

  CALL FUNCTION 'CK_F_MAT_COST_SELECT_SCREEN'  "
    EXPORTING
         P_MATNR = lv_p_matnr
         P_AMDAT = lv_p_amdat
         S_SUCHE_PLAN_KALKZ = lv_s_suche_plan_kalkz
         S_SUCHE_PLAN_KALKL = lv_s_suche_plan_kalkl
         S_SUCHE_PLAN_KALKV = lv_s_suche_plan_kalkv
         S_SUCHE_SONSTIGE = lv_s_suche_sonstige
         S_SUCHE_MIT_DATUM = lv_s_suche_mit_datum
         S_MIT_MENGENGERUEST = lv_s_mit_mengengeruest
         S_OHNE_MENGENGERUEST = lv_s_ohne_mengengeruest
         S_ADDITIVE = lv_s_additive
         S_MIT_ERW_SELEKTION = lv_s_mit_erw_selektion
         P_WERKS = lv_p_werks
         S_MIT_SCREEN = lv_s_mit_screen
         P_WINX1 = lv_p_winx1
         P_WINY1 = lv_p_winy1
         P_KEKO_ANZAHL_INFO = lv_p_keko_anzahl_info
         S_AUSWAHL_MIT_OHNE_ADD = lv_s_auswahl_mit_ohne_add
         S_AUSWAHL_ADDITIVE = lv_s_auswahl_additive
         S_NO_MKALK_BALTKZ = lv_s_no_mkalk_baltkz
         P_KOKRS = lv_p_kokrs
         P_CLASS = lv_p_class
         P_TYPE = lv_p_type
         P_WRKTYP = lv_p_wrktyp
         P_KLVAR = lv_p_klvar
         P_TVERS = lv_p_tvers
         P_FEHSTA = lv_p_fehsta
    IMPORTING
         ANZA_KEKO = lv_anza_keko
    TABLES
         T_MATNR = lt_t_matnr
         T_WERKS = lt_t_werks
         T_CLASS = lt_t_class
         T_TYPE = lt_t_type
         T_WRKTYP = lt_t_wrktyp
         T_KLVAR = lt_t_kltar
         T_TVERS = lt_t_tvers
         T_FEHSTA = lt_t_fehsta
         T_KEKO = lt_t_keko
    EXCEPTIONS
        NO_DATA_FOUND = 1
        NO_DATA_WANTED = 2
        WRONG_CALL = 3
        SONSTIGES = 4
. " CK_F_MAT_COST_SELECT_SCREEN




ABAP code using 7.40 inline data declarations to call FM CK_F_MAT_COST_SELECT_SCREEN

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 MATNR FROM KEKO INTO @DATA(ld_p_matnr).
 
 
"SELECT single TFILL FROM SY INTO @DATA(ld_anza_keko).
 
 
"SELECT single AMDAT FROM CKI64A INTO @DATA(ld_p_amdat).
DATA(ld_p_amdat) = SY-DATLO.
 
 
DATA(ld_s_suche_plan_kalkl) = 'X'.
 
 
 
DATA(ld_s_suche_mit_datum) = 'X'.
 
DATA(ld_s_mit_mengengeruest) = 'X'.
 
DATA(ld_s_ohne_mengengeruest) = 'X'.
 
 
 
"SELECT single WERKS FROM KEKO INTO @DATA(ld_p_werks).
 
 
 
DATA(ld_s_mit_screen) = 'X'.
 
"SELECT single WINX1 FROM T185V INTO @DATA(ld_p_winx1).
DATA(ld_p_winx1) = 1.
 
"SELECT single WINY1 FROM T185V INTO @DATA(ld_p_winy1).
DATA(ld_p_winy1) = 1.
 
"SELECT single TFILL FROM SY INTO @DATA(ld_p_keko_anzahl_info).
DATA(ld_p_keko_anzahl_info) = 30.
 
DATA(ld_s_auswahl_mit_ohne_add) = 'X'.
 
DATA(ld_s_auswahl_additive) = 'X'.
 
 
"SELECT single KOKRS FROM KEKO INTO @DATA(ld_p_kokrs).
 
 
 
 
"SELECT single CLASS FROM KLAH INTO @DATA(ld_p_class).
 
 
"SELECT single TYPE FROM KEKO INTO @DATA(ld_p_type).
 
 
 
"SELECT single WRKLT FROM KEKO INTO @DATA(ld_p_wrktyp).
 
"SELECT single KLVAR FROM KEKO INTO @DATA(ld_p_klvar).
 
 
"SELECT single TVERS FROM KEKO INTO @DATA(ld_p_tvers).
 
 
 
"SELECT single FEH_STA FROM KEKO INTO @DATA(ld_p_fehsta).
DATA(ld_p_fehsta) = 'KA'.
 


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!