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

MQEVAF20 SAP ABAP INCLUDE - documentation and ABAP source code







MQEVAF20 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 MQEVAF20 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 MQEVAF20. "Basic submit
SUBMIT MQEVAF20 AND RETURN. "Return to original report after report execution complete
SUBMIT MQEVAF20 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 MQEVAF20

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:

QAST_STATUS_CHECK CALL FUNCTION 'QAST_STATUS_CHECK' EXPORTING i_objnr = qals-objnr i_status = c_status_skip EXCEPTIONS status_not_activ = 01.

QDQL_USAGE_DECISION CALL FUNCTION 'QDQL_USAGE_DECISION' EXPORTING aufpl_imp = qals-aufpl dynkrit_imp = l_dynkrit kunnr_imp = qals-kunnr kzdyn_imp = qals-dyn lifnr_imp = qals-lifnr herst_imp = qals-hersteller matnr_imp = qals-matnr pruefart_imp = qals-art plnal_imp = qals-plnal plnnr_imp = qals-plnnr plnty_imp = qals-plnty prueflos_imp = qals-prueflos qals_dynhead_imp = qals-dynhead qals_objnr_imp = qals-objnr vbewertung_imp = rqeva-vbewertung werks_imp = qals-werk qals_dynregel_imp = qals-dynregel qals_stat44_imp = qals-stat44 IMPORTING dbewertung_exp = rqeva-dbewertung TABLES t_qamkr_tab = g_mktb.

QAST_STATUS_CHECK CALL FUNCTION 'QAST_STATUS_CHECK' EXPORTING i_objnr = qals-objnr i_status = c_status_lsto EXCEPTIONS status_not_activ = 1 OTHERS = 2.

QICD_UPDATE_QIWL_BY_LOT CALL FUNCTION 'QICD_UPDATE_QIWL_BY_LOT' EXPORTING i_kz_pruefung_abgebrochen = l_abgebrochen i_kz_pruefung_abgeschlossen = l_abgeschlossen i_kz_storno_prueflos = l_cancelled i_objnr = qals-objnr i_prueflos = qals-prueflos EXCEPTIONS not_subsystem_relevant = 01 no_entry_found_in_qiwl = 02.

QAST_STATUS_CHECK CALL FUNCTION 'QAST_STATUS_CHECK' EXPORTING i_objnr = qals-objnr i_status = c_status_qige EXCEPTIONS status_not_activ = 1 OTHERS = 2.

QAST_PROCESS_ACTIVITY CALL FUNCTION 'QAST_PROCESS_ACTIVITY' EXPORTING i_check_only = c_kreuz i_dialog = space i_objnr = qals-objnr i_vorgang = c_vorg_qinf_aktualisieren EXCEPTIONS not_allowed = 01.

QBCK_VE_QINF_STATUS CALL FUNCTION 'QBCK_VE_QINF_STATUS' EXPORTING i_auto = qals-stat01 i_freigabe = qave-vbewertung i_lifnr = qals-lifnr i_matnr = qals-matnr i_status = l_status i_werk = qals-werk i_revlv = qals-revlv i_prueflos = qals-prueflos i_ematnr = qals-ematnr i_stat17 = qals-stat17 IMPORTING e_qinf = g_qinf EXCEPTIONS no_lifnr = 01 no_matnr = 02 no_qinf = 03 no_werk = 04 no_status_changed = 08.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Qualitätsinformationssatz wird fortgeschrieben'(s03).

QBCK_QINF_VE_TO_DB CALL FUNCTION 'QBCK_QINF_VE_TO_DB' IN UPDATE TASK EXPORTING i_qinf = g_qinf.

QAST_PROCESS_ACTIVITY CALL FUNCTION 'QAST_PROCESS_ACTIVITY' EXPORTING i_dialog = space i_objnr = qals-objnr i_vorgang = c_vorg_qinf_aktualisieren EXCEPTIONS not_allowed = 01.

QAST_STATUS_CHECK CALL FUNCTION 'QAST_STATUS_CHECK' EXPORTING i_objnr = qals-objnr i_status = c_status_qige EXCEPTIONS status_not_activ = 1 OTHERS = 2.

QAST_PROCESS_ACTIVITY CALL FUNCTION 'QAST_PROCESS_ACTIVITY' EXPORTING i_check_only = c_kreuz i_dialog = space i_objnr = qals-objnr i_vorgang = c_vorg_qinf_aktualisieren EXCEPTIONS not_allowed = 01.

QBCK_QINF_READ CALL FUNCTION 'QBCK_QINF_READ' EXPORTING i_lifnr = qals-lifnr i_matnr = qals-matnr i_werk = qals-werk i_revlv = qals-revlv i_ematnr = qals-ematnr i_stat17 = qals-stat17 IMPORTING e_qinf = l_qinf EXCEPTIONS no_qinf = 1.

