SAP Reports / Programs

SAPRCKMU SAP ABAP Report - Consistency Check Between Material Master and Material Ledger







SAPRCKMU 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 SAPRCKMU into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

CKMC - Consistency Check for a Material


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 SAPRCKMU. "Basic submit
SUBMIT SAPRCKMU AND RETURN. "Return to original report after report execution complete
SUBMIT SAPRCKMU 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: S_PEINH = S_PEINH
Selection Text: S_SALK3 = S_SALK3
Selection Text: S_SALKV = S_SALKV
Selection Text: S_STPRS = S_STPRS
Selection Text: S_VERPR = S_VERPR
Selection Text: S_VJCR = S_VJCR
Selection Text: S_VJKUM = S_VJKUM
Selection Text: S_VJPEI = S_VJPEI
Selection Text: S_VJPP = S_VJPP
Selection Text: S_VJSAL = S_VJSAL
Selection Text: S_VJSAV = S_VJSAV
Selection Text: S_VJSTP = S_VJSTP
Selection Text: S_VJVER = S_VJVER
Selection Text: S_VJVPR = S_VJVPR
Selection Text: S_VMCR = S_VMCR
Selection Text: S_VMKUM = S_VMKUM
Selection Text: S_VMPEI = S_VMPEI
Selection Text: S_VMPP = S_VMPP
Selection Text: S_VMSAL = S_VMSAL
Selection Text: S_VMSAV = S_VMSAV
Selection Text: S_VMSTP = S_VMSTP
Selection Text: S_VMVER = S_VMVER
Selection Text: S_VMVPR = S_VMVPR
Selection Text: S_VPRSV = S_VPRSV
Selection Text: S_ZKDAT = S_ZKDAT
Selection Text: S_ZKPRS = S_ZKPRS
Selection Text: P_MAX_ER = D .
Selection Text: S_BUKRS = D .
Selection Text: S_BWTAR = D .
Selection Text: S_LIFNR = D .
Selection Text: S_MATNR = D .
Selection Text: S_POSNR = D .
Selection Text: S_PSPNR = D .
Selection Text: S_VBELN = D .
Selection Text: S_WERKS = D .
Selection Text: S_NOPR = S_NOPR
Selection Text: P_DATUM = Created on
Selection Text: P_KUNGEN = Sales order stock - generic





Selection Text: P_LIFGEN = Vendor
Selection Text: P_LOCK = Set database block
Selection Text: P_PROGEN = Project stock - generic
Selection Text: P_STAT = Check everything
Selection Text: S_ANCH = S_ANCH
Selection Text: S_LBKUM = S_LBKUM
Selection Text: S_LFCR = S_LFCR
Selection Text: S_LFPP = S_LFPP
Selection Text: S_MLAST = S_MLAST
Selection Text: S_NOHD = S_NOHD
Title: Consistency Check Between Material Master and Material Ledger
Text Symbol: 001 = The following materials were blocked and were not checked:
Text Symbol: 002 = The following errors were found:
Text Symbol: 003 = Corrections were made to the following materials:
Text Symbol: 004 = Selected Materials:
Text Symbol: 005 = Incorrect:
Text Symbol: 006 = Corrections:
Text Symbol: 007 = of which not checked:
Text Symbol: 008 = Only materials with transactions after
Text Symbol: 009 = Materials checked
Text Symbol: 010 = Not for productive systems!
Text Symbol: 011 = Continue processing?
Text Symbol: 012 = Caution!
Text Symbol: 013 = The check was completed without database lock
Text Symbol: 014 = Value given = Material valuation minus ML value
Text Symbol: 015 = Processing
Text Symbol: 016 = from
Text Symbol: 017 = Sales order stock/project stock
Text Symbol: 018 = Header Table
Text Symbol: 019 = Price Table
Text Symbol: 020 = Current Period
Text Symbol: 021 = Previous Period
Text Symbol: 022 = Previous Year


INCLUDES used within this REPORT SAPRCKMU

INCLUDE RDSVAS_ABA_SSFSAIF_TYPEINC.


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:

CKML_F_SET_BWKEY CALL FUNCTION 'CKML_F_SET_BWKEY' EXPORTING bwkey = t_t001k-bwkey.

CKML_F_GET_WWO





