MPLAN_TEST_COPY_AND_SCHEDULE is a standard Executable ABAP Report 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 MPLAN_TEST_COPY_AND_SCHEDULE into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: P_WARPLN = New External Number
Selection Text: P_STADT = D .
Selection Text: P_SZAEH = D .
Selection Text: P_WARPL = D .
Title: Test Program: Copy a Maintenance Plan and Compare with Original
INCLUDE MPLAN_OBJECT_TYPES.
No SAP DATABASE tables are accessed within this REPORT code!
MPLAN_READ CALL FUNCTION 'MPLAN_READ' EXPORTING mplan = p_warpl IMPORTING header = ls_header_read TABLES items = lt_items_read cycles = lt_cycles_read longtexts = lt_longtexts_read history = lt_history_read calls = lt_calls_read return = lt_return.
MPLAN_CREATE CALL FUNCTION 'MPLAN_CREATE' EXPORTING header = ls_header_read IMPORTING number = lv_number TABLES items = lt_items_read cycles = lt_cycles_read longtexts = lt_longtexts_read numberswitch = lt_numberswitch return = lt_return.
MPLAN_READ CALL FUNCTION 'MPLAN_READ' EXPORTING mplan = lv_number lock = 'X' no_buffer = 'X' IMPORTING header = ls_header_create TABLES items = lt_items_create cycles = lt_cycles_create longtexts = lt_longtexts_create history = lt_history_create calls = lt_calls_create return = lt_return.
BAPI_TRANSACTION_ROLLBACK CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
MPLAN_TEST_COPY_AND_SCHEDULE - Test Program: Copy a Maintenance Plan and Compare with Original MPLAN_TEST_COPY_AND_SCHEDULE - Test Program: Copy a Maintenance Plan and Compare with Original MPLAN_TEST_COPY_AND_CHECK_ITEM - Copy of Maintenance Item and Comparison with Original MPLAN_TEST_COPY_AND_CHECK_ITEM - Copy of Maintenance Item and Comparison with Original MPLAN_TEST_COPY_AND_CHECK - Test Program: Copy a Maintenance Plan and Compare with Original MPLAN_TEST_COPY_AND_CHECK - Test Program: Copy a Maintenance Plan and Compare with Original