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

RMCBMMAT SAP ABAP Report - Statistical Setup: Info Structures fr. Material Movements per Material







RMCBMMAT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The report RMCBNEUA is designed to reset the information structures in Inventory Controlling...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RMCBMMAT 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 RMCBMMAT. "Basic submit
SUBMIT RMCBMMAT AND RETURN. "Return to original report after report execution complete
SUBMIT RMCBMMAT 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: WERK = D Plant
Selection Text: VRSIO = Save under version
Selection Text: NEULAUF = New run?
Selection Text: MCINF = D Info structure
Selection Text: MATNR = D Material
Selection Text: LOGSYS = Logical target system
Selection Text: LAUFNAME = D Name of run
Selection Text: F_LOCAL = Stat. setup, partner system
Selection Text: ENDZEIT = Termination Time
Selection Text: ENDDAT = Termination Date
Selection Text: BWKREIS = D Valuation Area
Title: Statistical Setup: Info Structures fr. Material Movements per Material
Text Symbol: 100 = Setup: &V1&, &V2&
Text Symbol: 004 = Specifications for using ALE
Text Symbol: 003 = Control of recompilation run
Text Symbol: 002 = Document data restriction
Text Symbol: 001 = Specifications for the target structures


INCLUDES used within this REPORT RMCBMMAT

INCLUDE RMCSNTOP.
INCLUDE RMCBNEAV.


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:

MASTER_IDOC_DISTRIBUTE CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE' IN UPDATE TASK EXPORTING master_idoc_control = header TABLES master_idoc_data = t_segments communication_idoc_control = t_c_edidc.

MBEW_SINGLE_READ CALL FUNCTION 'MBEW_SINGLE_READ' EXPORTING matnr = xmseg-matnr bwkey = werkinfo-bwkey bwtar = xmseg-bwtar IMPORTING wmbew = xf_mbew EXCEPTIONS lock_on_mbew = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 OTHERS = 5.

MCB_MCMSEG_FILL CALL FUNCTION 'MCB_MCMSEG_FILL' EXPORTING i_mseg = xmseg i_zeitp = con_zeitp_bf i_mcbest = hlp_mcbest i_modus = con_modus_new IMPORTING e_mcmseg_l = gs_mcmseg_l e_mcmseg_k = gs_mcmseg_k TABLES yt156 = xt156 yt156b = xt156b yt156s = xt156s yt156m = xt156m yt156c = xt156c yt134m = xt134m ymkpf = xmkpf yt001w = xt001w ymseg = xmseg EXCEPTIONS OTHERS = 01.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

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

MARC_SINGLE_READ CALL FUNCTION 'MARC_SINGLE_READ' EXPORTING matnr = xmseg-matnr werks = xmseg-werks IMPORTING wmarc = xmarc EXCEPTIONS lock_on_marc = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 OTHERS = 5.

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

MARC_SINGLE_READ CALL FUNCTION 'MARC_SINGLE_READ' EXPORTING matnr = xmcbest-matnr werks = xmcbest-werks IMPORTING wmarc = xmarc EXCEPTIONS lock_on_marc = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 OTHERS = 5.

EBEW_SINGLE_READ CALL FUNCTION 'EBEW_SINGLE_READ' EXPORTING matnr = xmcmseg-matnr bwkey = xmcmseg-bwkey bwtar = xmcmseg-bwtar sobkz = xmcmseg-sobkz vbeln = xmcmseg-kdauf posnr = xmcmseg-kdpos IMPORTING webew = mr_ebew EXCEPTIONS wrong_call = 1 not_found = 2 OTHERS = 3.

QBEW_SINGLE_READ CALL FUNCTION 'QBEW_SINGLE_READ' EXPORTING matnr = xmcmseg-matnr bwkey = xmcmseg-bwkey bwtar = xmcmseg-bwtar sobkz = xmcmseg-sobkz pspnr = xmcmseg-ps_psp_pnr IMPORTING wqbew = mr_qbew EXCEPTIONS wrong_call = 1 not_found = 2 OTHERS = 3.

MBEW_SINGLE_READ CALL FUNCTION 'MBEW_SINGLE_READ' EXPORTING matnr = xmcmseg-matnr bwkey = xmcmseg-bwkey bwtar = xmcmseg-bwtar IMPORTING wmbew = mr_mbew EXCEPTIONS lock_on_mbew = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 OTHERS = 5.

MCB_STOCK_SELECT CALL FUNCTION 'MCB_STOCK_SELECT' EXPORTING i_marc = lv_false i_mard = lv_true i_mchb = lv_true i_mkol = lv_true i_msku = lv_true i_mslb = lv_true i_mska = lv_true i_mspr = lv_true i_mbew = lv_false i_null_stocks = lv_true TABLES mat_sel = matnr wrk_sel = werks bwkreis_sel = bwkreis t_mard = xmard t_mchb = xmchb t_mkol = xmkol t_msku = xmsku t_mslb = xmslb t_mspr = xmspr t_mska = xmska t_mbew = xmbew t_ebew = xebew t_qbew = xqbew.

MCB_MCMSEG_FILL CALL FUNCTION 'MCB_MCMSEG_FILL' EXPORTING i_mseg = xmseg i_zeitp = con_zeitp_bf i_mcbest = hlp_mcbest i_modus = con_modus_new IMPORTING e_mcmseg_l = gs_mcmseg_l e_mcmseg_k = gs_mcmseg_k TABLES yt156 = xt156 yt156b = xt156b yt156s = xt156s yt156m = xt156m yt156c = xt156c yt134m = xt134m ymkpf = xmkpf yt001w = xt001w ymseg = xmseg EXCEPTIONS OTHERS = 01.



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