MPLAN_READ SAP Method Read Maintenance Plan









Below is documentation, parameters and attributes of ABAP Method MPLAN_READ within SAP class MPLAN_API. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name MPLAN_API into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Instance

This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.

The following technical details of method MPLAN_READ can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method MPLAN_READ

.

NameTypeData TypeDescriptionDefault Value
LOCKImportingTYPE
BOOLEAN
X=Set Block
MAP_CONFIRMATION_DATEImportingTYPE
BOOLEAN
X = Fill Confirmation Date from Object
MPLANImportingTYPE
WARPL
Maintenance Plan
NO_BUFFERImportingTYPE
BOOLEAN
Do Not Read from Buffer
NO_SI_CONVERSIONImportingTYPE
BOOLEAN
X = Do Not Run Conversion to Issue Units
WITH_HISTORYImportingTYPE
BOOLEAN
X= Read History and Call Data
KEY_DATEImportingTYPE
SY-DATUM
Date on which the task list are read by startegy plans
CALLSExportingTYPE
MPLAN_MHIO_T
Maintenance Call Table
CYCLESExportingTYPE
MPLAN_MMPT_T
Cycle Definitions
HEADERExportingTYPE
MPLAN_MPLA
Maintenance Plan Header Data
HISTORYExportingTYPE
MPLAN_MHIS_T
History Table
ITEMSExportingTYPE
MPLAN_MPOS_T
Maintenance Plan Items
ITEMS_ILOAExportingTYPE
MPLAN_ILOA_T
ILOA Data for Maintenance Plan Items
ITEMS_LINEAR_DATAExportingTYPE
EAML_T_LFE_DATA_MPOS_API_T
ITEMS_OBJECT_LISTSExportingTYPE
MPLAN_OBJK_T
Object List for Maintenance Items
LONGTEXTSExportingTYPE
MPLAN_LONGTEXT_T
Long Text Lines
RETURNExportingTYPE
BAPIRETTAB
Table with BAPI Return Information
STATUSExportingTYPE
MPLAN_JSTAT_T
Status Table
STRATEGY_CYCLESExportingTYPE
MPLAN_MMPT_T
Cycles for Strategy
ITEMS_LINEAR_DATAExportingTYPE
EAML_T_LFE_DATA_MPOS_API_T



Exceptions of Method MPLAN_READ

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO MPLAN_API.
DATA: lv_CALLS TYPE MPLAN_MHIO_T,
lv_CYCLES TYPE MPLAN_MMPT_T,
lv_HEADER TYPE MPLAN_MPLA,
lv_HISTORY TYPE MPLAN_MHIS_T,
lv_ITEMS TYPE MPLAN_MPOS_T,
lv_ITEMS_ILOA TYPE MPLAN_ILOA_T,
lv_ITEMS_LINEAR_DATA TYPE EAML_T_LFE_DATA_MPOS_API_T,
lv_ITEMS_OBJECT_LISTS TYPE MPLAN_OBJK_T,
lv_LOCK TYPE BOOLEAN,
lv_LONGTEXTS TYPE MPLAN_LONGTEXT_T,
lv_MAP_CONFIRMATION_DATE TYPE BOOLEAN,
lv_MPLAN TYPE WARPL,
lv_NO_BUFFER TYPE BOOLEAN,
lv_NO_SI_CONVERSION TYPE BOOLEAN,
lv_RETURN TYPE BAPIRETTAB,
lv_STATUS TYPE MPLAN_JSTAT_T,
lv_STRATEGY_CYCLES TYPE MPLAN_MMPT_T,
lv_WITH_HISTORY TYPE BOOLEAN,
lv_ITEMS_LINEAR_DATA TYPE EAML_T_LFE_DATA_MPOS_API_T,
lv_KEY_DATE TYPE SY-DATUM,
lv_other TYPE c.

CALL METHOD lo_class=>MPLAN_READ(
EXPORTING
LOCK = lv_LOCK
MAP_CONFIRMATION_DATE = lv_MAP_CONFIRMATION_DATE
MPLAN = lv_MPLAN
NO_BUFFER = lv_NO_BUFFER
NO_SI_CONVERSION = lv_NO_SI_CONVERSION
WITH_HISTORY = lv_WITH_HISTORY
KEY_DATE = lv_KEY_DATE
IMPORTING
CALLS = lv_CALLS
CYCLES = lv_CYCLES
HEADER = lv_HEADER
HISTORY = lv_HISTORY
ITEMS = lv_ITEMS
ITEMS_ILOA = lv_ITEMS_ILOA
ITEMS_LINEAR_DATA = lv_ITEMS_LINEAR_DATA
ITEMS_OBJECT_LISTS = lv_ITEMS_OBJECT_LISTS
LONGTEXTS = lv_LONGTEXTS
RETURN = lv_RETURN
STATUS = lv_STATUS
STRATEGY_CYCLES = lv_STRATEGY_CYCLES
ITEMS_LINEAR_DATA = lv_ITEMS_LINEAR_DATA ).

Links to Related Class(s)

MPLAN_AP...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!