SAP Reports / Programs | Quality Management | Quality Inspection(QM-IM) SAP QM

RQMQMM00 SAP ABAP Report - Mass Change of QM Inspection Setup Data in Materials







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

QA08 - Collective Processing of Insp. Setup


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 RQMQMM00. "Basic submit
SUBMIT RQMQMM00 AND RETURN. "Return to original report after report execution complete
SUBMIT RQMQMM00 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: G_AKT1 = Activate Despite Insp. Stock
Selection Text: G_AKT3 = Activate Despite Insp. Stock
Selection Text: G_AKT4 = Activate Despite Insp. Stock
Selection Text: G_ART1 = Inspection Type
Selection Text: G_ART2 = Inspection Type
Selection Text: G_ART4 = Inspection Type
Selection Text: G_BELEG1 = Create Change Documents
Selection Text: G_BELEG2 = Create Change Documents
Selection Text: G_BELEG3 = Create Change Documents
Selection Text: G_BELEG4 = Create Change Documents
Selection Text: G_DUNKL1 = Do Not Display Material List
Selection Text: G_DUNKL2 = Do Not Display Material List
Selection Text: G_DUNKL4 = Do Not Display Material List
Selection Text: G_MATNR = Material
Selection Text: G_MTART = Material Type
Selection Text: G_NEU1 = Assign Inspection Type
Selection Text: G_WERKS = Plant
Selection Text: G_APA = D .
Selection Text: G_DELINA = D .
Selection Text: G_MMSTA = D .
Selection Text: G_SELINA = D .
Selection Text: G_XCHPF = D .
Title: Mass Change of QM Inspection Setup Data in Materials
Text Symbol: GPU = Usage decision
Text Symbol: GPV = Administration
Text Symbol: GPZ = Numerator
Text Symbol: K01 = The following materials can be processed
Text Symbol: LON = Active processing mode
Text Symbol: OFF = Inactive
Text Symbol: PB1 = Activate Inspection Type
Text Symbol: PB2 = Deactivate Inspection Type
Text Symbol: PB3 = Individual Processing
Text Symbol: PB4 = Mass Processing
Text Symbol: POP = Report Documentation
Text Symbol: SON = Misc.
Text Symbol: TES = Test
Text Symbol: 001 = The following materials could not be processed
Text Symbol: 002 = Blocked materials





Text Symbol: 003 = The following materials can be processed
Text Symbol: 004 = Mats. with insp. stock
Text Symbol: 005 = No Q-score procedure assigned to insp. type in Customizing
Text Symbol: 006 = The following materials were selected
Text Symbol: 007 = Lot creation unsuccessful
Text Symbol: 008 = Following insp. lots created
Text Symbol: 00A = QM-Specific Data Selection for Material
Text Symbol: 00B = Materials
Text Symbol: 010 = Material
Text Symbol: 011 = Plnt
Text Symbol: 012 = Description
Text Symbol: 013 = This function not allowed for batch
Text Symbol: 014 = InspLot
Text Symbol: 015 = Batch
Text Symbol: 016 = Special stock
Text Symbol: 01A = Parameter for processing
Text Symbol: 02A = Deactivate materials
Text Symbol: 101 = The following materials could not be processed
Text Symbol: AC1 = Class Selection Active
Text Symbol: AC2 = Class Selection Inactive
Text Symbol: ANZ = Number
Text Symbol: CL2 = Material class
Text Symbol: CS1 = Class Selection
Text Symbol: CSU = Undo Class Selection
Text Symbol: ERR = Information
Text Symbol: F01 = My Default
Text Symbol: F05 = Set monitor by
Text Symbol: GPB = Movement data
Text Symbol: GPK = Account assignment
Text Symbol: GPM = Quantities
Text Symbol: GPP = Inspection lot
Text Symbol: GPQ = Inspection plan
Text Symbol: GPR = Master data
Text Symbol: GPS = Sample


INCLUDES used within this REPORT RQMQMM00

INCLUDE RQALVTOP.


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:

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_system_undo text = space info = text-csu IMPORTING result = g_delete EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.






QSS0_MAT_CLASS_SELECTION CALL FUNCTION 'QSS0_MAT_CLASS_SELECTION' TABLES t_matnr = g_matnr_tab EXCEPTIONS no_selection = 1 OTHERS = 2.

