SAP Reports / Programs | Production Planning and Control | Basic Data | Routing(PP-BD-RTG) SAP PP

RCPREF01 SAP ABAP INCLUDE - General Include for Deletion of Task Lists with Archiving







RCPREF01 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 RCPREF01 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 RCPREF01. "Basic submit
SUBMIT RCPREF01 AND RETURN. "Return to original report after report execution complete
SUBMIT RCPREF01 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: General Include for Deletion of Task Lists with Archiving


INCLUDES used within this REPORT RCPREF01

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:

POPUP_TO_DISPLAY_TEXT * call function 'POPUP_TO_DISPLAY_TEXT' * exporting * textline1 = text-013 * textline2 = text-014 * titel = text-012.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING defaultoption = 'N' textline1 = text-006 textline2 = text-007 titel = text-011 start_column = 25 start_row = 6 IMPORTING answer = answer EXCEPTIONS OTHERS = 01.

ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING call_delete_job_in_test_mode = delete_job_in_test_mode create_archive_file = create_archive_file object = con_arch_object comments = comments IMPORTING archive_handle = handle.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = handle.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = handle object_id = object_id.

CP_PLAN_ARCHIVE_OBJECT CALL FUNCTION 'CP_PLAN_ARCHIVE_OBJECT' EXPORTING archive_handle = handle plnty_imp = plan-plnty plnnr_imp = plan-plnnr plnal_imp = plan-plnal verwe_imp = plan-verwe werks_imp = plan-werks object_delete_flag = plan-ob_de_flg sttag_imp = plan-sttag flg_no_checks = plan-no_chk_flg reset_imp = plan-reset_flg flg_protocol = flg_protocol EXCEPTIONS wrong_access_to_archive = 1 plan_not_exist_on_db = 2 plan_in_use = 3 no_authority = 4 plnty_not_alloted_for_reorg = 5 sttag_gt_sy_datum = 6 foreign_lock = 7.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = handle.

CP_RE_EXPORT_PROTOCOL CALL FUNCTION 'CP_RE_EXPORT_PROTOCOL' EXPORTING handle = handle TABLES protocol = protocol.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = handle.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = handle.



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