SAP Reports / Programs | Materials Management | Inventory Management(MM-IM) SAP MM

RM07MSQL SAP ABAP INCLUDE - documentation and ABAP source code







RM07MSQL 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 RM07MSQL 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 RM07MSQL. "Basic submit
SUBMIT RM07MSQL AND RETURN. "Return to original report after report execution complete
SUBMIT RM07MSQL VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT RM07MSQL

No INCLUDES are used within this REPORT code!


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:

MATERIAL_PRE_READ_MARM CALL FUNCTION 'MATERIAL_PRE_READ_MARM' TABLES ipre03 = pre03_tab.

MATERIAL_UNIT_FIND_30 CALL FUNCTION 'MATERIAL_UNIT_FIND_30' EXPORTING kzall = 'X' matnr = xmeins-matnr meins = xmeins-basme TABLES rmmme1_itab = mengeneinheiten EXCEPTIONS material_not_found = 01.

CONVERSION_EXIT_CUNIT_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = mengeneinheiten-meinh language = sy-langu IMPORTING long_text = t006a-msehl output = t006a-mseh3 short_text = t006a-mseht EXCEPTIONS unit_not_found = 01.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = makt return = mtcor TABLES seqmat01 = dummy.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mabdr return = mtcor TABLES seqmat01 = dummy.

MATERIAL_TO_VALUE_MATERIAL CALL FUNCTION 'MATERIAL_TO_VALUE_MATERIAL' EXPORTING i_werks = lsk_werks i_matnr = lsk_matnr * I_DATAB = * I_DATBI = i_read_marc = 'X' "1462376 TABLES marab = t_mara_b EXCEPTIONS eingabe_nicht_erlaubt = 1 error_found = 2 OTHERS = 3.

MARA_SINGLE_READ CALL FUNCTION 'MARA_SINGLE_READ' EXPORTING matnr = l_matnr IMPORTING wmara = xmara EXCEPTIONS OTHERS = 5.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = marc return = mtcor TABLES seqmat01 = dummy EXCEPTIONS OTHERS = 1.

MARA_SINGLE_READ CALL FUNCTION 'MARA_SINGLE_READ' EXPORTING matnr = l_matnr IMPORTING wmara = xmara EXCEPTIONS OTHERS = 5.

MARV_SINGLE_READ CALL FUNCTION 'MARV_SINGLE_READ' EXPORTING bukrs = marvls_bukrs IMPORTING wmarv = marv EXCEPTIONS not_found = 1 wrong_call = 2 OTHERS = 3.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mbefu return = mtcor TABLES seqmat01 = dummy.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mbefu return = mtcor TABLES seqmat01 = dummy.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = xmara TABLES seqmat01 = dummy EXCEPTIONS OTHERS = 01.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mbefu return = mtcor TABLES seqmat01 = dummy.



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