MPLAN_TEST_CONSISTENCY 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_CONSISTENCY 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_MAXENT = Maximum Number of Entries
Selection Text: S_WARPL = D .
Title: Consistency Check Maintenance Plan API
Text Symbol: 001 = Items
Text Symbol: 002 = ILOA data
Text Symbol: 003 = Cycles
Text Symbol: 004 = Status
Text Symbol: 005 = Long Text
Text Symbol: 006 = Object List
Text Symbol: 007 = History Data
Text Symbol: 008 = Releases
INCLUDE MPLAN_OBJECT_TYPES.
INCLUDE MPLAN_TEST_SUBROUTINES.
No SAP DATABASE tables are accessed within this REPORT code!
MPLAN_READ_MPLA_MULTIPLE CALL FUNCTION 'MPLAN_READ_MPLA_MULTIPLE' EXPORTING * plan_keys = allow_empty_table = abap_true TABLES headers = lt_mpla.
MPLAN_READ_MULTIPLE CALL FUNCTION 'MPLAN_READ_MULTIPLE' TABLES warpl_read = lt_warpl headers = lt_header return = lt_return.
MPLAN_READ CALL FUNCTION 'MPLAN_READ' EXPORTING mplan = ls_header-warpl * IMPORTING * HEADER = TABLES items = lt_items items_iloa = lt_items_iloa items_object_lists = lt_items_object_lists cycles = lt_cycles status = lt_status longtexts = lt_longtext history = lt_history calls = lt_calls return = lt_return.
MPLAN_BUFFER_CLEAR CALL FUNCTION 'MPLAN_BUFFER_CLEAR' EXPORTING plan = ls_header-warpl.
MPLAN_BUFFER_CLEAR CALL FUNCTION 'MPLAN_BUFFER_CLEAR' EXPORTING item = ls_items-wapos.
MPLAN_READ CALL FUNCTION 'MPLAN_READ' EXPORTING mplan = ls_header-warpl IMPORTING header = ls_header_single TABLES items = lt_items_single items_iloa = lt_items_iloa_single items_object_lists = lt_items_object_lists_single cycles = lt_cycles_single status = lt_status_single longtexts = lt_longtext_single history = lt_history_single calls = lt_calls_single return = lt_return[].
MPLAN_BUFFER_CLEAR CALL FUNCTION 'MPLAN_BUFFER_CLEAR' EXPORTING item = ls_items-wapos.
MPLAN_ITEM_READ CALL FUNCTION 'MPLAN_ITEM_READ' EXPORTING mplan_item = ls_items-wapos IMPORTING item = ls_items item_iloa = ls_items_iloa_item TABLES item_object_list = lt_items_object_lists_item_r longtext = lt_longtext_item_r return = lt_return.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.