SAP Reports / Programs

RMNIWE10_01 SAP ABAP Report - Determine Lowest Value: Range of Coverage







RMNIWE10_01 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 RMNIWE10_01 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 RMNIWE10_01. "Basic submit
SUBMIT RMNIWE10_01 AND RETURN. "Return to original report after report execution complete
SUBMIT RMNIWE10_01 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: SO_MATKL = D .
Selection Text: SO_BKLAS = D .
Selection Text: P_EXPTL = D .
Selection Text: PA_BUKRS = D .
Selection Text: MTART = D .
Title: Determine Lowest Value: Range of Coverage
Text Symbol: 455 = Weighting Factor
Text Symbol: 454 = Current Stock =
Text Symbol: 453 = "Current Stock" is selected
Text Symbol: 452 = Year-Before-Last Stock
Text Symbol: 451 = "Year-Before-Last Stock" is selected
Text Symbol: 450 = Prev. Year's Stock =
Text Symbol: 449 = "Prev. Year's Stock" is selected
Text Symbol: 448 = Month-Before-Last Stock =
Text Symbol: 447 = "Month-Before-Last Stock" is selected
Text Symbol: 446 = Prev. Period Stock =
Text Symbol: 445 = Selected Move. Stock =
Text Symbol: 443 = "Prev. Month's Stock" is selected
Text Symbol: 442 = Company Code
Text Symbol: 441 = Valuation Level Bal. Sheet Val. =
Text Symbol: 440 = EXCEPTION RULES
Text Symbol: 434 = Weight. Stock Quantity
Text Symbol: 433 = WeightingFactor
Text Symbol: 432 = Total =
Text Symbol: 431 = Goods Receipt Quantity
Text Symbol: 430 = PO Quantity
Text Symbol: 429 = Price Det. Date
Text Symbol: 456 = Posting Data GoodsReceipt
Text Symbol: 457 = Document Number
Text Symbol: 458 = Movement Type
Text Symbol: 459 = GR Quantity
Text Symbol: 460 = GR Total =
Text Symbol: 461 = Average stock used for calculation
Text Symbol: 462 = Stock
Text Symbol: 463 = Goods Receipts=
Text Symbol: 464 = Devaluation Percentage
Text Symbol: 470 = DETERMINE LOWEST VALUE, DETERMINE RANGE OF COVERAGE, DETERMINE DEVALUATION
Text Symbol: 471 = Materia Type =





Text Symbol: 472 = New Price
Text Symbol: 473 = Base Price
Text Symbol: 474 = % Deduct.
Text Symbol: 479 = No Forecast Data
Text Symbol: 480 = Declaration
Text Symbol: 481 = Material Number
Text Symbol: EXC = Exception
Text Symbol: MEC = Average Consumption
Text Symbol: MES = Average Stock
Text Symbol: RGC = Range of Coverage
Text Symbol: 428 = PO Number
Text Symbol: 190 = Program Run ID:
Text Symbol: 182 = Run Parameters
Text Symbol: 114 = Material Master:
Text Symbol: 075 = Material excluded
Text Symbol: 074 = New Material
Text Symbol: 073 = Receipts =
Text Symbol: 072 = Stock Increase
Text Symbol: 054 = Base Price Discount New Price |
Text Symbol: 053 = Exception|
Text Symbol: 052 = Mean Stock Mean Consumption RngOfCovrge|
Text Symbol: 051 = ValA Material Val. Type Material Description MtType|
Text Symbol: 044 = Records read
Text Symbol: 043 = Material Ledger:
Text Symbol: 042 = Database Updates:
Text Symbol: 040 = Records changed
Text Symbol: 037 = BTCI entries created
Text Symbol: 036 = Records updated
Text Symbol: 035 = Price Changes:
Text Symbol: 033 = No data updated
Text Symbol: 024 = | |
Text Symbol: 023 = | | | | |
Text Symbol: 020 = Totals Rec
Text Symbol: 017 = To:
Text Symbol: 001 = ValA|Material |Val. Type | Average Stock| Avg Consumption| Cover. |Deval. | New Price | per| Add. |
Text Symbol: 427 = "Add PO Stocks" is weighted
Text Symbol: 426 = "Subtract Reservations" is weighted
Text Symbol: 425 = Control Material Stock Determination =
Text Symbol: 424 = Stock Quantity





Text Symbol: 423 = Period
Text Symbol: 422 = Valuation Type
Text Symbol: 421 = Valuation Area
Text Symbol: 420 = User Text =
Text Symbol: 419 = User exit is active
Text Symbol: 418 = Reserved Stock
Text Symbol: 417 = Total Weighting
Text Symbol: 416 = Total Monthly Stock Quantity
Text Symbol: 415 = Average Stock =
Text Symbol: 412 = Reservation Qty
Text Symbol: 411 = Stock Quantities Between
Text Symbol: 410 = STOCK DETERMINATION
Text Symbol: 402 = Run Data of Range of Coverage Det. - Material Creation Date =
Text Symbol: 401 = Age of Material in Months =
Text Symbol: 400 = DETERMINE AGE
Text Symbol: 315 = No forecast
Text Symbol: 195 = Duration:
Text Symbol: 193 = Variant:
Text Symbol: 192 = Runtime of:
Text Symbol: 191 = Report Name:


INCLUDES used within this REPORT RMNIWE10_01

INCLUDE MRYTAB01.
INCLUDE MRYTAB02.
INCLUDE MRYDAT01.
INCLUDE MRYDAT02.
INCLUDE MRYDAT04.
INCLUDE MRYDAT05.
INCLUDE MRYF_COMMON_ROUTINES_ALV.
INCLUDE RMNIWE10_I_ALV.


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:

