SAP Reports / Programs

MBVALUES SAP ABAP Report - MBVALUES: Check Material Value Against FI Documents







MBVALUES 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 MBVALUES 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 MBVALUES. "Basic submit
SUBMIT MBVALUES AND RETURN. "Return to original report after report execution complete
SUBMIT MBVALUES 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: UPDATE = Update
Selection Text: R_P_YEAR = Check Previous Year
Selection Text: R_P_MON = Check Previous Period
Selection Text: R_MATNR = Material
Selection Text: R_CURR = Check Current Period
Selection Text: R_BWKEY = Valuation Area
Selection Text: R_BLART = Document Types
Selection Text: R_BKLAS = Valuation Class
Selection Text: P_KEY = Key
Selection Text: P_BUKRS = Company Code
Selection Text: F_REUSE = Materials of Last Run
Selection Text: F_CKMI1 = Use Table CKMI1
Selection Text: F_BSIM = BSIM (Standard)
Selection Text: FR_YEAR = Start of Current Year
Selection Text: FR_START = System Start
Selection Text: FR_PP_Y = Start of Previous Year
Selection Text: FI_SUM = FI Summarization (MSEG/BSIM)
Selection Text: EURO_CH = To Euro During Current Year
Selection Text: BEWERT = Split Valuation Only
Title: MBVALUES: Check Material Value Against FI Documents
Text Symbol: 003 = Table to Be Used for Calculation
Text Symbol: 002 = Calculate From:
Text Symbol: 001 = Period to Check


INCLUDES used within this REPORT MBVALUES

INCLUDE RM07AUTH.
INCLUDE RM07REUSS.


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:

EWU_GET_CUKEY_ORG CALL FUNCTION 'EWU_GET_CUKEY_ORG' EXPORTING waehrungsursprung = '10' "company code currency auspraegung = pp_bukrs gueltigkeitsdatum = p_from_budat IMPORTING waehrungsschluessel = start_curr EXCEPTIONS type_not_found = 1 no_conversion_found = 2 object_not_found = 3 OTHERS = 4.

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = p_ml_jahr i_periv = xperiv i_poper = p_ml_poper IMPORTING e_date = p_to_budat EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3.

FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = current_year * I_MONMIT = 00 i_periv = xperiv i_poper = 001 IMPORTING e_date = from_budat EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = current_year * I_MONMIT = 00 i_periv = xperiv i_poper = 001 IMPORTING e_date = from_budat EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = current_year * I_MONMIT = 00 i_periv = xperiv i_poper = h_poper IMPORTING e_date = from_budat EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_bukrs = p_bukrs i_budat = budat IMPORTING e_monat = monat_mr21 e_gjahr = bdatj_mr21.

FI_PERIOD_CHECK CALL FUNCTION 'FI_PERIOD_CHECK' EXPORTING i_bukrs = p_bukrs i_gjahr = bdatj_mr21 i_koart = '+' i_konto = '+' i_monat = l_monat EXCEPTIONS error_period = 1 error_period_acc = 2.

CKMS_BUFFER_REFRESH_COMPLETE CALL FUNCTION 'CKMS_BUFFER_REFRESH_COMPLETE'.

PRICES_CHANGE CALL FUNCTION 'PRICES_CHANGE' "#EC NO_INCOMP EXPORTING actual_bdatj = bdatj_mr21 actual_poper = l_poper bukrs = p_bukrs budat = budat TABLES t_matpr = lt_matpr. "#EC NO_INCOMP

PRICES_POST CALL FUNCTION 'PRICES_POST' "#EC NO_INCOMP EXPORTING i_bktxt = space bukrs = p_bukrs lis_update = 'X' "similar to MR21 IMPORTING o_belnr = l_belnr o_kjahr = l_year TABLES t_matpr = lt_matpr. "#EC NO_INCOMP

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = cs_plant-to_year i_periv = is_t001-periv i_poper = l_poper IMPORTING e_date = cs_plant-to_date EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 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 MBVALUES or its description.