SAP /SCTM/CL_MTR OO Class - Means of Transport
/SCTM/CL_MTR is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84. Below is the documentation available for class /SCTM/CL_MTR including details of:
- Interface class implementations
- Inheritance details
- Methods defined within class ( including link to full details )
- Attributes ( including initial values )
- Class Events
Method list of /SCTM/CL_MTR SAP class
A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD.
Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD =>methodname EXPORTING/IMPORTING...
| Method Name | Description | Visability |
| ADD_DIRECT_PARENT | Introduction of Direct Parent | Public |
| CALL METHOD /sctm/cl_mtr=>ADD_DIRECT_PARENT...more details | ||
| CHECK_PRODUCTS | Is Means of Transport Large Enough for Given Products? | Public |
| CALL METHOD /sctm/cl_mtr=>CHECK_PRODUCTS...more details | ||
| COMPARE_QUANTS | Compare Quantities with Any Different Units | Public |
| CALL METHOD /sctm/cl_mtr=>COMPARE_QUANTS...more details | ||
| CONSTRUCTOR | CONSTRUCTOR | Public |
| CALL METHOD /sctm/cl_mtr=>CONSTRUCTOR...more details | ||
| GET_CHILDREN | All Lower-Level Means of Transport | Public |
| CALL METHOD /sctm/cl_mtr=>GET_CHILDREN...more details | ||
| GET_DIRECT_CHILDREN | Next Lower-Level Means of Transport | Public |
| CALL METHOD /sctm/cl_mtr=>GET_DIRECT_CHILDREN...more details | ||
|
| ||
| GET_DIRECT_PARENT | Higher-Level Means of Transport | Public |
| CALL METHOD /sctm/cl_mtr=>GET_DIRECT_PARENT...more details | ||
| GET_PARENTS | All Higher-Level Means of Transport | Public |
| CALL METHOD /sctm/cl_mtr=>GET_PARENTS...more details | ||
| GET_UID | Unique Identification | Public |
| CALL METHOD /sctm/cl_mtr=>GET_UID...more details | ||
| IS_CHILD_OF | Is This MTr Subordinate to Given MTr? | Public |
| CALL METHOD /sctm/cl_mtr=>IS_CHILD_OF...more details | ||
| IS_PARENT_OF | Is This MTr Superior to Given MTr? | Public |
| CALL METHOD /sctm/cl_mtr=>IS_PARENT_OF...more details | ||
| IS_RELATIVE_OF | Is This MTr Subordinate or Superior to Given MTr? | Public |
| CALL METHOD /sctm/cl_mtr=>IS_RELATIVE_OF...more details | ||
| REMOVE_CHILDREN | Remove Every MTr which is Child of Another MTr | Public |
| CALL METHOD /sctm/cl_mtr=>REMOVE_CHILDREN...more details | ||
/SCTM/CL_MTR attributes
List of attributes within class CL_ABAP_CHAR_UTILITIES. These can be referenced using the following syntax CL_ABAP_CHAR_UTILITIES=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.
| Name | Level | Description | Initial Value | Type | Visability |
| MO_HIERARCHY | Instance Attribute | Hierarchy of This Means of Transport | LIKE /SCTM/CL_H_MTR | Public | |
| MV_ID | Instance Attribute | Means of Transport Description | LIKE /SCMB/DE_MTR_UID | Public | |
| MV_LOAD_HGT | Instance Attribute | Height | LIKE HOEHE | Private | |
| MV_LOAD_LEN | Instance Attribute | Length | LIKE LAENG | Private | |
| MV_LOAD_VOL | Instance Attribute | Volume | LIKE VOLUM | Private | |
| MV_LOAD_WGT | Instance Attribute | Gross Weight | LIKE BRGEW | Private | |
| MV_LOAD_WID | Instance Attribute | Width | LIKE BREIT | Private | |
| MV_MOT | Instance Attribute | Transportation Mode | LIKE /SCMB/MDL_TRMODE | Public | |
| MV_MOT_CODE | Instance Attribute | Transportation Mode | LIKE /SAPAPO/TRMODCODE | Public | |
| MV_UOM_LWH | Instance Attribute | Unit of Dimension for Length/Width/Height | LIKE MEABM | Private | |
| MV_UOM_VOL | Instance Attribute | Unit of Volume | LIKE VOLEH | Private | |
| MV_UOM_WGT | Instance Attribute | Unit of Weight | LIKE GEWEI | Private |
Links to Related Class(s)
/SCTM/CL...Full list of available SAP object classes
Search for further information about these or an SAP related objects