CALL FUNCTION 'CKML_F_GET_WWO' IMPORTING wwo = f_wwo.

MARV_SINGLE_READ CALL FUNCTION 'MARV_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 bukrs = f_wwo-bukrs IMPORTING wmarv = f_marv EXCEPTIONS not_found = 1 wrong_call = 2 OTHERS = 3.

MAT_PACKAGE_CONSISTENCY_CHECK CALL FUNCTION 'MAT_PACKAGE_CONSISTENCY_CHECK' EXPORTING lf_marv = f_marv s_check_stat = p_stat TABLES t_mat_keys = t_mat_keys t_correct = t_correct t_corrupt = t_corrupt * EXCEPTIONS * no_material_found = 1 * others = 2 .

MAT_PACKAGE_CONSISTENCY_CHECK CALL FUNCTION 'MAT_PACKAGE_CONSISTENCY_CHECK' EXPORTING lf_marv = f_marv s_check_stat = p_stat TABLES t_mat_keys = t_mat_keys t_correct = t_correct t_corrupt = t_corrupt * EXCEPTIONS * no_material_found = 1 * others = 2 .

MAT_PACKAGE_CONSISTENCY_CHECK CALL FUNCTION 'MAT_PACKAGE_CONSISTENCY_CHECK' EXPORTING lf_marv = f_marv s_check_stat = p_stat TABLES t_mat_keys = t_mat_keys t_correct = t_correct t_corrupt = t_corrupt * EXCEPTIONS * no_material_found = 1 * others = 2 .

MAT_PACKAGE_CONSISTENCY_CHECK CALL FUNCTION 'MAT_PACKAGE_CONSISTENCY_CHECK' EXPORTING lf_marv = f_marv s_check_stat = p_stat TABLES t_mat_keys = t_mat_keys t_correct = t_correct t_corrupt = t_corrupt * EXCEPTIONS * no_material_found = 1 * others = 2 .

MAT_PACKAGE_CONSISTENCY_CHECK CALL FUNCTION 'MAT_PACKAGE_CONSISTENCY_CHECK' EXPORTING lf_marv = f_marv * S_USE_XKONCHK = ' ' s_check_stat = p_stat TABLES t_mat_keys = t_mat_locked t_correct = t_correct t_corrupt = t_corrupt.

DEQUEUE_EMMBEWE CALL FUNCTION 'DEQUEUE_EMMBEWE' EXPORTING mode_mbew = 'E' * mandt = sy-mandt matnr = t_corrupt-matnr bwkey = t_corrupt-bwkey bwtar = t_corrupt-bwtar.

ENQUEUE_EMMBEWE CALL FUNCTION 'ENQUEUE_EMMBEWE' EXPORTING mode_mbew = 'E' mandt = sy-mandt matnr = p_t_mbew-matnr bwkey = p_t_mbew-bwkey bwtar = p_t_mbew-bwtar * X_MATNR = ' ' * X_BWKEY = ' ' * X_BWTAR = ' ' * _SCOPE = '2' _wait = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1.

DEQUEUE_EMMBEWE CALL FUNCTION 'DEQUEUE_EMMBEWE' EXPORTING mode_mbew = 'E' * mandt = sy-mandt matnr = p_t_mbew-matnr bwkey = p_t_mbew-bwkey bwtar = p_t_mbew-bwtar.

TCURM_SINGLE_READ CALL FUNCTION 'TCURM_SINGLE_READ' * EXPORTING * KZRFB = ' ' IMPORTING wtcurm = tcurm EXCEPTIONS not_found = 1 valuation_level_initial = 2 valuation_level_wrong = 3.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' i_callback_program = h_repid i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'ON_ALV_U_COMMAND' i_structure_name = 'CKMH_T_ERRORS' is_layout = lf_layout it_fieldcat = lt_field_tab it_excluding = lt_excluding * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' i_save = 'A' is_variant = lf_variant it_events = lt_event * IT_EVENT_EXIT = is_print = lf_print * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = t_corrupt.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' i_callback_program = 'SAPRCKMU' * I_CALLBACK_PF_STATUS_SET = ' ' * I_CALLBACK_USER_COMMAND = ' ' i_structure_name = 'CKMH_MAT_KEYS' is_layout = lf_layout it_fieldcat = lt_fieldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' * I_SAVE = ' ' * IS_VARIANT = ' ' it_events = lt_event * IT_EVENT_EXIT = * IS_PRINT = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = t_mat_not_checked.

