SAP Reports / Programs | Controlling | Product Cost Controlling | Actual Costing/Material Ledger(CO-PC-ACT) SAP CO

SAPRCKMZ SAP ABAP Report - Material Ledger Data Over Several Periods







SAPRCKMZ is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter SAPRCKMZ into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT SAPRCKMZ. "Basic submit
SUBMIT SAPRCKMZ AND RETURN. "Return to original report after report execution complete
SUBMIT SAPRCKMZ VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: BISJAHR = To Year
Selection Text: BISPER = To Period
Selection Text: BWTART = D Valuation Type
Selection Text: MATERIAL = D Material
Selection Text: P_BUKRS = D Company Code
Selection Text: P_POSNR = Item
Selection Text: P_PSPNR = D WBS Element
Selection Text: P_VARI = D Layout
Selection Text: P_VBELN = D Sales Document
Selection Text: P_WERKS = D Plant
Selection Text: VONJAHR = From Year
Selection Text: VONPER = From Period
Title: Material Ledger Data Over Several Periods
Text Symbol: 005 = Material
Text Symbol: 006 = Valuation Type
Text Symbol: 007 = Base Unit of Measure
Text Symbol: 009 = Price Determination
Text Symbol: 010 = Period selection
Text Symbol: 014 = Currency/Valuation
Text Symbol: 015 = Sales Doc.Item/Item
Text Symbol: 016 = WBS Element
Text Symbol: 017 = Plant
Text Symbol: 018 = Company Code
Text Symbol: 019 = ? ? ? ? ? ? ? ? ?
Text Symbol: 020 = Selection


INCLUDES used within this REPORT SAPRCKMZ

INCLUDE RCKM_PAR_BUKRS_WERKS_ML_PROD. "PARAMETER BUKRS/WERKS


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING I_SAVE = G_SAVE CHANGING CS_VARIANT = XS_VARIANT EXCEPTIONS NOT_FOUND = 2.

CKM8_F4_BWTAR CALL FUNCTION 'CKM8_F4_BWTAR' EXPORTING I_FNAM_MATNR = 'MATERIAL' I_FNAM_BWKEY = H_fnam I_FNAM_VBELN = 'P_VBELN' I_FNAM_POSNR = 'P_POSNR' I_FNAM_PSPNR = 'P_PSPNR' I_RETFIELD = 'BWTAR' I_DYNPPROG = G_repid I_DYNPNR = '1000' I_DYNPROFIELD = 'CKMLHD-BWTAR' * I_STEPL = * I_WINDOW_TITLE = .

CKMH_F_SET_MSG_VARIABLE_MAT CALL FUNCTION 'CKMH_F_SET_MSG_VARIABLE_MAT' EXPORTING * I_KALNR = I_MATNR = material * I_BWTAR = * I_BWKEY = * I_VBELN = * I_POSNR = * I_PSPNR = * I_LIFNR = IMPORTING E_VARIABLE_VALUES = H_Var_values * E_VARIABLE_TEXTS = * E_VALUES_LONG = * EXCEPTIONS * MISSING_INPUT = 1 * INCONSISTENT_INPUT = 2 * INTERNAL_ERROR = 3 * OTHERS = 4 .

CKMH_F_SET_MSG_VARIABLE_MAT CALL FUNCTION 'CKMH_F_SET_MSG_VARIABLE_MAT' EXPORTING * I_KALNR = I_MATNR = material I_BWTAR = bwtart I_BWKEY = bwkreis * I_VBELN = * I_POSNR = * I_PSPNR = * I_LIFNR = IMPORTING E_VARIABLE_VALUES = H_Var_values E_VARIABLE_TEXTS = h_var_texts * E_VALUES_LONG = * EXCEPTIONS * MISSING_INPUT = 1 * INCONSISTENT_INPUT = 2 * INTERNAL_ERROR = 3 * OTHERS = 4 .

