SAP Reports / Programs

SAPDBQMI SAP ABAP Report - PM Notifications Logical Database







SAPDBQMI is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The data base QMI provides individual items and tasks for quantities to be selected...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 SAPDBQMI 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 SAPDBQMI. "Basic submit
SUBMIT SAPDBQMI AND RETURN. "Return to original report after report execution complete
SUBMIT SAPDBQMI 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: AUFNR = D Order
Selection Text: STRNO = D Functional location
Selection Text: SERIALNR = D Serial number
Selection Text: SELSCHEM = D Selection profile
Selection Text: QMNUM = D Notification
Selection Text: QMART = D Notification type
Selection Text: MATNR = D Material
Selection Text: EQUNR = D Equipment
Selection Text: DY_RST = D Postponed
Selection Text: DY_PARVW = D Partner function
Selection Text: DY_PARNR = D Partners
Selection Text: DY_OFN = D Outstanding
Selection Text: DY_MAB = D Completed
Selection Text: DY_IAR = D In process
Selection Text: DY_ADRFL = Address selection exists
Selection Text: DEVICEID = D Additional device data
Selection Text: DATUV = D From date
Selection Text: DATUB = D To date
Title: PM Notifications Logical Database
Text Symbol: V02 = No free parameters
Text Symbol: V01 = No status and address selection, no free selection parameters
Text Symbol: AD1 = Address Search Active
Text Symbol: AD0 = Address Search Inactive
Text Symbol: 013 = Cls.
Text Symbol: 012 = Notification selection
Text Symbol: 011 = Notification status
Text Symbol: 010 = to
Text Symbol: 009 = Notification date
Text Symbol: 008 = Addr.
Text Symbol: 006 = Partners
Text Symbol: 005 = Sel.profile
Text Symbol: 004 = Completed
Text Symbol: 003 = In process
Text Symbol: 002 = Postponed
Text Symbol: 001 = Outstanding


INCLUDES used within this REPORT SAPDBQMI

INCLUDE DBAFIF01.
INCLUDE DBQMIF01.
INCLUDE DBQMIF02.




INCLUDE DBQMIF03.
INCLUDE MIOLXF65.
INCLUDE MIOLXF67.
INCLUDE MIOLXF90. "FOR TIME ZONE FUNCTIONALITY
INCLUDE MIHIXF92. "FOR TIME ZONE FUNCTIONALITY
INCLUDE MIHIXF95. "FOR TIME ZONE FUNCTIONALITY


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:

PM_PARTNER_LENGTH CALL FUNCTION 'PM_PARTNER_LENGTH' EXPORTING parnr_imp = h_parnr parvw = h_parvw * NRART = IMPORTING parnr_exp = h_parnr * NRART_EXP = EXCEPTIONS parvw_and_nrart_inital = 01 invalid_parvw = 02.

PM_PARTNER_VALUE_REQUEST CALL FUNCTION 'PM_PARTNER_VALUE_REQUEST' EXPORTING parnr_imp = dy_parnr repid = h_repid IMPORTING parnr_exp = dy_parnr.

F4_SELECT_FROM_SEARCH_HELP CALL FUNCTION 'F4_SELECT_FROM_SEARCH_HELP' EXPORTING shlp = g_shlp TABLES selopt_tab = g_selopt_tab fields = h_field_tab values = g_adrnr_tab EXCEPTIONS invalid_shlpname = 1 invalid_values_table = 2 internal_error = 3 OTHERS = 4.

CLCA_GET_CLASSTYPES_FROM_TABLE CALL FUNCTION 'CLCA_GET_CLASSTYPES_FROM_TABLE' EXPORTING spras = sy-langu table = h_table with_text = ' ' TABLES iklart = h_iklart EXCEPTIONS no_classtype_found = 01.

CLSC_SELECT_OBJECTS_FROM_CLASS CALL FUNCTION 'CLSC_SELECT_OBJECTS_FROM_CLASS' EXPORTING klart = h_iklart-klart table = h_table result_no_display = h_no_disp TABLES objects = clobj_tab EXCEPTIONS pf03 = 01 pf12 = 02 pf15 = 03.

CR_WORKCENTER_PRE_READ CALL FUNCTION 'CR_WORKCENTER_PRE_READ' TABLES tarbid = h_tarbid.

STATUS_BUFFER_REFRESH CALL FUNCTION 'STATUS_BUFFER_REFRESH'.

