RQBAAM20 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report generates incoming inspection lots for the open purchase orders and scheduling agreements...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 RQBAAM20 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
QI07 - Incoming insp. and open pur. orders
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.
Selection Text: VARIANT = D Layout
Selection Text: S_WERK = D Plant
Selection Text: S_MATNR = D Material
Selection Text: S_LIFNR = D Vendor
Selection Text: P_LDATUM = D Delivery date
Selection Text: P_EROFF = Opening period (D)
Selection Text: P_BATCH = D Inspect without batch
Title: Worklist of Source Inspections
Text Symbol: TF4 = Inspection lot will be created when you save
Text Symbol: TF3 = Source insp. not possible due to rel. status
Text Symbol: TF2 = Batch not specified in order
Text Symbol: TES = Enter text here
Text Symbol: T14 = Created insp. lot:
Text Symbol: T13 = Error creating insp. lot
Text Symbol: T12 = DP
Text Symbol: T06 = Item
Text Symbol: T05 = Doc.no.
Text Symbol: T01 = Comments
Text Symbol: H03 = Source inspection possible
Text Symbol: H02 = Source inspection possible, but not required
Text Symbol: H01 = Source inspection not possible
Text Symbol: H00 = Key:
Text Symbol: F01 = My default
Text Symbol: 001 = x
INCLUDE RQALVTOP.
INCLUDE RQALVF14.
INCLUDE RQ00MF10.
No SAP DATABASE tables are accessed within this REPORT code!
STATUS_READ CALL FUNCTION 'STATUS_READ' EXPORTING client = sy-mandt objnr = g_qinf_tab-objnr only_active = g_x TABLES status = l_status EXCEPTIONS object_not_found = 01.
QBCK_QINF_STATUS_NEXT CALL FUNCTION 'QBCK_QINF_STATUS_NEXT' EXPORTING i_objnr = g_qinf_tab-objnr i_jstat = l_jstat i_delete_tab_entry = g_x TABLES t_tj30_tab = l_tj30_tab EXCEPTIONS object_not_found = 01 no_next_status = 02.
QAAT_CHECK_QALS_WE CALL FUNCTION 'QAAT_CHECK_QALS_WE' EXPORTING i_matnr = g_qbbp_tab-matnr i_charg = g_qbbp_tab-charg i_lichn = g_qbbp_tab-lichn i_ebeln = g_qbbp_tab-ebeln i_ebelp = g_qbbp_tab-ebelp i_etenr = g_qbbp_tab-etenr i_pastrterm = g_datum IMPORTING e_subrc = g_subrc.
QAAT_CHECK_QALS_WE CALL FUNCTION 'QAAT_CHECK_QALS_WE' EXPORTING i_matnr = g_qbbp_tab-matnr i_charg = g_qbbp_tab-charg i_lichn = g_qbbp_tab-lichn i_ebeln = g_lief_tab-ebeln i_ebelp = g_qbbp_tab-ebelp i_etenr = g_qbbp_tab-etenr IMPORTING e_subrc = g_subrc.
MB_READ_TMPPF CALL FUNCTION 'MB_READ_TMPPF' EXPORTING profile = l_mtqss-mprof IMPORTING mpn_parameters = l_tmppf EXCEPTIONS no_entry = 1.
MARA_SINGLE_READ CALL FUNCTION 'MARA_SINGLE_READ' EXPORTING matnr = l_qals-ematnr IMPORTING wmara = l_mpn.
QPL1_INSPECTION_LOT_CREATE CALL FUNCTION 'QPL1_INSPECTION_LOT_CREATE' EXPORTING qals_imp = l_qals rmqed_imp = l_rmqed IMPORTING e_qals = l_qals subrc = l_subrc EXCEPTIONS OTHERS = 1.
QPL1_UPDATE_MEMORY CALL FUNCTION 'QPL1_UPDATE_MEMORY' EXPORTING i_qals = l_qals.
QPL1_INSPECTION_LOTS_POSTING CALL FUNCTION 'QPL1_INSPECTION_LOTS_POSTING'.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = g_repid i_internal_tabname = internal_tabname * i_structure_name = 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.
COPO_POPUP_TO_DISPLAY_TEXTLIST CALL FUNCTION 'COPO_POPUP_TO_DISPLAY_TEXTLIST' EXPORTING task = 'DISPLAY' titel = text-h00 * IMPORTING * FUNCTION = TABLES text_table = l_text_table .
QAUT_CHECK_TCODE CALL FUNCTION 'QAUT_CHECK_TCODE' EXPORTING i_tcode = 'QA01' EXCEPTIONS no_authorization = 01.
REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = g_listheader_tab.
QAUT_CHECK_TCODE CALL FUNCTION 'QAUT_CHECK_TCODE' EXPORTING i_tcode = p_tcode.
MATERIAL_READ_MAQM CALL FUNCTION 'MATERIAL_READ_MAQM' EXPORTING schluessel = mtcom IMPORTING matdaten = mtqss TABLES seqmat01 = l_dummy_tab.
MATERIAL_READ_MAQM CALL FUNCTION 'MATERIAL_READ_MAQM' EXPORTING schluessel = l_mtcom IMPORTING matdaten = p_mtqss return = l_mtcor EXCEPTIONS material_not_found = 01.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RQBAAM20 - Worklist of Source Inspections RQBAAM20 - Worklist of Source Inspections RQBAAM10 - QM Release: Collective Maintenance RQBAAM10 - QM Release: Collective Maintenance RQAXPU00 - XPRA for Converting the Scrap Qty. in QAPP (3.00/3.0A/3.0B -> 3.0C) RQAXPU00 - XPRA for Converting the Scrap Qty. in QAPP (3.00/3.0A/3.0B -> 3.0C)