MY_FISCAL_YEAR_ANALYZE CALL FUNCTION 'MY_FISCAL_YEAR_ANALYZE' EXPORTING i_bukrs = pa_bukrs i_sniwe = sniwe i_sniwe1 = sniwe1 IMPORTING e_niwefy = sniwefy.

MY_STOCK_TABLE_REFRESH CALL FUNCTION 'MY_STOCK_TABLE_REFRESH' EXPORTING i_sniwefy = sniwefy i_sniwe = sniwe i_sniwe1 = sniwe1 TABLES t_stock = tab_stock t_niw8h = tab_niw8h.

MY_DISPO_TABLES_PREFETCH CALL FUNCTION 'MY_DISPO_TABLES_PREFETCH' EXPORTING i_dispo = sniwe1-dispo TABLES tra_matnr = ms_matnr tra_werks = ra_werks.

MY_KEYDATE_DATA_ASSIGN CALL FUNCTION 'MY_KEYDATE_DATA_ASSIGN' EXPORTING is_niwefy = sniwefy CHANGING xs_mry_mt08y = s_mry_mt08y.

MY_MATERIAL_EXCLUDE_CHECK



CALL FUNCTION 'MY_MATERIAL_EXCLUDE_CHECK' EXPORTING i_bwkey = mbewv-bwkey i_matnr = mbewv-matnr i_mtart = marav-mtart i_xlifo = mbewv-xlifo i_mypol = mbewv-mypol i_niwex = sniwe-niwex i_bukrs = pa_bukrs is_niwe = sniwe IMPORTING e_subrc = subrc e_custx = exclude_reason CHANGING c_ersda = marav-ersda.

MY_MATERIAL_AGE_CALCULATE CALL FUNCTION 'MY_MATERIAL_AGE_CALCULATE' EXPORTING i_ersda = marav-ersda i_bisdi = sniwe1-bisdi i_periv = t001-periv IMPORTING e_mtage = sniwe1-mtage e_buper = m_buper e_gjahr = m_gjahr.

MY_AVERAGE_CONSUMPTION_GET CALL FUNCTION 'MY_AVERAGE_CONSUMPTION_GET' EXPORTING i_matnr = marav-matnr i_bwkey = mbewv-bwkey i_bwtar = mbewv-bwtar i_sniwe = sniwe i_sniwe1 = sniwe1 i_exptl = p_exptl TABLES tra_werks = ra_werks t_bew = bew_tab CHANGING ct_exptool = t_exptool ct_creln = t_creln ct_cwdth = t_cwdth.

FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING I_GJAHR = m_gjahr I_PERIV = t001-periv I_POPER = m_buper IMPORTING E_DATE = hlp_date.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING I_DATE = hlp_date I_PERIV = t001-periv IMPORTING E_BUPER = hlp_buper E_GJAHR = hlp_gjahr EXCEPTIONS OTHERS = 99.

MB_ADD_RESERVATION_QUANTITIES CALL FUNCTION 'MB_ADD_RESERVATION_QUANTITIES' EXPORTING x_matnr = marav-matnr x_xloek = space x_kzear = space TABLES xtab1 = xresb xwerks = ra_werks xbdart = xbdart.

ME_READ_HISTORY CALL FUNCTION 'ME_READ_HISTORY' EXPORTING ebeln = *ekpo-ebeln ebelp = *ekpo-ebelp webre = space TABLES xekbe = bet xekbes = bets xekbez = betw xekbnk = betk xekbz = betz.

MY_STOCK_QUANTITY_MODIFY CALL FUNCTION 'MY_STOCK_QUANTITY_MODIFY' EXPORTING i_matnr = marav-matnr i_bwkey = mbewv-bwkey i_bwtar = bew_tab-bwtar i_mt08y = mt08y i_mvers = sniwefy-mvers i_prgid = sniwe-prgid CHANGING c_lbkum = bew_tab-lbkum c_custx = bew_tab-custx.

MY_MATERIAL_DOCUMENTS_GET CALL FUNCTION 'MY_MATERIAL_DOCUMENTS_GET' EXPORTING i_bukrs = pa_bukrs i_matnr = marav-matnr i_date1 = sniwe1-vonrc i_date2 = sniwe1-bisrc i_prgid = sniwe-prgid TABLES t_niwembl = tab_mdoc r_werks = ra_werks_local r_bwtar = ra_bwtar r_mblnr = ra_mblnr "note919875 r_mjahr = ra_mjahr "note919875 EXCEPTIONS not_found = 4.

MY_MOVEMENT_TYPE_CHECK CALL FUNCTION 'MY_MOVEMENT_TYPE_CHECK' EXPORTING i_bwart = -bwart i_prgid = sniwe-prgid IMPORTING e_subrc = subrc e_operator = zugang_flag.

MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING matnr = marav-matnr meins = marav-meins meinh = -meins input = -menge kzmeinh = x IMPORTING output = umeng EXCEPTIONS conversion_not_found = 1 no_meinh = 2.

MY_PRICE_REDUCTION_CALCULATE CALL FUNCTION 'MY_PRICE_REDUCTION_CALCULATE' EXPORTING i_bukrs = pa_bukrs i_bwkey = mbewv-bwkey i_matnr = marav-matnr i_mtart = marav-mtart i_sniwe = sniwe i_sniwe1 = sniwe1 i_exptl = p_exptl i_except = except "HW1225522 IMPORTING e_custx = sniwe-custx TABLES t_bew = bew_tab CHANGING ct_exptool = t_exptool cswa_exptool = wa_exptool c_linenr_cnt = linenr_cnt EXCEPTIONS no_percentage_found = 1.



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 RMNIWE10_01 or its description.