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
.| Name | Type | Data Type | Description | Default Value |
| FROM_DB | Importing | TYPE BOOLEAN | X= Read for Database | |
| MAP_CONFIRMATION_DATE | Importing | TYPE BOOLEAN | X = Fill Confirmation Date from Object | |
| WITH_HISTORY | Importing | TYPE BOOLEAN | X= Read History and Maintenance Call Data | |
| KEY_DATE | Importing | TYPE SY-DATUM | Date on which the task list are read by startegy plans | |
| CALLS | Exporting | TYPE MPLAN_MHIO_T | Maintenance Plan Call Table | |
| CYCLES | Exporting | TYPE MPLAN_MMPT_T | Maintenance Plan Cycle Definitions | |
| HEADER | Exporting | TYPE MPLAN_MPLA | Maintenance Plan Header Data | |
| HISTORY | Exporting | TYPE MPLAN_MHIS_T | Maintenance Plan History Table | |
| ITEMS | Exporting | TYPE MPLAN_MPOS_T | Maintenance Plan Items | |
| ITEMS_ILOA | Exporting | TYPE MPLAN_ILOA_T | ILOA Data for Maintenance Plan Items | |
| LONGTEXTS | Exporting | TYPE MPLAN_LONGTEXT_T | Long Text Lines | |
| OBJECT_LISTS | Exporting | TYPE MPLAN_OBJK_T | Object List for Maintenance Items | |
| STATUS | Exporting | TYPE MPLAN_JSTAT_T | Status Table | |
| STRATEGY_CYCLES | Exporting | TYPE MPLAN_MMPT_T | Cycle Definitions of Strategy |
Exceptions of Method GET_DATA
MPLAN_MHIO_T
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