MPLAN_CREATE SAP Method Create Maintenance Plan









Below is documentation, parameters and attributes of ABAP Method MPLAN_CREATE 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_CREATE can also be found below:

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


Parameters of Method MPLAN_CREATE

.

NameTypeData TypeDescriptionDefault Value
CYCLESImportingTYPE
MPLAN_MMPT_T
Maintenance Plan Cycle Definitions
DIALOGImportingTYPE
BOOLEAN
X = Dialog, Do Not Save Immediately
HEADERImportingTYPE
MPLAN_MPLA
Maintenance Plan Header Data
ITEMSImportingTYPE
MPLAN_MPOS_T
Maintenance Plan Items
ITEMS_LINEAR_DATAImportingTYPE
EAML_T_LFE_DATA_MPOS_API_T
LONGTEXTSImportingTYPE
MPLAN_LONGTEXT_T
Long Text Lines
NO_SI_CONVERSIONImportingTYPE
BOOLEAN
X = Do Not Run Conversion to Issue Units
REDUCED_CHECKSImportingTYPE
BOOLEAN
Only Partially Check Consistency
CREATE_BY_REFImportingTYPE
BOOLEAN
Boolean Variable (X = True, - = False, Space = Unknown)
FM_MIGRATIONImportingTYPE
BOOLEAN
Check Wether it is Migration FM
ITEMS_LINEAR_DATAImportingTYPE
EAML_T_LFE_DATA_MPOS_API_T
OBJ_LISTImportingTYPE
EAMS_T_SP_MPOS_OBJ_LIST
table type for object list in maintenance item
NUMBERExportingTYPE
WARPL
New Maintenance Plan Number
NUMBERSWITCHExportingTYPE
MPLAN_NUMBERSWITCH_T
Allocation Using Number Assignment
RETURNExportingTYPE
BAPIRETTAB
Notifications



Exceptions of Method MPLAN_CREATE

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO MPLAN_API.
DATA: lv_CYCLES TYPE MPLAN_MMPT_T,
lv_DIALOG TYPE BOOLEAN,
lv_HEADER TYPE MPLAN_MPLA,
lv_ITEMS TYPE MPLAN_MPOS_T,
lv_ITEMS_LINEAR_DATA TYPE EAML_T_LFE_DATA_MPOS_API_T,
lv_LONGTEXTS TYPE MPLAN_LONGTEXT_T,
lv_NO_SI_CONVERSION TYPE BOOLEAN,
lv_NUMBER TYPE WARPL,
lv_NUMBERSWITCH TYPE MPLAN_NUMBERSWITCH_T,
lv_REDUCED_CHECKS TYPE BOOLEAN,
lv_RETURN TYPE BAPIRETTAB,
lv_CREATE_BY_REF TYPE BOOLEAN,
lv_FM_MIGRATION TYPE BOOLEAN,
lv_ITEMS_LINEAR_DATA TYPE EAML_T_LFE_DATA_MPOS_API_T,
lv_OBJ_LIST TYPE EAMS_T_SP_MPOS_OBJ_LIST,
lv_other TYPE c.

CALL METHOD lo_class=>MPLAN_CREATE(
EXPORTING
CYCLES = lv_CYCLES
DIALOG = lv_DIALOG
HEADER = lv_HEADER
ITEMS = lv_ITEMS
ITEMS_LINEAR_DATA = lv_ITEMS_LINEAR_DATA
LONGTEXTS = lv_LONGTEXTS
NO_SI_CONVERSION = lv_NO_SI_CONVERSION
REDUCED_CHECKS = lv_REDUCED_CHECKS
CREATE_BY_REF = lv_CREATE_BY_REF
FM_MIGRATION = lv_FM_MIGRATION
ITEMS_LINEAR_DATA = lv_ITEMS_LINEAR_DATA
OBJ_LIST = lv_OBJ_LIST
IMPORTING
NUMBER = lv_NUMBER
NUMBERSWITCH = lv_NUMBERSWITCH
RETURN = lv_RETURN ).

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!