TCURM_SINGLE_READ CALL FUNCTION 'TCURM_SINGLE_READ' * EXPORTING * KZRFB = ' ' IMPORTING wtcurm = tcurm EXCEPTIONS not_found = 1 valuation_level_initial = 2 valuation_level_wrong = 3.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' i_callback_program = 'SAPRCKMU' * I_CALLBACK_PF_STATUS_SET = ' ' * I_CALLBACK_USER_COMMAND = ' ' i_structure_name = 'CKMH_MAT_KEYS' is_layout = lf_layout it_fieldcat = lt_fieldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' * I_SAVE = ' ' * IS_VARIANT = ' ' it_events = lt_event * IT_EVENT_EXIT = * IS_PRINT = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = t_corrected.

ONE_MAT_MBEW_ML_COMPARISON CALL FUNCTION 'ONE_MAT_MBEW_ML_COMPARISON' STARTING NEW TASK 'CKMC' EXPORTING i_matnr = t_corrupt-matnr i_bwkey = t_corrupt-bwkey i_bwtar = t_corrupt-bwtar i_sobkz = t_corrupt-sobkz "SITML i_vbeln = t_corrupt-vbeln i_posnr = t_corrupt-posnr i_pspnr = t_corrupt-pspnr i_lifnr = t_corrupt-lifnr."Subcontracting Japan

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING defaultoption = 'N' textline1 = 'Never use in a productive system! '(010) textline2 = 'Continue? '(011) titel = 'Warning!! '(012) * START_COLUMN = 25 * START_ROW = 6 * CANCEL_DISPLAY = 'X' IMPORTING answer = answer * EXCEPTIONS * OTHERS = 1 .

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING defaultoption = 'N' textline1 = 'Never use in a productive system! '(010) textline2 = 'Continue? '(011) titel = 'Warning!! '(012) * START_COLUMN = 25 * START_ROW = 6 * CANCEL_DISPLAY = 'X' IMPORTING answer = answer * EXCEPTIONS * OTHERS = 1 .

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = percentage text = text EXCEPTIONS OTHERS = 0.

MBEW_EXTEND CALL FUNCTION 'MBEW_EXTEND' * EXPORTING * KZRFB = ' ' * MAXTZ = ' ' * XVPER = 'X' * XVVPR = 'X' * XVJAH = 'X' * XVVJA = 'X' IMPORTING rmbewh = lh_rmbewh TABLES mbew_tab = lt_mbew.




EBEW_EXTEND CALL FUNCTION 'EBEW_EXTEND' * EXPORTING * KZRFB = ' ' * MAXTZ = ' ' * XVPER = 'X' * XVJAH = 'X' IMPORTING rebewh = lh_rmbewh TABLES ebew_tab = lt_ebew.

QBEW_EXTEND CALL FUNCTION 'QBEW_EXTEND' * EXPORTING * KZRFB = ' ' * MAXTZ = ' ' * XVPER = 'X' * XVJAH = 'X' IMPORTING rqbewh = lh_rmbewh TABLES qbew_tab = lt_qbew.

OBEW_EXTEND CALL FUNCTION 'OBEW_EXTEND' * EXPORTING * KZRFB = ' ' * MAXTZ = ' ' * XVPER = 'X' * XVJAH = 'X' IMPORTING robewh = lh_rmbewh TABLES obew_tab = lt_obew.

GET_BWKEY_CURRENCY_INFO CALL FUNCTION 'GET_BWKEY_CURRENCY_INFO' EXPORTING bwkey = -bwkey * CALL_BY_INIT_PROG = ' ' * I_CUSTOMIZING = ' ' TABLES t_curtp_for_va = lt_curtp EXCEPTIONS bwkey_not_found = 1 bwkey_not_active = 2 matled_not_found = 3 internal_error = 4 more_than_3_curtp = 5 customizing_changed = 6 OTHERS = 7.

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlpr-zkprs local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlpr-zkprs * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlpr-zplpr local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlpr-zplpr * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlpr-fplpx local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlpr-fplpx * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlpr-lplpr local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlpr-lplpr * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlpr-lplpx local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlpr-lplpx * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlpr-vplpr local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlpr-vplpr * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlpr-vplpx local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlpr-vplpx * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlpr-eiprice local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlpr-eiprice * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CKML_F_SET_BWKEY CALL FUNCTION 'CKML_F_SET_BWKEY' EXPORTING bwkey = t_corrupt-bwkey.

