CREATE_IMHIS_ORDER SAP Method Update - Convert Due MHIS Records to Call Objects
Below is documentation, parameters and attributes of ABAP Method CREATE_IMHIS_ORDER 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 CREATE_IMHIS_ORDER can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CREATE_IMHIS_ORDER
.| Name | Type | Data Type | Description | Default Value |
| ACTION | Importing | TYPE FCODE | Function Code | |
| AMHIS | Importing | TYPE WC_T_WMHIS | Preventive Maintenance Plan History | |
| EINFACHPLAN | Importing | TYPE CHAR1 | Single-Character Indicator | |
| IILOA | Importing | TYPE WC_T_WILOA | PM Object Location and Account Assignment | |
| IMHIO | Importing | TYPE WC_T_WMHIO | Call Objects for Maintenance Plan | |
| IMHIS | Importing | TYPE WC_T_WMHIS | Preventive Maintenance Plan History | |
| IMMPT | Importing | TYPE WC_T_WMMPT | Cycle Definitions and Measuring Points | |
| IMPLA | Importing | TYPE WC_WMPLA | ||
| IT_MHIO_ORIG | Importing | TYPE WC_T_WMHIO | ||
| MISCHPLAN | Importing | TYPE CHAR1 | Single-Character Indicator | |
| T_PACKAGE_DATA_ST_TL | Importing | TYPE WC_T_PACKAGE_DATA_ST_TL | ||
| IT_MHIO_DEL | Importing | TYPE WC_T_WMHIO | Deleted MHIO records | |
| IT_MHIO_ORIG | Importing | TYPE WC_T_WMHIO | ||
| IMPOS | Changing | TYPE WC_T_WMPOS | Maintenance Plan Item | |
| T399W | Changing | TYPE T399W | Maintenance Plan Category Parameter |
Exceptions of Method CREATE_IMHIS_ORDER
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_SCHEDULE.
DATA: lv_ACTION TYPE FCODE,
lv_AMHIS TYPE WC_T_WMHIS,
lv_EINFACHPLAN TYPE CHAR1,
lv_IILOA TYPE WC_T_WILOA,
lv_IMHIO TYPE WC_T_WMHIO,
lv_IMHIS TYPE WC_T_WMHIS,
lv_IMMPT TYPE WC_T_WMMPT,
lv_IMPLA TYPE WC_WMPLA,
lv_IMPOS TYPE WC_T_WMPOS,
lv_IT_MHIO_ORIG TYPE WC_T_WMHIO,
lv_MISCHPLAN TYPE CHAR1,
lv_T399W TYPE T399W,
lv_T_PACKAGE_DATA_ST_TL TYPE WC_T_PACKAGE_DATA_ST_TL,
lv_IT_MHIO_DEL TYPE WC_T_WMHIO,
lv_IT_MHIO_ORIG TYPE WC_T_WMHIO,
lv_other TYPE c.
CALL METHOD lo_class=>CREATE_IMHIS_ORDER(
EXPORTING
ACTION = lv_ACTION
AMHIS = lv_AMHIS
EINFACHPLAN = lv_EINFACHPLAN
IILOA = lv_IILOA
IMHIO = lv_IMHIO
IMHIS = lv_IMHIS
IMMPT = lv_IMMPT
IMPLA = lv_IMPLA
IT_MHIO_ORIG = lv_IT_MHIO_ORIG
MISCHPLAN = lv_MISCHPLAN
T_PACKAGE_DATA_ST_TL = lv_T_PACKAGE_DATA_ST_TL
IT_MHIO_DEL = lv_IT_MHIO_DEL
IT_MHIO_ORIG = lv_IT_MHIO_ORIG
CHANGING
IMPOS = lv_IMPOS
T399W = lv_T399W ).
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