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

ILMRCPREF02 SAP ABAP INCLUDE - documentation and ABAP source code







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

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_PROTOCOL_INIT call function 'ARCHIVE_PROTOCOL_INIT' exporting i_detailprotocol = p_prot i_protocol_output = p_prot_o.

PROGRESS_INDICATOR call function 'PROGRESS_INDICATOR' exporting i_text = text-100 i_output_immediately = abap_true importing e_progress_sent = g_progress_sent.

DB_COMMIT call function 'DB_COMMIT'.

ARCHIVE_OPEN_FOR_WRITE call function 'ARCHIVE_OPEN_FOR_WRITE' exporting call_delete_job_in_test_mode = p_deltst create_archive_file = p_wriprd object = con_arch_object " <- 'PP_PLAN' comments = p_coment do_not_delete_data = l_not_delete destroy = l_destroy output_sel_screen_when_dialog = space importing archive_handle = handle exceptions internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.

ARCHIVE_PROTOCOL_WRITE call function 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = lv_object i_msgtype = 2 i_msgid = ls_mess_table-arbgb i_msgno = ls_mess_table-txtnr "#EC NO_INCOMP i_msgv1 = ls_mess_table-msgv1 i_msgv2 = ls_mess_table-msgv2 i_msgv3 = ls_mess_table-msgv3 i_msgv4 = ls_mess_table-msgv4.

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 = abap_true 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_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = lv_object i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.

PROGRESS_INDICATOR call function 'PROGRESS_INDICATOR' exporting i_text = text-101 i_msgv1 = lv_objects_processed i_msgv2 = lv_total_of_objects i_processed = lv_objects_processed i_total = lv_total_of_objects importing e_progress_sent = g_progress_sent.

DB_COMMIT call function 'DB_COMMIT'.

PROGRESS_INDICATOR call function 'PROGRESS_INDICATOR' exporting i_text = text-101 i_msgv1 = lv_objects_processed i_msgv2 = lv_total_of_objects i_processed = lv_objects_processed i_total = lv_total_of_objects i_output_immediately = abap_true. "force the progress output

ARCHIVE_WRITE_STATISTICS call function 'ARCHIVE_WRITE_STATISTICS' exporting archive_handle = handle.

ARCHIVE_PROTOCOL_WRITE call function 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting archive_handle = handle.

ARCHIVE_SAVE_OBJECT call function 'ARCHIVE_SAVE_OBJECT' exporting archive_handle = handle exceptions termination_requested = 1 data_object_not_saved = 6.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = lv_object i_text = lf_text i_msgtype = 2.

ARCHIVE_PROTOCOL_COLLECT





call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = lv_object i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = lv_object i_msgtype = 1 i_text = lf_text.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = lv_object i_msgtype = 1 i_text = lf_text.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = lv_object i_msgtype = 1 i_text = lf_text.



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