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

.

NameTypeData TypeDescriptionDefault Value
ACTIONImportingTYPE
FCODE
Activity
CALLSImportingTYPE
MPLAN_MHIO_T
Maintenance Calls
CYCLESImportingTYPE
MPLAN_MMPT_T
Cycle Definition
HEADERImportingTYPE
MPLAN_MPLA
Maintenance Plan Header Data
HISTORYImportingTYPE
MPLAN_MHIS_T
Maintenance Plan History
ITEMSImportingTYPE
MPLAN_MPOS_T
Maintenance Items for API
ITEMS_ILOAImportingTYPE
MPLAN_ILOA_T
ILOA for Maintenance Plan
ITEMS_OBJECT_LISTSImportingTYPE
MPLAN_OBJK_T
Maintenance Item Object List
KEEPImportingTYPE
BOOLEAN
Boolean Variable (X=true, -=false, space=unknown)
LONGTEXTSImportingTYPE
MPLAN_LONGTEXT_T
Long Text Lines
STATUSImportingTYPE
MPLAN_JSTAT_T
Individual Status
AMHISExportingTYPE
WC_T_WMHIS
Preventive Maintenance Plan History
AMHIS_ORIGINALExportingTYPE
WC_T_WMHIS
EINFACHPLANExportingTYPE
CHAR1
Single-Character Indicator
IILOAExportingTYPE
WC_T_WILOA
PM Object Location and Account Assignment
IMHIOExportingTYPE
WC_T_WMHIO
Call Objects for Maintenance Plan
IMMPTExportingTYPE
WC_T_WMMPT
Cycle definitions and MeasPoints for MaintPlan
IMPLAExportingTYPE
WC_WMPLA
Maintenance Plan
IMPOSExportingTYPE
WC_T_WMPOS
Maintenance Plan Item
JSTATExportingTYPE
MPLAN_JSTAT_T
Table Type for JSTAT
MISCHPLANExportingTYPE
CHAR1
Single-Character Indicator
T_PACKAGE_DATAExportingTYPE
WC_T_PACKAGE_DATA
T_PACKAGE_DATA_ST_TLExportingTYPE
WC_T_PACKAGE_DATA_ST_TL
Data of Packages
X_T399WExportingTYPE
T399W
Maintenance Plan Category Parameter
RMIPMChangingTYPE
RMIPM
Preventive Maintenance I/O Table
T_IMHISChangingTYPE
WC_T_WMHIS
Preventive Maintenance Plan History



Exceptions of Method FILL_TABLES_AND_STRUCT

AMHISExportingTYPE
WC_T_WMHISPreventive Maintenance Plan HistoryAMHIS_ORIGINALExportingTYPE
WC_T_WMHISCX_MPLAN_EXCEPTION_ROOT - General Exception Maintenance Plan API

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



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!