ENQUEUE_EQQINF CALL FUNCTION 'ENQUEUE_EQQINF' EXPORTING */ MODE_QINF = 'E' */ MANDT = SY-MANDT matnr = l_qinf-matnr zaehl = l_qinf-zaehl */ X_MATNR = ' ' */ X_ZAEHL = ' ' */ _SCOPE = '2' */ _WAIT = ' ' */ _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2.

QAST_STATUS_CHECK CALL FUNCTION 'QAST_STATUS_CHECK' EXPORTING i_objnr = qals-objnr i_status = c_status_rma EXCEPTIONS status_not_activ = 1 OTHERS = 2.

QAUT_STOCK_CHANGES CALL FUNCTION 'QAUT_STOCK_CHANGES' EXPORTING i_insmk = qals-insmk i_menge_nr = sy-index i_werk = qals-werkvorg EXCEPTIONS no_authorization = 4.

QAST_STATUS_CHECK CALL FUNCTION 'QAST_STATUS_CHECK' EXPORTING i_objnr = qals-objnr i_status = c_status_berf EXCEPTIONS status_not_activ = 01.

QAST_STATUS_CHECK CALL FUNCTION 'QAST_STATUS_CHECK' EXPORTING i_objnr = qals-objnr i_status = c_status_hum EXCEPTIONS status_not_activ = 01.

QHUG_GET_HU_QUANTITY





CALL FUNCTION 'QHUG_GET_HU_QUANTITY' EXPORTING i_prueflos = qals-prueflos i_lock = l_lock IMPORTING et_hu_headers = g_hu_headers_tb et_hu_items = g_hu_items_tb et_hutb = g_hutb e_humngzub = qals-lmengezub e_humngist = qals-lmengeist e_xdeliv = g_xdeliv E_BFWMS = G_BFWMS "note 1868793 EXCEPTIONS no_entry = 1 OTHERS = 2.

QTLS_PARTIAL_LOT_UD_READ_ALL CALL FUNCTION 'QTLS_PARTIAL_LOT_UD_READ_ALL' EXPORTING i_prueflos = qals-prueflos IMPORTING e_number_of_partial_lots = g_anz_teillose EXCEPTIONS x_no_partial_lots = 00.

QF20_CDF_POISSON_ESTIMATE CALL FUNCTION 'QF20_CDF_POISSON_ESTIMATE' EXPORTING sample_size = l_size sample_sum = rqeva-anz_fehler IMPORTING prob_above = g_anteil_qals.

FLOATINGPOINT_COMPARE_ABSOLUTE CALL FUNCTION 'FLOATINGPOINT_COMPARE_ABSOLUTE' EXPORTING max_absolute_deviation = cf_max_abw first_value = g_anteil_qals second_value = qals-anteil IMPORTING values_are_different = g_flag.

QLMSM_FETCH_MEMORY_FROM_DB CALL FUNCTION 'QLMSM_FETCH_MEMORY_FROM_DB' EXPORTING i_prueflos = qals-prueflos i_qasr_vorh = qals-stat07 EXCEPTIONS no_mult_spec = 1 no_operation = 2.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING defaultoption = 'Y' textline1 = text-012 textline2 = text-013 titel = text-014 IMPORTING answer = l_antwort.

QAST_STATUS_CHECK CALL FUNCTION 'QAST_STATUS_CHECK' EXPORTING i_objnr = qals-objnr i_status = c_status_fehl EXCEPTIONS status_not_activ = 1 OTHERS = 2.

QAST_STATUS_CHECK CALL FUNCTION 'QAST_STATUS_CHECK' EXPORTING i_objnr = qals-objnr i_status = c_status_rma EXCEPTIONS status_not_activ = 1 OTHERS = 2.

VB_BATCH_GET_DETAIL CALL FUNCTION 'VB_BATCH_GET_DETAIL' EXPORTING matnr = qals-matnr charg = qals-charg werks = qals-werkvorg IMPORTING ymcha = mcha.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = p_repid dynumb = p_dynnr TABLES dynpfields = l_dynpread_tab EXCEPTIONS invalid_abapworkarea = 01 invalid_dynprofield = 02 invalid_dynproname = 03 invalid_dynpronummer = 04 invalid_request = 05 no_fielddescription = 06 undefind_error = 07.

CLSE_SELECT_USR01 CALL FUNCTION 'CLSE_SELECT_USR01' IMPORTING decimal_sign = dflag separator = tflag EXCEPTIONS OTHERS = 0.

CHAR_FLTP_CONVERSION CALL FUNCTION 'CHAR_FLTP_CONVERSION' EXPORTING string = l_dynpread_tab-fieldvalue IMPORTING flstr = l_float.



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