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

RQRQAB10 SAP ABAP Report - Archive QM Transaction Data, Write Archive







RQRQAB10 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Archiving QM Movement Data: Archiving Program This executable program archives all inspection lots considered for archiving, including the subordinate segments of the logical database PGQ...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 RQRQAB10 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 RQRQAB10. "Basic submit
SUBMIT RQRQAB10 AND RETURN. "Return to original report after report execution complete
SUBMIT RQRQAB10 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: Q_PLSN = Inspection lot number
Title: Archive QM Transaction Data, Write Archive
Text Symbol: T01 = Restrictions within the program


INCLUDES used within this REPORT RQRQAB10

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:

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = rqreo-handle_01.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = rqreo-handle_01.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = rqreo-handle_01 record_structure = l_struct record_flags = l_flags record = p_record EXCEPTIONS internal_error = 01 wrong_access_to_archive = 02.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = rqreo-handle_01 record_structure = c_name_qmtb TABLES table = qmtb_tab.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = rqreo-handle_01 record_structure = c_name_qmtt TABLES table = qmtt_tab.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = rqreo-handle_01 record_structure = c_name_qpct TABLES table = qpct_tab.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = rqreo-handle_01 record_structure = c_name_qash TABLES table = qash_tab.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = rqreo-handle_01 record_structure = c_name_qast TABLES table = qast_tab.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = rqreo-handle_01 record_structure = c_name_qamb TABLES table = qamb_tab.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = rqreo-handle_01 record_structure = c_name_qamvrms TABLES table = qamvrms_tab.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = rqreo-handle_01 record_structure = c_name_qasrms TABLES table = qasrms_tab.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = rqreo-handle_01 record_structure = c_name_qaobjms TABLES table = qaobjms_tab.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = rqreo-handle_01.

CHANGEDOCU_ARCHIVE_OBJECT CALL FUNCTION 'CHANGEDOCU_ARCHIVE_OBJECT' EXPORTING client = qals-mandant archive_handle = rqreo-handle_01 objectclass = l_objectcl objectid = l_objectid object_delete_flag = ' '.

ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING call_delete_job_in_test_mode = testlauf create_archive_file = l_create_file object = c_arc_obj comments = comments IMPORTING archive_handle = rqreo-handle_01 EXCEPTIONS internal_error = 01 object_not_found = 02 open_error = 03.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = rqreo-handle_01 object_id = l_object_key EXCEPTIONS internal_error = 01 wrong_access_to_archive = 02.

TEXT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_ARCHIVE_OBJECT' EXPORTING archive_handle = rqreo-handle_01 client = qals-mandant id = c_textid_qals language = c_stern name = thead-tdname object = c_textobj_prueflos object_delete_flag = ' '.

TEXT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_ARCHIVE_OBJECT' EXPORTING archive_handle = rqreo-handle_01 client = qals-mandant id = c_textid_bb language = c_stern name = thead-tdname object = c_textobj_prueflos object_delete_flag = ' '.

TEXT_ARCHIVE_OBJECT





CALL FUNCTION 'TEXT_ARCHIVE_OBJECT' EXPORTING archive_handle = rqreo-handle_01 client = qamr-mandant id = c_textid_qamr language = c_stern name = thead-tdname object = c_textobj_merkmal object_delete_flag = ' '.

TEXT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_ARCHIVE_OBJECT' EXPORTING archive_handle = rqreo-handle_01 client = qasr-mandant id = c_textid_qasr language = c_stern name = thead-tdname object = c_textobj_probe object_delete_flag = ' '.

TEXT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_ARCHIVE_OBJECT' EXPORTING archive_handle = rqreo-handle_01 client = qask-mandant id = c_textid_qask language = c_stern name = thead-tdname object = c_textobj_klasse object_delete_flag = ' '.

TEXT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_ARCHIVE_OBJECT' EXPORTING archive_handle = rqreo-handle_01 client = qase-mandant id = c_textid_qase language = c_stern name = thead-tdname object = c_textobj_stueck object_delete_flag = ' '.

TEXT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_ARCHIVE_OBJECT' EXPORTING archive_handle = rqreo-handle_01 client = qave-mandant id = c_textid_qave language = c_stern name = thead-tdname object = c_textobj_prueflos object_delete_flag = ' '.

TEXT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_ARCHIVE_OBJECT' EXPORTING archive_handle = rqreo-handle_01 client = qalt-mandant id = c_textid_qalt language = c_stern name = thead-tdname object = c_textobj_teillos object_delete_flag = ' '.

STATUS_ARCHIVE_OBJECT CALL FUNCTION 'STATUS_ARCHIVE_OBJECT' EXPORTING archive_handle = rqreo-handle_01 object_delete_flag = ' ' i_mandt = qals-mandant i_objnr = p_objnr EXCEPTIONS wrong_access_to_archive = 01.

P_CONF_ARCHIVE_OBJECT CALL FUNCTION 'P_CONF_ARCHIVE_OBJECT' EXPORTING archive_handle = rqreo-handle_01 confnr = p_rueck archive_object = 'QM_CONTROL'.

DOKUMENTE_ZU_OBJEKT CALL FUNCTION 'DOKUMENTE_ZU_OBJEKT' EXPORTING key = lv_objky objekt = lc_dokob TABLES doktab = lt_drad EXCEPTIONS kein_dokument = 1 OTHERS = 2.

CV_OBJL_ARCHIVE_OBJECT CALL FUNCTION 'CV_OBJL_ARCHIVE_OBJECT' EXPORTING archive_handle = rqreo-handle_01 object_delete_flag = space "do not delete document links! archive_object = lc_arcobj i_object = -dokob i_object_key = -objky EXCEPTIONS wrong_access_to_archive = 0 not_found = 0 no_authority = 0 OTHERS = 0. "no need to react on exceptions here



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