SAP MATERIAL_COSTS_SPLIT_READ Function Module for
MATERIAL_COSTS_SPLIT_READ is a standard material costs split read 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 material costs split read FM, simply by entering the name MATERIAL_COSTS_SPLIT_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: CMKV
Program Name: SAPLCMKV
Main Program: SAPLCMKV
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MATERIAL_COSTS_SPLIT_READ 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 'MATERIAL_COSTS_SPLIT_READ'".
EXPORTING
MATNR = "Material
WERKS = "Plant
* CSPLIT = ' ' "Apportionment Structure
* DATUM = SY-DATUM "Key Date
* REFRESH_BUFFER = ' ' "
IMPORTING
MAKV_EXP = "Apportionment Structure
COSTS_SPLIT_NOT_VALID = "
TABLES
* TMAKG = "Groupings
* TMAKZ = "Equivalence Numbers
EXCEPTIONS
COSTS_SPLIT_NOT_FOUND = 1
IMPORTING Parameters details for MATERIAL_COSTS_SPLIT_READ
MATNR - Material
Data type: MAKV-MATNROptional: No
Call by Reference: No ( called with pass by value option)
WERKS - Plant
Data type: MAKV-WERKSOptional: No
Call by Reference: No ( called with pass by value option)
CSPLIT - Apportionment Structure
Data type: MAKV-CSPLITDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATUM - Key Date
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
REFRESH_BUFFER -
Data type: CKKVMK-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MATERIAL_COSTS_SPLIT_READ
MAKV_EXP - Apportionment Structure
Data type: MAKVOptional: No
Call by Reference: No ( called with pass by value option)
COSTS_SPLIT_NOT_VALID -
Data type: CKKVMK-SELKZOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MATERIAL_COSTS_SPLIT_READ
TMAKG - Groupings
Data type: MAKGOptional: Yes
Call by Reference: No ( called with pass by value option)
TMAKZ - Equivalence Numbers
Data type: MAKZOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
COSTS_SPLIT_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MATERIAL_COSTS_SPLIT_READ 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_matnr | TYPE MAKV-MATNR, " | |||
| lt_tmakg | TYPE STANDARD TABLE OF MAKG, " | |||
| lv_makv_exp | TYPE MAKV, " | |||
| lv_costs_split_not_found | TYPE MAKV, " | |||
| lt_tmakz | TYPE STANDARD TABLE OF MAKZ, " | |||
| lv_werks | TYPE MAKV-WERKS, " | |||
| lv_costs_split_not_valid | TYPE CKKVMK-SELKZ, " | |||
| lv_csplit | TYPE MAKV-CSPLIT, " SPACE | |||
| lv_datum | TYPE SY-DATUM, " SY-DATUM | |||
| lv_refresh_buffer | TYPE CKKVMK-SELKZ. " SPACE |
|   CALL FUNCTION 'MATERIAL_COSTS_SPLIT_READ' " |
| EXPORTING | ||
| MATNR | = lv_matnr | |
| WERKS | = lv_werks | |
| CSPLIT | = lv_csplit | |
| DATUM | = lv_datum | |
| REFRESH_BUFFER | = lv_refresh_buffer | |
| IMPORTING | ||
| MAKV_EXP | = lv_makv_exp | |
| COSTS_SPLIT_NOT_VALID | = lv_costs_split_not_valid | |
| TABLES | ||
| TMAKG | = lt_tmakg | |
| TMAKZ | = lt_tmakz | |
| EXCEPTIONS | ||
| COSTS_SPLIT_NOT_FOUND = 1 | ||
| . " MATERIAL_COSTS_SPLIT_READ | ||
ABAP code using 7.40 inline data declarations to call FM MATERIAL_COSTS_SPLIT_READ
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 MAKV INTO @DATA(ld_matnr). | ||||
| "SELECT single WERKS FROM MAKV INTO @DATA(ld_werks). | ||||
| "SELECT single SELKZ FROM CKKVMK INTO @DATA(ld_costs_split_not_valid). | ||||
| "SELECT single CSPLIT FROM MAKV INTO @DATA(ld_csplit). | ||||
| DATA(ld_csplit) | = ' '. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_datum). | ||||
| DATA(ld_datum) | = SY-DATUM. | |||
| "SELECT single SELKZ FROM CKKVMK INTO @DATA(ld_refresh_buffer). | ||||
| DATA(ld_refresh_buffer) | = ' '. | |||
Search for further information about these or an SAP related objects