SAP Reports / Programs

MPLAN_TEST_COPY_AND_SCHEDULE SAP ABAP Report - Test Program: Copy a Maintenance Plan and Compare with Original







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


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


Text pool values


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


INCLUDES used within this REPORT MPLAN_TEST_COPY_AND_SCHEDULE

INCLUDE MPLAN_OBJECT_TYPES.


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:

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'.



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