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
.| Name | Type | Data Type | Description | Default Value |
| CYCLES | Importing | TYPE MPLAN_MMPT_T | Maintenance Plan Cycle Definitions | |
| DIALOG | Importing | TYPE BOOLEAN | X = Dialog, Do Not Save Immediately | |
| HEADER | Importing | TYPE MPLAN_MPLA | Maintenance Plan Header Data | |
| ITEMS | Importing | TYPE MPLAN_MPOS_T | Maintenance Plan Items | |
| ITEMS_LINEAR_DATA | Importing | TYPE EAML_T_LFE_DATA_MPOS_API_T | ||
| LONGTEXTS | Importing | TYPE MPLAN_LONGTEXT_T | Long Text Lines | |
| NO_SI_CONVERSION | Importing | TYPE BOOLEAN | X = Do Not Run Conversion to Issue Units | |
| REDUCED_CHECKS | Importing | TYPE BOOLEAN | Only Partially Check Consistency | |
| CREATE_BY_REF | Importing | TYPE BOOLEAN | Boolean Variable (X = True, - = False, Space = Unknown) | |
| FM_MIGRATION | Importing | TYPE BOOLEAN | Check Wether it is Migration FM | |
| ITEMS_LINEAR_DATA | Importing | TYPE EAML_T_LFE_DATA_MPOS_API_T | ||
| OBJ_LIST | Importing | TYPE EAMS_T_SP_MPOS_OBJ_LIST | table type for object list in maintenance item | |
| NUMBER | Exporting | TYPE WARPL | New Maintenance Plan Number | |
| NUMBERSWITCH | Exporting | TYPE MPLAN_NUMBERSWITCH_T | Allocation Using Number Assignment | |
| RETURN | Exporting | TYPE BAPIRETTAB | Notifications |
Exceptions of Method MPLAN_CREATE
This method does not have any exceptionsExample 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