SAP CK_F_READ_COSTINGS_AT_ANCHORS Function Module for









CK_F_READ_COSTINGS_AT_ANCHORS is a standard ck f read costings at anchors 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 read costings at anchors FM, simply by entering the name CK_F_READ_COSTINGS_AT_ANCHORS into the relevant SAP transaction such as SE37 or SE38.

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



Function CK_F_READ_COSTINGS_AT_ANCHORS 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_READ_COSTINGS_AT_ANCHORS'"
EXPORTING
P_MATNR = "
F_CKIWERK = "
P_ZUKPER = "
P_ZUKGES = "
P_VALUATION = "
F_MACK4_BWTAR = "

IMPORTING
F_COSTING_TO_MARK = "
F_COSTING_AT_FUT_ANKER = "
F_COSTING_AT_CURR_ANKER = "
F_COSTING_AT_PREV_ANKER = "

TABLES
* T_KEPH_COSTING_TO_MARK = "
T_CKMLPR = "

EXCEPTIONS
COSTING_TO_MARK_INCONSIS = 1 COSTING_AT_FUT_ANKER_INCONSIS = 2 COSTING_AT_CURR_ANKER_INCONSIS = 3 COSTING_AT_PREV_ANKER_INCONSIS = 4
.



IMPORTING Parameters details for CK_F_READ_COSTINGS_AT_ANCHORS

P_MATNR -

Data type: MARC-MATNR
Optional: No
Call by Reference: Yes

F_CKIWERK -

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

P_ZUKPER -

Data type: MBEW-PPRDZ
Optional: No
Call by Reference: Yes

P_ZUKGES -

Data type: MBEW-PDATZ
Optional: No
Call by Reference: Yes

P_VALUATION -

Data type: TCK01-VALUATION
Optional: No
Call by Reference: Yes

F_MACK4_BWTAR -

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

EXPORTING Parameters details for CK_F_READ_COSTINGS_AT_ANCHORS

F_COSTING_TO_MARK -

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

F_COSTING_AT_FUT_ANKER -

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

F_COSTING_AT_CURR_ANKER -

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

F_COSTING_AT_PREV_ANKER -

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

TABLES Parameters details for CK_F_READ_COSTINGS_AT_ANCHORS

T_KEPH_COSTING_TO_MARK -

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

T_CKMLPR -

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

EXCEPTIONS details

COSTING_TO_MARK_INCONSIS -

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

COSTING_AT_FUT_ANKER_INCONSIS -

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

COSTING_AT_CURR_ANKER_INCONSIS -

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

COSTING_AT_PREV_ANKER_INCONSIS -

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

Copy and paste ABAP code example for CK_F_READ_COSTINGS_AT_ANCHORS 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 MARC-MATNR, "   
lv_f_costing_to_mark  TYPE KEKO, "   
lt_t_keph_costing_to_mark  TYPE STANDARD TABLE OF KEPH, "   
lv_costing_to_mark_inconsis  TYPE KEPH, "   
lt_t_ckmlpr  TYPE STANDARD TABLE OF CKMLPR, "   
lv_f_ckiwerk  TYPE CKIWERK, "   
lv_f_costing_at_fut_anker  TYPE KEKO, "   
lv_costing_at_fut_anker_inconsis  TYPE KEKO, "   
lv_p_zukper  TYPE MBEW-PPRDZ, "   
lv_f_costing_at_curr_anker  TYPE KEKO, "   
lv_costing_at_curr_anker_inconsis  TYPE KEKO, "   
lv_p_zukges  TYPE MBEW-PDATZ, "   
lv_f_costing_at_prev_anker  TYPE KEKO, "   
lv_costing_at_prev_anker_inconsis  TYPE KEKO, "   
lv_p_valuation  TYPE TCK01-VALUATION, "   
lv_f_mack4_bwtar  TYPE MACK4. "   

  CALL FUNCTION 'CK_F_READ_COSTINGS_AT_ANCHORS'  "
    EXPORTING
         P_MATNR = lv_p_matnr
         F_CKIWERK = lv_f_ckiwerk
         P_ZUKPER = lv_p_zukper
         P_ZUKGES = lv_p_zukges
         P_VALUATION = lv_p_valuation
         F_MACK4_BWTAR = lv_f_mack4_bwtar
    IMPORTING
         F_COSTING_TO_MARK = lv_f_costing_to_mark
         F_COSTING_AT_FUT_ANKER = lv_f_costing_at_fut_anker
         F_COSTING_AT_CURR_ANKER = lv_f_costing_at_curr_anker
         F_COSTING_AT_PREV_ANKER = lv_f_costing_at_prev_anker
    TABLES
         T_KEPH_COSTING_TO_MARK = lt_t_keph_costing_to_mark
         T_CKMLPR = lt_t_ckmlpr
    EXCEPTIONS
        COSTING_TO_MARK_INCONSIS = 1
        COSTING_AT_FUT_ANKER_INCONSIS = 2
        COSTING_AT_CURR_ANKER_INCONSIS = 3
        COSTING_AT_PREV_ANKER_INCONSIS = 4
. " CK_F_READ_COSTINGS_AT_ANCHORS




ABAP code using 7.40 inline data declarations to call FM CK_F_READ_COSTINGS_AT_ANCHORS

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 MARC INTO @DATA(ld_p_matnr).
 
 
 
 
 
 
 
 
"SELECT single PPRDZ FROM MBEW INTO @DATA(ld_p_zukper).
 
 
 
"SELECT single PDATZ FROM MBEW INTO @DATA(ld_p_zukges).
 
 
 
"SELECT single VALUATION FROM TCK01 INTO @DATA(ld_p_valuation).
 
 


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!