SAP Reports / Programs | Materials Management | Materials Management | Inventory Controlling(MM-IS-IC) SAP MM

RMCBMRP2 SAP ABAP Report - documentation and ABAP source code







RMCBMRP2 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 RMCBMRP2 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

OLIH - MRP Data Procurement for BW


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 RMCBMRP2. "Basic submit
SUBMIT RMCBMRP2 AND RETURN. "Return to original report after report execution complete
SUBMIT RMCBMRP2 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: WERKS = D Plant
Selection Text: VON_WOC = From week
Selection Text: VON_TAG = From Date
Selection Text: VON_MON = From period
Selection Text: VON_BUP = From period
Selection Text: MTART = D Material type
Selection Text: MATNR = D Material
Selection Text: BIS_WOC = To week
Selection Text: BIS_TAG = To Date
Selection Text: BIS_MON = Until Month
Selection Text: BIS_BUP = To period
Selection Text: BESKZ = D Procurement Type
Text Symbol: 002 = Period
Text Symbol: 001 = Characteristics


INCLUDES used within this REPORT RMCBMRP2

INCLUDE RMCS0TP1.


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:

MCB_STOCK_FUTURE CALL FUNCTION 'MCB_STOCK_FUTURE' EXPORTING matnr = xmcon-matnr werks = xmcon-werks dismm = xmcon-dismm disnt = xmcon-dispo von_datum = zeitr-low bis_datum = zeitr-high perkz = sav_speri plscn = plsc vrsio = con_vrsio_ist periv = perivar auswbs = space auswdl = 'X' TABLES t_s094 = int_s094.

WEEK_GET_FIRST_DAY CALL FUNCTION 'WEEK_GET_FIRST_DAY' EXPORTING week = von_woc IMPORTING date = sl_sptag-low.

WEEK_GET_FIRST_DAY CALL FUNCTION 'WEEK_GET_FIRST_DAY' EXPORTING week = bis_woc IMPORTING date = zeitr-high.

PERIOD_DAY_DETERMINE CALL FUNCTION 'PERIOD_DAY_DETERMINE' EXPORTING i_gjahr = von_bup(4) i_monat = von_bup+4(2) i_periv = perivar IMPORTING e_fday = zeitr-low e_lday = zeitr-high.

PERIOD_DAY_DETERMINE CALL FUNCTION 'PERIOD_DAY_DETERMINE' EXPORTING i_gjahr = bis_bup(4) i_monat = bis_bup+4(2) i_periv = perivar IMPORTING e_lday = zeitr-high.

DATE_GET_WEEK CALL FUNCTION 'DATE_GET_WEEK' EXPORTING date = si_hlp_datum IMPORTING week = si_week.



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