GET_DATA SAP Method Read Data









Below is documentation, parameters and attributes of ABAP Method GET_DATA within SAP class MPLAN_HEADER. 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_HEADER 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 GET_DATA can also be found below:

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


Parameters of Method GET_DATA

.

NameTypeData TypeDescriptionDefault Value
FROM_DBImportingTYPE
BOOLEAN
X= Read for Database
MAP_CONFIRMATION_DATEImportingTYPE
BOOLEAN
X = Fill Confirmation Date from Object
WITH_HISTORYImportingTYPE
BOOLEAN
X= Read History and Maintenance Call Data
KEY_DATEImportingTYPE
SY-DATUM
Date on which the task list are read by startegy plans
CALLSExportingTYPE
MPLAN_MHIO_T
Maintenance Plan Call Table
CYCLESExportingTYPE
MPLAN_MMPT_T
Maintenance Plan Cycle Definitions
HEADERExportingTYPE
MPLAN_MPLA
Maintenance Plan Header Data
HISTORYExportingTYPE
MPLAN_MHIS_T
Maintenance Plan History Table
ITEMSExportingTYPE
MPLAN_MPOS_T
Maintenance Plan Items
ITEMS_ILOAExportingTYPE
MPLAN_ILOA_T
ILOA Data for Maintenance Plan Items
LONGTEXTSExportingTYPE
MPLAN_LONGTEXT_T
Long Text Lines
OBJECT_LISTSExportingTYPE
MPLAN_OBJK_T
Object List for Maintenance Items
STATUSExportingTYPE
MPLAN_JSTAT_T
Status Table
STRATEGY_CYCLESExportingTYPE
MPLAN_MMPT_T
Cycle Definitions of Strategy



Exceptions of Method GET_DATA

CALLSExportingTYPE
MPLAN_MHIO_TMaintenance Plan Call TableCX_MPLAN_EXCEPTION_ROOT - General Exception Maintenance Plan API

Example ABAP coding


DATA: lo_class TYPE REF TO MPLAN_HEADER.
DATA: lv_CALLS TYPE MPLAN_MHIO_T,
lv_CYCLES TYPE MPLAN_MMPT_T,
lv_FROM_DB TYPE BOOLEAN,
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_LONGTEXTS TYPE MPLAN_LONGTEXT_T,
lv_MAP_CONFIRMATION_DATE TYPE BOOLEAN,
lv_OBJECT_LISTS TYPE MPLAN_OBJK_T,
lv_STATUS TYPE MPLAN_JSTAT_T,
lv_STRATEGY_CYCLES TYPE MPLAN_MMPT_T,
lv_WITH_HISTORY TYPE BOOLEAN,
lv_KEY_DATE TYPE SY-DATUM,
lv_other TYPE c.

CALL METHOD lo_class=>GET_DATA(
EXPORTING
FROM_DB = lv_FROM_DB
MAP_CONFIRMATION_DATE = lv_MAP_CONFIRMATION_DATE
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
LONGTEXTS = lv_LONGTEXTS
OBJECT_LISTS = lv_OBJECT_LISTS
STATUS = lv_STATUS
STRATEGY_CYCLES = lv_STRATEGY_CYCLES ).

Links to Related Class(s)

MPLAN_HE...
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!