CKMH_F_SET_MSG_VARIABLE_MAT CALL FUNCTION 'CKMH_F_SET_MSG_VARIABLE_MAT' EXPORTING * I_KALNR = I_MATNR = material * I_BWTAR = I_BWKEY = bwkreis * I_VBELN = * I_POSNR = * I_PSPNR = * I_LIFNR = IMPORTING E_VARIABLE_VALUES = H_Var_values E_VARIABLE_TEXTS = h_var_texts * E_VALUES_LONG = * EXCEPTIONS * MISSING_INPUT = 1 * INCONSISTENT_INPUT = 2 * INTERNAL_ERROR = 3 * OTHERS = 4 .

CKMH_F_SET_MSG_VARIABLE_MAT CALL FUNCTION 'CKMH_F_SET_MSG_VARIABLE_MAT' EXPORTING * I_KALNR = I_MATNR = material I_BWTAR = bwtart I_BWKEY = bwkreis I_VBELN = P_VBELN I_POSNR = P_POSNR * I_PSPNR = * I_LIFNR = IMPORTING E_VARIABLE_VALUES = H_Var_values E_VARIABLE_TEXTS = h_var_texts * E_VALUES_LONG = * EXCEPTIONS * MISSING_INPUT = 1 * INCONSISTENT_INPUT = 2 * INTERNAL_ERROR = 3 * OTHERS = 4 .

CKMH_F_SET_MSG_VARIABLE_MAT CALL FUNCTION 'CKMH_F_SET_MSG_VARIABLE_MAT' EXPORTING * I_KALNR = I_MATNR = material I_BWTAR = bwtart I_BWKEY = bwkreis * I_VBELN = * I_POSNR = I_PSPNR = P_PSPNR * I_LIFNR = IMPORTING E_VARIABLE_VALUES = H_Var_values E_VARIABLE_TEXTS = h_var_texts * E_VALUES_LONG = * EXCEPTIONS * MISSING_INPUT = 1 * INCONSISTENT_INPUT = 2 * INTERNAL_ERROR = 3 * OTHERS = 4 .

GET_BWKEY_CURRENCY_INFO CALL FUNCTION 'GET_BWKEY_CURRENCY_INFO' EXPORTING BWKEY = BWKREIS * CALL_BY_INIT_PROG = ' ' * I_CUSTOMIZING = ' ' TABLES T_CURTP_FOR_VA = T_CURTP * EXCEPTIONS * BWKEY_NOT_FOUND = 1 * BWKEY_NOT_ACTIVE = 2 * MATLED_NOT_FOUND = 3 * INTERNAL_ERROR = 4 * MORE_THAN_3_CURTP = 5 * OTHERS = 6 .

TP_VALUATION_AUTHORITY CALL FUNCTION 'TP_VALUATION_AUTHORITY' EXPORTING I_BWKEY = BWKREIS I_CVTYP = T_CURTP-CURTP * I_ACTVT = '03' IMPORTING E_XAUTH = H_XAUTH EXCEPTIONS KOKRS_FINDING_ERROR = 1 VALUTYP_FINDING_ERROR = 2 INSUFFICIENT_INPUT_FOR_KOKRS = 3 INSUFFICIENT_INPUT_FOR_VALUTYP = 4 ACTIVITY_NOT_ALLOWED = 5 OTHERS = 6 .

CKMS_HEADER_READ_WITH_ITAB CALL FUNCTION 'CKMS_HEADER_READ_WITH_ITAB' EXPORTING * refresh_buffer = 'X' ENQUEUE_MBEW = ' ' TABLES IN_KALNR = T_KALNR OUT_CKMLHD = T_CKMLHD * OUT_CKMLPR = EXCEPTIONS NO_DATA_FOUND = 1 INPUT_DATA_INCONSISTENT = 2 LOCK_SYSTEM_FAILURE = 3 INTERNAL_ERROR = 4 OTHERS = 5.

