MM07MSTA is a standard ABAP INCLUDE 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 MM07MSTA into the relevant SAP transactions such as SE38 or SE80
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.
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
MCB_MCMSEG_FILL CALL FUNCTION 'MCB_MCMSEG_FILL' EXPORTING i_mseg = xmseg "Materialbelegposition i_vm07m = xvm07m "Felder Verbuchungssteuerung i_dm07m = zdm07m "Felder Dialogsteuerung IMPORTING e_mcmseg_l = ls_mcmseg_l "Kommunikationsstruktur e_mcmseg_k = ls_mcmseg_k "Kommunikationsstruktur TABLES yt156 = g_t156 "Bewegungsart: Attribute ymkpf = xmkpf "Materialbelegkopf ymseg = xmseg.
MARA_SINGLE_READ CALL FUNCTION 'MARA_SINGLE_READ' EXPORTING matnr = xmseg-matnr IMPORTING wmara = mc_mara 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 = mc_marc EXCEPTIONS lock_on_marc = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 OTHERS = 5.
VALUE_ARTICLE_FIND CALL FUNCTION 'VALUE_ARTICLE_FIND' EXPORTING i_matnr = xmcbest-matnr i_werks = xmcbest-werks IMPORTING e_matnr = cx_matnr e_waart = cx_waart EXCEPTIONS entry_not_found = 1 wertm_bf_nicht_erlaubt = 2 buchung_nicht_erlaubt = 3 material_not_found = 4 OTHERS = 5.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.