QPLS_QSP_INPUT CALL FUNCTION 'QPLS_QSP_INPUT' EXPORTING i_art = g_art IMPORTING e_qkzverf = tq34-qkzverf e_qpmat = tq34-qpmat EXCEPTIONS cancelled = 01.

QPLS_MAINTAIN_QM_DATA_SINGLE CALL FUNCTION 'QPLS_MAINTAIN_QM_DATA_SINGLE' EXPORTING i_qmat = l_qmat IMPORTING e_qmat = l_qmat EXCEPTIONS cancelled = 1 wrong_data = 2 no_tq34 = 3 OTHERS = 4.

POPUP_DISPLAY_TEXT CALL FUNCTION 'POPUP_DISPLAY_TEXT' EXPORTING language = sy-langu popup_title = text-pop start_column = 10 start_row = 3 * You can create a document as a 'General Text' (SE61) and display it * here in your report text_object = 'RQMQMM00_DOKU' help_modal = g_x * importing * cancelled = EXCEPTIONS text_not_found = 1 OTHERS = 2.

REUSE_ALV_LIST_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_GET' IMPORTING et_fieldcat = g_fieldcat_tab[] EXCEPTIONS no_infos = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = g_repid i_internal_tabname = 'QMAT_D01' i_structure_name = g_tabname i_client_never_display = g_x * i_inclname = l_inclname CHANGING ct_fieldcat = g_fieldcat_tab[] EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

QAUT_CHECK_TCODE CALL FUNCTION 'QAUT_CHECK_TCODE' EXPORTING i_tcode = p_tcode.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = l_mtcom IMPORTING matdaten = l_mara EXCEPTIONS account_not_found = 1 batch_not_found = 2 forecast_not_found = 3 lock_on_account = 4 lock_on_material = 5 lock_on_plant = 6 lock_on_sales = 7 lock_on_sloc = 8 lock_on_batch = 9 lock_system_error = 10 material_not_found = 11 plant_not_found = 12 sales_not_found = 13 sloc_not_found = 14 slocnumber_not_found = 15 sloctype_not_found = 16 text_not_found = 17 unit_not_found = 18 invalid_mch1_matnr = 19 invalid_mtcom = 20 sa_material = 21 wv_material = 22 waart_error = 23 OTHERS = 24.

QPLS_MATERIAL_INSPECT CALL FUNCTION 'QPLS_MATERIAL_INSPECT' EXPORTING flag_show = c_kreuz matnr = object_tab-matnr werks = object_tab-werks i_no_buffer = c_kreuz i_mara = l_mara i_document = g_beleg EXCEPTIONS OTHERS = 1.

ENQUEUE_EMMARCE CALL FUNCTION 'ENQUEUE_EMMARCE' EXPORTING matnr = object_tab-matnr werks = object_tab-werks EXCEPTIONS foreign_lock = 1 system_failure = 2.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = l_mtcom IMPORTING matdaten = l_mara EXCEPTIONS account_not_found = 1 batch_not_found = 2 forecast_not_found = 3 lock_on_account = 4 lock_on_material = 5 lock_on_plant = 6 lock_on_sales = 7 lock_on_sloc = 8 lock_on_batch = 9 lock_system_error = 10 material_not_found = 11 plant_not_found = 12 sales_not_found = 13 sloc_not_found = 14 slocnumber_not_found = 15 sloctype_not_found = 16 text_not_found = 17 unit_not_found = 18 invalid_mch1_matnr = 19 invalid_mtcom = 20 sa_material = 21 wv_material = 22 waart_error = 23 OTHERS = 24.

QPLS_MATERIAL_INSPECT CALL FUNCTION 'QPLS_MATERIAL_INSPECT' EXPORTING flag_show = space matnr = object_tab-matnr werks = object_tab-werks i_no_buffer = c_kreuz i_mara = l_mara i_document = g_beleg i_create_lots = g_akt i_massenakt = c_kreuz IMPORTING flag_upd = l_flag_upd EXCEPTIONS OTHERS = 1.

QPL1_INSPECTION_LOTS_POSTING CALL FUNCTION 'QPL1_INSPECTION_LOTS_POSTING'.

DEQUEUE_EMMARCE CALL FUNCTION 'DEQUEUE_EMMARCE' EXPORTING matnr = object_tab-matnr werks = object_tab-werks.

