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

RQPRSAF01 SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

FREE_SELECTIONS_INIT CALL FUNCTION 'FREE_SELECTIONS_INIT' EXPORTING kind = 'G' field_groups_key = l_free_sel_groups_key expressions = pt_expressions IMPORTING selection_id = s_selid number_of_active_fields = p_count TABLES fields_tab = pt_field EXCEPTIONS OTHERS = 1.

FREE_SELECTIONS_INIT CALL FUNCTION 'FREE_SELECTIONS_INIT' EXPORTING kind = 'G' field_groups_key = l_free_sel_groups_key expressions = pt_expressions IMPORTING selection_id = s_selid number_of_active_fields = p_count TABLES fields_tab = pt_field EXCEPTIONS OTHERS = 1.

FREE_SELECTIONS_DIALOG CALL FUNCTION 'FREE_SELECTIONS_DIALOG' EXPORTING title = 'Freie Abgrenzungen zu Probe und Probenahme'(sel) selection_id = s_selid IMPORTING where_clauses = lt_clauses expressions = pt_expressions number_of_active_fields = p_count TABLES fields_tab = pt_field EXCEPTIONS internal_error = 1 no_action = 2 selid_not_found = 3 illegal_status = 4 OTHERS = 5.

FREE_SELECTIONS_EX_2_WHERE CALL FUNCTION 'FREE_SELECTIONS_EX_2_WHERE' EXPORTING expressions = lt_expressions IMPORTING where_clauses = lt_where EXCEPTIONS expression_not_supported = 1 OTHERS = 2.

RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING curr_report = l_report TABLES selection_table = lt_rsparams EXCEPTIONS OTHERS = 1.

FREE_SELECTIONS_EX_2_RANGE CALL FUNCTION 'FREE_SELECTIONS_EX_2_RANGE' EXPORTING expressions = pt_expr IMPORTING field_ranges = lt_range EXCEPTIONS expression_not_supported = 1 incorrect_expression = 2 OTHERS = 3.

RS_LIST_SELECTION_TABLE CALL FUNCTION 'RS_LIST_SELECTION_TABLE' EXPORTING seltext = 'X' dyn_range = lt_range TABLES sel_tab = lt_rsparams EXCEPTIONS OTHERS = 1.

RS_LIST_SELECTION_TABLE CALL FUNCTION 'RS_LIST_SELECTION_TABLE' EXPORTING report = l_report seltext = 'X' dyn_range = lt_range TABLES sel_tab = lt_rsparams EXCEPTIONS OTHERS = 1.

QAST_STATUS_CHECK CALL FUNCTION 'QAST_STATUS_CHECK' EXPORTING i_objnr = l_objnr i_status = 'I0228' EXCEPTIONS status_not_activ = 1 OTHERS = 2.

STATUS_CHECK_BY_SELSCHEM CALL FUNCTION 'STATUS_CHECK_BY_SELSCHEM' EXPORTING objnr = -objnr selid = p_selid IMPORTING fullfill = l_fullfill EXCEPTIONS no_stat_tab = 1 no_stat_scheme = 2 OTHERS = 3.

ENQUEUE_EQQPRS CALL FUNCTION 'ENQUEUE_EQQPRS' EXPORTING mandt = -mandt phynr = -phynr EXCEPTIONS foreign_lock = 1.

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING objnr = -objnr status = c_status_loevm EXCEPTIONS object_not_found = 1 status_not_active = 2 OTHERS = 3.

STATUS_CHANGE_FOR_ACTIVITY CALL FUNCTION 'STATUS_CHANGE_FOR_ACTIVITY' EXPORTING check_only = p_check_only objnr = -objnr vrgng = p_activity IMPORTING activity_not_allowed = l_activity_not_allowed error_occurred = l_error_occured status_not_allowed = l_status_not_allowed warning_occurred = l_warning_occurred EXCEPTIONS activity_not_allowed = 1 status_not_allowed = 1 warning_occured = 2.

STATUS_CHANGE_FOR_ACTIVITY CALL FUNCTION 'STATUS_CHANGE_FOR_ACTIVITY' EXPORTING check_only = p_check_only objnr = p_objnr vrgng = p_activity IMPORTING activity_not_allowed = l_activity_not_allowed error_occurred = l_error_occured status_not_allowed = l_status_not_allowed warning_occurred = l_warning_occurred EXCEPTIONS activity_not_allowed = 1 status_not_allowed = 1 warning_occured = 2.



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