STATUS_PRE_READ CALL FUNCTION 'STATUS_PRE_READ' TABLES jsto_pre_tab = g_objnr_tab.

STATUS_CHECK_BY_SELSCHEM CALL FUNCTION 'STATUS_CHECK_BY_SELSCHEM' EXPORTING objnr = -objnr selid = selschem IMPORTING fullfill = h_fullfill.

PM_DB_FILL_DIQMEL CALL FUNCTION 'PM_DB_FILL_DIQMEL' EXPORTING i_viqmel = ls_viqmel IMPORTING e_diqmel = diqmel.

PM_DB_FILL_DIEQUI CALL FUNCTION 'PM_DB_FILL_DIEQUI' EXPORTING i_equi = equi i_eqkt = eqkt io_ldb = go_eam_qmi_services IMPORTING e_diequi = diequi.

PM_DB_FILL_DIIFLO CALL FUNCTION 'PM_DB_FILL_DIIFLO' EXPORTING i_iflo = iflo io_ldb = go_eam_qmi_services IMPORTING e_diiflo = diiflo.

PM_DB_FILL_DIIHPA CALL FUNCTION 'PM_DB_FILL_DIIHPA' EXPORTING i_ihpa = ls_ihpa IMPORTING e_diihpa = diihpa.

CLCA_GET_CLASSTYPES_FROM_TABLE CALL FUNCTION 'CLCA_GET_CLASSTYPES_FROM_TABLE' EXPORTING spras = sy-langu table = h_table with_text = ' ' TABLES iklart = h_iklart EXCEPTIONS no_classtype_found = 01.

CLAF_CLASSIFICATION_OF_OBJECTS CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS' EXPORTING classtype = h_iklart-klart features = ' ' object = h_object TABLES t_class = g_class t_objectdata = g_clobjdat EXCEPTIONS no_classification = 01 * no_classtypes = 02. "971763

CLAF_CLASSIFICATION_OF_OBJECTS





CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS' EXPORTING classtype = diclass-klart clint = diclass-clint features = 'X' object = h_object inherited_char = 'X' TABLES t_class = h_class t_objectdata = g_clobjdat EXCEPTIONS no_classification = 01 * no_classtypes = 02. "971763

PM_DB_FILL_DIAUFK CALL FUNCTION 'PM_DB_FILL_DIAUFK' EXPORTING i_viaufks = ls_viaufks io_ldb = go_eam_qmi_services IMPORTING e_diaufk = diaufk.

PM_DB_FILL_DIAUFK CALL FUNCTION 'PM_DB_FILL_DIAUFK' EXPORTING i_viaufks = ls_viaufks io_ldb = go_eam_qmi_services IMPORTING e_diaufk = diaufk.

INST_AUTHORITY_CHECK_ALL CALL FUNCTION 'INST_AUTHORITY_CHECK_ALL' EXPORTING qmart = diqmel-qmart begrp = h_begru iwerk = diqmel-iwerk swerk = diqmel-swerk tcode = h_tcode ingrp = diqmel-ingrp kokrs = diqmel-kokrs kostl = diqmel-kostl EXCEPTIONS keine_berechtigung_begrp = 1 keine_berechtigung_iwerk = 2 keine_berechtigung_swerk = 3 keine_berechtigung_auart = 4 keine_berechtigung_ingrp = 5 keine_berechtigung_kostl = 6 OTHERS = 7.

INST_AUTHORITY_CHECK_ALL CALL FUNCTION 'INST_AUTHORITY_CHECK_ALL' EXPORTING * BEGRP = ' ' iwerk = diaufk-iwerk swerk = diaufk-swerk tcode = 'IW33' auart = diaufk-auart ingrp = diaufk-ingpr * AKTTYP = ' ' kokrs = diaufk-kokrs kostl = diaufk-kostl EXCEPTIONS keine_berechtigung_begrp = 1 keine_berechtigung_iwerk = 2 keine_berechtigung_swerk = 3 keine_berechtigung_auart = 4 keine_berechtigung_ingrp = 5 keine_berechtigung_kostl = 6 OTHERS = 7.

OBJECT_KEY_GET CALL FUNCTION 'OBJECT_KEY_GET' EXPORTING i_objnr = l_objnr IMPORTING e_ionra = h_ionra EXCEPTIONS OTHERS = 1.

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING objnr = p_objnr status = stat-low EXCEPTIONS OTHERS = 1.



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