MPLAN_CREATE_BY_REFERENCE SAP Method of class MPLAN_API









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

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


Parameters of Method MPLAN_CREATE_BY_REFERENCE

.

NameTypeData TypeDescriptionDefault Value
IS_HEADERImportingTYPE
MPLAN_MPLA
Maintenance Plan Header Data
IS_HEADER_UPDATEImportingTYPE
MPLAN_MPLA_UPDATE
Change Indicator for Maintenance Plan Header
IS_PARAMImportingTYPE
EAMS_S_COPY_MPLAN_SETTINGS
Reference maintenance plan for copying
IT_CYCLESImportingTYPE
MPLAN_MMPT_T
Maintenance Plan Cycle Definitions
IT_CYCLES_UPDATEImportingTYPE
MPLAN_MMPT_UPDATE_T
Table for Change Indicator for Cycle
IT_ITEMSImportingTYPE
MPLAN_MPOS_T
Maintenance Plan Items
IT_ITEMS_UPDATEImportingTYPE
MPLAN_MPOS_UPDATE_T
Table for Change Indicator for Maintenance Item
IT_LONGTEXTSImportingTYPE
MPLAN_LONGTEXT_T
Long Text Lines
IV_TEMPLATE_PLANImportingTYPE
WARPL
Maintenance Plan Template
ET_RETURNExportingTYPE
BAPIRETTAB
Notifications
EV_NUMBERExportingTYPE
WARPL
Maintenance Plan Number



Exceptions of Method MPLAN_CREATE_BY_REFERENCE

This method does not have any exceptions

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_API.
DATA: lv_ET_RETURN TYPE BAPIRETTAB,
lv_EV_NUMBER TYPE WARPL,
lv_IS_HEADER TYPE MPLAN_MPLA,
lv_IS_HEADER_UPDATE TYPE MPLAN_MPLA_UPDATE,
lv_IS_PARAM TYPE EAMS_S_COPY_MPLAN_SETTINGS,
lv_IT_CYCLES TYPE MPLAN_MMPT_T,
lv_IT_CYCLES_UPDATE TYPE MPLAN_MMPT_UPDATE_T,
lv_IT_ITEMS TYPE MPLAN_MPOS_T,
lv_IT_ITEMS_UPDATE TYPE MPLAN_MPOS_UPDATE_T,
lv_IT_LONGTEXTS TYPE MPLAN_LONGTEXT_T,
lv_IV_TEMPLATE_PLAN TYPE WARPL,
lv_other TYPE c.

CALL METHOD lo_class=>MPLAN_CREATE_BY_REFERENCE(
EXPORTING
IS_HEADER = lv_IS_HEADER
IS_HEADER_UPDATE = lv_IS_HEADER_UPDATE
IS_PARAM = lv_IS_PARAM
IT_CYCLES = lv_IT_CYCLES
IT_CYCLES_UPDATE = lv_IT_CYCLES_UPDATE
IT_ITEMS = lv_IT_ITEMS
IT_ITEMS_UPDATE = lv_IT_ITEMS_UPDATE
IT_LONGTEXTS = lv_IT_LONGTEXTS
IV_TEMPLATE_PLAN = lv_IV_TEMPLATE_PLAN
IMPORTING
ET_RETURN = lv_ET_RETURN
EV_NUMBER = lv_EV_NUMBER ).

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!