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

RCPREF03 SAP ABAP INCLUDE - General Include for Deletion with and without Archiving







RCPREF03 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 RCPREF03 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 RCPREF03. "Basic submit
SUBMIT RCPREF03 AND RETURN. "Return to original report after report execution complete
SUBMIT RCPREF03 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 with and without Archiving


INCLUDES used within this REPORT RCPREF03

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:

APPL_LOG_WRITE_MESSAGES CALL FUNCTION 'APPL_LOG_WRITE_MESSAGES' EXPORTING object = prot_object subobject = prot_subobject update_or_insert = 'I' TABLES messages = protocol EXCEPTIONS object_not_found = 1 subobject_not_found = 2 OTHERS = 3.

APPL_LOG_READ_INTERN CALL FUNCTION 'APPL_LOG_READ_INTERN' EXPORTING object = prot_object subobject = prot_subobject log_class = '4' language = sy-langu TABLES header_data = header_data header_parameters = header_parameters messages = messages message_parameters = message_parameters message_prepared = message_prepared EXCEPTIONS object_not_found = 1 subobject_not_found = 2 function_not_completed = 3 message_not_found = 4 parameter_missing = 5 OTHERS = 6.

APPL_LOG_WRITE_DB CALL FUNCTION 'APPL_LOG_WRITE_DB' EXPORTING object = ' ' subobject = ' ' TABLES object_with_lognumber = appl_log_interface EXCEPTIONS object_not_found = 1 subobject_not_found = 2 internal_error = 3 OTHERS = 4.

APPL_LOG_INIT CALL FUNCTION 'APPL_LOG_INIT' EXPORTING object = prot_object subobject = prot_subobject EXCEPTIONS object_not_found = 1 subobject_not_found = 2.

APPL_LOG_WRITE_HEADER CALL FUNCTION 'APPL_LOG_WRITE_HEADER' EXPORTING header = header EXCEPTIONS object_not_found = 1 subobject_not_found = 2 OTHERS = 3.

APPL_LOG_WRITE_MESSAGES CALL FUNCTION 'APPL_LOG_WRITE_MESSAGES' EXPORTING object = prot_object subobject = prot_subobject update_or_insert = 'I' TABLES messages = protocol EXCEPTIONS object_not_found = 1 subobject_not_found = 2 OTHERS = 3.

APPL_LOG_READ_INTERN CALL FUNCTION 'APPL_LOG_READ_INTERN' EXPORTING object = prot_object subobject = prot_subobject log_class = '4' language = sy-langu TABLES header_data = header_data header_parameters = header_parameters messages = messages message_parameters = message_parameters message_prepared = message_prepared EXCEPTIONS object_not_found = 1 subobject_not_found = 2 function_not_completed = 3 message_not_found = 4 parameter_missing = 5 OTHERS = 6.

APPL_LOG_WRITE_DB CALL FUNCTION 'APPL_LOG_WRITE_DB' EXPORTING object = ' ' subobject = ' ' TABLES object_with_lognumber = appl_log_interface EXCEPTIONS object_not_found = 1 subobject_not_found = 2 internal_error = 3 OTHERS = 4.

RS_LIST_SELECTION_TABLE CALL FUNCTION 'RS_LIST_SELECTION_TABLE' EXPORTING report = prog_name seltext = 'X' TABLES sel_tab = sel_tab EXCEPTIONS sel_tab_empty = 1 OTHERS = 2.

ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = 'X'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object i_msgtype = lc_error i_text = message_prepared-msgtxt.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object i_msgtype = lc_error i_text = message_prepared-msgtxt.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object i_msgtype = lc_error i_text = message_prepared-msgtxt.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object i_msgtype = lc_success i_text = text-035.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.



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