QMAT_TAB_BUFFER_CREATE CALL FUNCTION 'QMAT_TAB_BUFFER_CREATE' EXPORTING i_qmat = l_qmat_akt_q.

QPL1_LOTS_FOR_STOCK CALL FUNCTION 'QPL1_LOTS_FOR_STOCK' EXPORTING i_material = qmat-matnr i_plant = qmat-werks i_type = l_qmat_akt_q-art i_read_stock = c_kreuz TABLES t_stock_tab = l_stock_tab EXCEPTIONS no_lots = 1 OTHERS = 2.

QPL1_INSPECTION_LOTS_POSTING CALL FUNCTION 'QPL1_INSPECTION_LOTS_POSTING'.

QPLS_MATERIAL_INSPECT_UPDATE CALL FUNCTION 'QPLS_MATERIAL_INSPECT_UPDATE' IN UPDATE TASK EXPORTING i_massenakt = c_kreuz i_document = g_beleg TABLES qmat_tab = g_post_tab.

DEQUEUE_EMMARCE CALL FUNCTION 'DEQUEUE_EMMARCE' EXPORTING matnr = qmat-matnr werks = qmat-werks.

QPWE_READ_STOCK_RELEVANT_TYPES



CALL FUNCTION 'QPWE_READ_STOCK_RELEVANT_TYPES' TABLES t_tq32tab = l_tq32_tab_bestrel EXCEPTIONS OTHERS = 1.

MATERIAL_READ_QINS CALL FUNCTION 'MATERIAL_READ_QINS' EXPORTING matnr = pi_qmat-matnr werks = pi_qmat-werks IMPORTING qmbestand_exi = g_bestand_exi.

TQSS1_READ CALL FUNCTION 'TQSS1_READ' EXPORTING i_werks = pi_werks IMPORTING e_tqss1 = l_tqss1 EXCEPTIONS no_entry = 1 OTHERS = 2.

TQ34_READ CALL FUNCTION 'TQ34_READ' EXPORTING i_art = l_tqss1-artqmat IMPORTING e_tq34 = px_tq34_akt_q EXCEPTIONS no_entry = 1 OTHERS = 2.

ENQUEUE_EMMARCE CALL FUNCTION 'ENQUEUE_EMMARCE' EXPORTING matnr = pi_matnr werks = pi_werks EXCEPTIONS foreign_lock = 1 system_failure = 2.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_LED_GREEN' text = px_tab_icon-insptype_active_on info = l_text_led_on IMPORTING result = px_tab_icon-insptype_active_on EXCEPTIONS icon_not_found = 0 outputfield_too_short = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_LED_INACTIVE' text = px_tab_icon-insptype_active_off info = l_text_led_off IMPORTING result = px_tab_icon-insptype_active_off EXCEPTIONS icon_not_found = 0 outputfield_too_short = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_LED_GREEN' text = px_tab_icon-insptype_deactive_on info = l_text_led_on IMPORTING result = px_tab_icon-insptype_deactive_on EXCEPTIONS icon_not_found = 0 outputfield_too_short = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_LED_INACTIVE' text = px_tab_icon-insptype_deactive_off info = l_text_led_off IMPORTING result = px_tab_icon-insptype_deactive_off EXCEPTIONS icon_not_found = 0 outputfield_too_short = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_LED_GREEN' text = px_tab_icon-insptypes_single_on info = l_text_led_on IMPORTING result = px_tab_icon-insptypes_single_on EXCEPTIONS icon_not_found = 0 outputfield_too_short = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_LED_INACTIVE' text = px_tab_icon-insptypes_single_off info = l_text_led_off IMPORTING result = px_tab_icon-insptypes_single_off EXCEPTIONS icon_not_found = 0 outputfield_too_short = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_LED_GREEN' text = px_tab_icon-insptypes_multiple_on info = l_text_led_on IMPORTING result = px_tab_icon-insptypes_multiple_on EXCEPTIONS icon_not_found = 0 outputfield_too_short = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_LED_INACTIVE' text = px_tab_icon-insptypes_multiple_off info = l_text_led_off IMPORTING result = px_tab_icon-insptypes_multiple_off EXCEPTIONS icon_not_found = 0 outputfield_too_short = 0.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = g_listheader_tab.

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = 'QMAT' TABLES dfies_tab = lt_fields.



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