SAVE_PLAN SAP Method Save Maintenance Plan
Below is documentation, parameters and attributes of ABAP Method SAVE_PLAN 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 SAVE_PLAN can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method SAVE_PLAN
.| Name | Type | Data Type | Description | Default Value |
| IR_MPLAN_HEADER | Importing | TYPE REF TO MPLAN_HEADER | Maintenance Plan | |
| ITEMS_LINEAR_DATA | Importing | TYPE EAML_T_LFE_DATA_MPOS_API_T | Linear Data | |
| IT_MPLAN_ITEM | Importing | TYPE MPLAN_ITEM_REF_T | Table with Maintenance Plan Item Objects | |
| MPLAN_OBJECT_KEY | Importing | TYPE MPLAN_OBJECT_KEY | Maintenance Plan | |
| FM_MIGRATION | Importing | TYPE BOOLEAN | Check Wether it is Migration FM | |
| NUMBER | Exporting | TYPE WARPL | New Maintenance Plan Number | |
| NUMBERSWITCH | Exporting | TYPE MPLAN_NUMBERSWITCH_T | Changed Number when Creating a Maintenance Plan |
Exceptions of Method SAVE_PLAN
CX_MPLAN_EXCEPTION_ROOT - General Exception Maintenance Plan APIExample 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_IR_MPLAN_HEADER TYPE MPLAN_HEADER,
lv_ITEMS_LINEAR_DATA TYPE EAML_T_LFE_DATA_MPOS_API_T,
lv_IT_MPLAN_ITEM TYPE MPLAN_ITEM_REF_T,
lv_MPLAN_OBJECT_KEY TYPE MPLAN_OBJECT_KEY,
lv_NUMBER TYPE WARPL,
lv_NUMBERSWITCH TYPE MPLAN_NUMBERSWITCH_T,
lv_FM_MIGRATION TYPE BOOLEAN,
lv_other TYPE c.
CALL METHOD lo_class=>SAVE_PLAN(
EXPORTING
IR_MPLAN_HEADER = lv_IR_MPLAN_HEADER
ITEMS_LINEAR_DATA = lv_ITEMS_LINEAR_DATA
IT_MPLAN_ITEM = lv_IT_MPLAN_ITEM
MPLAN_OBJECT_KEY = lv_MPLAN_OBJECT_KEY
FM_MIGRATION = lv_FM_MIGRATION
IMPORTING
NUMBER = lv_NUMBER
NUMBERSWITCH = lv_NUMBERSWITCH ).
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