FILL_TABLES_AND_STRUCT SAP Method Fill Internal Tables and Structures
Below is documentation, parameters and attributes of ABAP Method FILL_TABLES_AND_STRUCT within SAP class MPLAN_SCHEDULE. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.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_SCHEDULE 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 FILL_TABLES_AND_STRUCT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method FILL_TABLES_AND_STRUCT
.| Name | Type | Data Type | Description | Default Value |
| ACTION | Importing | TYPE FCODE | Activity | |
| CALLS | Importing | TYPE MPLAN_MHIO_T | Maintenance Calls | |
| CYCLES | Importing | TYPE MPLAN_MMPT_T | Cycle Definition | |
| HEADER | Importing | TYPE MPLAN_MPLA | Maintenance Plan Header Data | |
| HISTORY | Importing | TYPE MPLAN_MHIS_T | Maintenance Plan History | |
| ITEMS | Importing | TYPE MPLAN_MPOS_T | Maintenance Items for API | |
| ITEMS_ILOA | Importing | TYPE MPLAN_ILOA_T | ILOA for Maintenance Plan | |
| ITEMS_OBJECT_LISTS | Importing | TYPE MPLAN_OBJK_T | Maintenance Item Object List | |
| KEEP | Importing | TYPE BOOLEAN | Boolean Variable (X=true, -=false, space=unknown) | |
| LONGTEXTS | Importing | TYPE MPLAN_LONGTEXT_T | Long Text Lines | |
| STATUS | Importing | TYPE MPLAN_JSTAT_T | Individual Status | |
| AMHIS | Exporting | TYPE WC_T_WMHIS | Preventive Maintenance Plan History | |
| AMHIS_ORIGINAL | Exporting | TYPE WC_T_WMHIS | ||
| EINFACHPLAN | Exporting | TYPE CHAR1 | Single-Character Indicator | |
| IILOA | Exporting | TYPE WC_T_WILOA | PM Object Location and Account Assignment | |
| IMHIO | Exporting | TYPE WC_T_WMHIO | Call Objects for Maintenance Plan | |
| IMMPT | Exporting | TYPE WC_T_WMMPT | Cycle definitions and MeasPoints for MaintPlan | |
| IMPLA | Exporting | TYPE WC_WMPLA | Maintenance Plan | |
| IMPOS | Exporting | TYPE WC_T_WMPOS | Maintenance Plan Item | |
| JSTAT | Exporting | TYPE MPLAN_JSTAT_T | Table Type for JSTAT | |
| MISCHPLAN | Exporting | TYPE CHAR1 | Single-Character Indicator | |
| T_PACKAGE_DATA | Exporting | TYPE WC_T_PACKAGE_DATA | ||
| T_PACKAGE_DATA_ST_TL | Exporting | TYPE WC_T_PACKAGE_DATA_ST_TL | Data of Packages | |
| X_T399W | Exporting | TYPE T399W | Maintenance Plan Category Parameter | |
| RMIPM | Changing | TYPE RMIPM | Preventive Maintenance I/O Table | |
| T_IMHIS | Changing | TYPE WC_T_WMHIS | Preventive Maintenance Plan History |
Exceptions of Method FILL_TABLES_AND_STRUCT
WC_T_WMHIS
WC_T_WMHIS
Example ABAP coding
This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.DATA: lo_class TYPE REF TO MPLAN_SCHEDULE.
DATA: lv_ACTION TYPE FCODE,
lv_AMHIS TYPE WC_T_WMHIS,
lv_AMHIS_ORIGINAL TYPE WC_T_WMHIS,
lv_CALLS TYPE MPLAN_MHIO_T,
lv_CYCLES TYPE MPLAN_MMPT_T,
lv_EINFACHPLAN TYPE CHAR1,
lv_HEADER TYPE MPLAN_MPLA,
lv_HISTORY TYPE MPLAN_MHIS_T,
lv_IILOA TYPE WC_T_WILOA,
lv_IMHIO TYPE WC_T_WMHIO,
lv_IMMPT TYPE WC_T_WMMPT,
lv_IMPLA TYPE WC_WMPLA,
lv_IMPOS TYPE WC_T_WMPOS,
lv_ITEMS TYPE MPLAN_MPOS_T,
lv_ITEMS_ILOA TYPE MPLAN_ILOA_T,
lv_ITEMS_OBJECT_LISTS TYPE MPLAN_OBJK_T,
lv_JSTAT TYPE MPLAN_JSTAT_T,
lv_KEEP TYPE BOOLEAN,
lv_LONGTEXTS TYPE MPLAN_LONGTEXT_T,
lv_MISCHPLAN TYPE CHAR1,
lv_RMIPM TYPE RMIPM,
lv_STATUS TYPE MPLAN_JSTAT_T,
lv_T_IMHIS TYPE WC_T_WMHIS,
lv_T_PACKAGE_DATA TYPE WC_T_PACKAGE_DATA,
lv_T_PACKAGE_DATA_ST_TL TYPE WC_T_PACKAGE_DATA_ST_TL,
lv_X_T399W TYPE T399W,
lv_other TYPE c.
CALL METHOD lo_class=>FILL_TABLES_AND_STRUCT(
EXPORTING
ACTION = lv_ACTION
CALLS = lv_CALLS
CYCLES = lv_CYCLES
HEADER = lv_HEADER
HISTORY = lv_HISTORY
ITEMS = lv_ITEMS
ITEMS_ILOA = lv_ITEMS_ILOA
ITEMS_OBJECT_LISTS = lv_ITEMS_OBJECT_LISTS
KEEP = lv_KEEP
LONGTEXTS = lv_LONGTEXTS
STATUS = lv_STATUS
IMPORTING
AMHIS = lv_AMHIS
AMHIS_ORIGINAL = lv_AMHIS_ORIGINAL
EINFACHPLAN = lv_EINFACHPLAN
IILOA = lv_IILOA
IMHIO = lv_IMHIO
IMMPT = lv_IMMPT
IMPLA = lv_IMPLA
IMPOS = lv_IMPOS
JSTAT = lv_JSTAT
MISCHPLAN = lv_MISCHPLAN
T_PACKAGE_DATA = lv_T_PACKAGE_DATA
T_PACKAGE_DATA_ST_TL = lv_T_PACKAGE_DATA_ST_TL
X_T399W = lv_X_T399W
CHANGING
RMIPM = lv_RMIPM
T_IMHIS = lv_T_IMHIS ).
Links to Related Class(s)
MPLAN_SC...Full list of available SAP object classes
Search for further information about these or an SAP related objects