CKML_F_GET_WWO CALL FUNCTION 'CKML_F_GET_WWO' IMPORTING wwo = f_wwo.

MARV_SINGLE_READ CALL FUNCTION 'MARV_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 bukrs = f_wwo-bukrs IMPORTING wmarv = f_marv EXCEPTIONS not_found = 1 wrong_call = 2 OTHERS = 3 .

MARA_SINGLE_READ CALL FUNCTION 'MARA_SINGLE_READ' EXPORTING matnr = -matnr IMPORTING wmara = lf_mara EXCEPTIONS lock_on_material = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 OTHERS = 5.

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlcr-stprs local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlcr-stprs * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlcr-pvprs local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlcr-pvprs * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlcr-salk3 local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlcr-salk3 * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlcr-salkv local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlcr-salkv * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlcr-stprs local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlcr-stprs * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlcr-pvprs local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlcr-pvprs * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlcr-salk3 local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlcr-salk3 * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlcr-salkv local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlcr-salkv * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlcr-stprs local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlcr-stprs * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlcr-pvprs local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlcr-pvprs * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlcr-salk3 local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlcr-salk3 * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = lt_curtp-waers local_amount = lf_lc_ckmlcr-salkv local_currency = lh_lc_waers IMPORTING foreign_amount = ckmlcr-salkv * EXCEPTIONS * NO_RATE_FOUND = 1 * OVERFLOW = 2 * NO_FACTORS_FOUND = 3 * NO_SPREAD_FOUND = 4 * DERIVED_2_TIMES = 5 * OTHERS = 6 .

CKML_F_SET_BWKEY CALL FUNCTION 'CKML_F_SET_BWKEY' EXPORTING bwkey = t_corrupt-bwkey.

CKML_F_GET_WWO CALL FUNCTION 'CKML_F_GET_WWO' IMPORTING wwo = f_wwo.

MARV_SINGLE_READ CALL FUNCTION 'MARV_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 bukrs = f_wwo-bukrs IMPORTING wmarv = f_marv EXCEPTIONS not_found = 1 wrong_call = 2 OTHERS = 3 .

CKMS_PERIOD_READ_WITH_ITAB CALL FUNCTION 'CKMS_PERIOD_READ_WITH_ITAB' EXPORTING * I_REFRESH_BUFFER = ' ' * I_READ_ONLY_BUFFER = ' ' i_use_buffer = ' ' * i_build_smbew = ' ' i_bdatj_1 = lh_bdatj_lf i_poper_1 = lh_poper_lf i_bdatj_2 = lh_bdatj_vm i_poper_2 = lh_poper_vm i_bdatj_3 = lh_bdatj_vj i_poper_3 = lh_poper_vj * I_BETWEEN_1_AND_2 = * I_UNTPER = '000' * I_CALL_BY_REPORTING = ' ' * I_NO_CHK_PERIODS_COMPLETE = ' ' TABLES t_kalnr = lt_kalnr t_ckmlpp = lt_ckmlpp t_ckmlcr = lt_ckmlcr EXCEPTIONS no_data_found = 1 input_data_inconsistent = 2 buffer_inconsistent = 3 OTHERS = 4 .

CKML_F_SET_BWKEY CALL FUNCTION 'CKML_F_SET_BWKEY' EXPORTING bwkey = t_t001k-bwkey EXCEPTIONS bwkey_not_found = 1.

CKML_F_GET_WWO CALL FUNCTION 'CKML_F_GET_WWO' IMPORTING wwo = f_wwo.

CKML_F_SET_BWKEY CALL FUNCTION 'CKML_F_SET_BWKEY' EXPORTING bwkey = lf_corrupt-bwkey.

CKML_F_GET_WWO CALL FUNCTION 'CKML_F_GET_WWO' IMPORTING wwo = f_wwo.

MARV_SINGLE_READ CALL FUNCTION 'MARV_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 bukrs = f_wwo-bukrs IMPORTING wmarv = f_marv EXCEPTIONS not_found = 1 wrong_call = 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 SAPRCKMU or its description.