CKMS_PERIOD_READ_WITH_ITAB CALL FUNCTION 'CKMS_PERIOD_READ_WITH_ITAB' EXPORTING I_REFRESH_BUFFER = ' ' * I_READ_ONLY_BUFFER = ' ' I_USE_BUFFER = 'X' I_BUILD_SMBEW = ' ' I_BDATJ_1 = VONJAHR I_POPER_1 = VONPER I_BDATJ_2 = BISJAHR I_POPER_2 = BISPER * I_BDATJ_3 = * I_POPER_3 = I_BETWEEN_1_AND_2 = 'X' * I_UNTPER = '000' I_CALL_BY_REPORTING = 'X' I_NO_CHK_PERIODS_COMPLETE = 'X' TABLES T_KALNR = T_KALNR T_CKMLPP = T_CKMLPP T_CKMLCR = T_CKMLCR * T_MISS_CKMLPP = * T_MISS_CKMLCR = EXCEPTIONS NO_DATA_FOUND = 1 INPUT_DATA_INCONSISTENT = 2 BUFFER_INCONSISTENT = 3 OTHERS = 4 .

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING IS_VARIANT = GS_VARIANT * I_TABNAME_HEADER = * I_TABNAME_ITEM = * IT_DEFAULT_FIELDCAT = I_SAVE = G_SAVE IMPORTING E_EXIT = G_EXIT ES_VARIANT = XS_VARIANT EXCEPTIONS NOT_FOUND = 2.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING I_SAVE = G_SAVE CHANGING CS_VARIANT = XS_VARIANT.

CKML_F_SET_BWKEY CALL FUNCTION 'CKML_F_SET_BWKEY' EXPORTING BWKEY = P_BWKEY EXCEPTIONS BWKEY_NOT_FOUND = 1 INTERNAL_ERROR = 2 OTHERS = 3.

CKML_F_GET_WWO CALL FUNCTION 'CKML_F_GET_WWO' IMPORTING WWO = F_WWO.

CKML_F_CHECK_PRODUCTIVE_FLAG CALL FUNCTION 'CKML_F_CHECK_PRODUCTIVE_FLAG' "P40K026421 EXPORTING "P40K026421 BWKEY = P_BWKEY. "P40K026421

FI_PERIOD_INFO_GET CALL FUNCTION 'FI_PERIOD_INFO_GET' EXPORTING I_BUKRS = F_WWO-BUKRS IMPORTING E_ANZBP = MAXPER * E_ANZSP = * exceptions * OTHERS = 1 .

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING I_DATE = SY-DATUM * I_MONMIT = 00 I_PERIV = F_WWO-PERIV IMPORTING E_BUPER = ACTPER E_GJAHR = ACTJAHR * exceptions * input_false = 1 * t009_notfound = 2 * t009b_notfound = 3 * OTHERS = 4 .

K_KKB_TEXT_READ





CALL FUNCTION 'K_KKB_TEXT_READ' EXPORTING GTE_FIELD = 'BUKRS' GTE_VALUE = p_bukrs * GTE_LANGU = * I_STRUCTURE = IMPORTING * GTE_KTEXT = GTE_LTEXT = H_LTEXT * TABLES * T_KIS1 = * T_ITEMS = * EXCEPTIONS * NOT_FOUND = 1 * INPUT_INCOMPLETE = 2 * OTHERS = 3 .

K_KKB_TEXT_READ CALL FUNCTION 'K_KKB_TEXT_READ' EXPORTING GTE_FIELD = 'WERKS' GTE_VALUE = p_werks * GTE_LANGU = * I_STRUCTURE = IMPORTING * GTE_KTEXT = GTE_LTEXT = h_ltext * TABLES * T_KIS1 = * T_ITEMS = * EXCEPTIONS * NOT_FOUND = 1 * INPUT_INCOMPLETE = 2 * OTHERS = 3 .

K_KKB_TEXT_READ CALL FUNCTION 'K_KKB_TEXT_READ' EXPORTING GTE_FIELD = 'MEINH' GTE_VALUE = mara-meins * GTE_LANGU = * I_STRUCTURE = IMPORTING GTE_KTEXT = h_ktext * GTE_LTEXT = * TABLES * T_KIS1 = * T_ITEMS = * EXCEPTIONS * NOT_FOUND = 1 * INPUT_INCOMPLETE = 2 * OTHERS = 3 .



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name SAPRCKMZ or its description.