SAP CL_ABAP_TYPEDESCR OO Class - Runtime Type Services
CL_ABAP_TYPEDESCR 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 CL_ABAP_TYPEDESCR 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 CL_ABAP_TYPEDESCR 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 |
CLASS_CONSTRUCTOR | - | Public |
CALL METHOD cl_abap_typedescr=>CLASS_CONSTRUCTOR...more details | ||
DESCRIBE_BY_DATA | Description of data object type | Public |
CALL METHOD cl_abap_typedescr=>DESCRIBE_BY_DATA...more details | ||
DESCRIBE_BY_DATA_REF | Description of data object type using reference | Public |
CALL METHOD cl_abap_typedescr=>DESCRIBE_BY_DATA_REF...more details | ||
DESCRIBE_BY_NAME | Type Description Using Relative/Absolute Names | Public |
CALL METHOD cl_abap_typedescr=>DESCRIBE_BY_NAME...more details | ||
DESCRIBE_BY_OBJECT_REF | Description of object type using reference | Public |
CALL METHOD cl_abap_typedescr=>DESCRIBE_BY_OBJECT_REF...more details | ||
GET_BY_XTYPE | Private | |
CALL METHOD cl_abap_typedescr=>GET_BY_XTYPE...more details | ||
| ||
GET_DDIC_HEADER | Returns the Nametab Header of a Dictionary Type | Public |
CALL METHOD cl_abap_typedescr=>GET_DDIC_HEADER...more details | ||
GET_DDIC_OBJECT | Returns the Nametab Object of a Dictionary Type | Public |
CALL METHOD cl_abap_typedescr=>GET_DDIC_OBJECT...more details | ||
GET_PROPERTY | Returns Special Information for Specified Types | Public |
CALL METHOD cl_abap_typedescr=>GET_PROPERTY...more details | ||
GET_RELATIVE_NAME | Returns the relative name of a type | Public |
CALL METHOD cl_abap_typedescr=>GET_RELATIVE_NAME...more details | ||
HAS_PROPERTY | Ascertains whether a type has a specific attribute | Public |
CALL METHOD cl_abap_typedescr=>HAS_PROPERTY...more details | ||
IS_DDIC_TYPE | Returns ABAP_TRUE if it is a Dictionary type | Public |
CALL METHOD cl_abap_typedescr=>IS_DDIC_TYPE...more details | ||
IS_INSTANTIATABLE | Can Be Created of the Type (Data) Objects? | Public |
CALL METHOD cl_abap_typedescr=>IS_INSTANTIATABLE...more details |
CL_ABAP_TYPEDESCR 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 |
ABSOLUTE_NAME | Instance Attribute | Absolute type name | LIKE ABAP_ABSTYPENAME | Public | |
ADMIN_TAB | Static Attribute | - | LIKE | Protected | |
ADMIN_TAB_LINE | Static Attribute | - | LIKE | Protected | |
DD_X031L_TABLE_CACHE | Instance Attribute | - | LIKE DD_X031L_TABLE | Private | |
DECIMALS | Instance Attribute | Decimals with type P | LIKE I | Public | |
FALSE | Constant | Incorrect value | ABAP_FALSE | LIKE ABAP_BOOL | Public |
KIND | Instance Attribute | Type Category (See Constants KIND_xxx) | LIKE ABAP_TYPECATEGORY | Public | |
KIND_CLASS | Constant | Class | 'C' | LIKE ABAP_TYPECATEGORY | Public |
KIND_ELEM | Constant | Elementary Type | 'E' | LIKE ABAP_TYPECATEGORY | Public |
KIND_INTF | Constant | Interface | 'I' | LIKE ABAP_TYPECATEGORY | Public |
KIND_REF | Constant | Reference type | 'R' | LIKE ABAP_TYPECATEGORY | Public |
KIND_STRUCT | Constant | Structured Type | 'S' | LIKE ABAP_TYPECATEGORY | Public |
KIND_TABLE | Constant | Table Type | 'T' | LIKE ABAP_TYPECATEGORY | Public |
LENGTH | Instance Attribute | Internal length | LIKE I | Public | |
ME_XTYPE | Instance Attribute | - | LIKE XTYPE_TYPE | Protected | |
RETURNING_REF | Static Attribute | - | LIKE CL_ABAP_TYPEDESCR | Protected | |
TRUE | Constant | Correct value | ABAP_TRUE | LIKE ABAP_BOOL | Public |
TYPEKIND_ANY | Constant | Internal Type (Data Object or Object) | '~' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_BREF | Constant | Internal Type for Boxed Components/Attributes | 'j' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_CHAR | Constant | Internal type C | 'C' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_CLASS | Constant | Internal Type (Class) | '*' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_CLIKE | Constant | Internal Type (Data Object) | '&' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_CSEQUENCE | Constant | Internal Type (Data Object) | '?' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_DATA | Constant | Internal Type (Data Object) | '#' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_DATE | Constant | Internal type D | 'D' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_DECFLOAT | Constant | Internal Type (Generic Decimal Floating Point Type) | '/' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_DECFLOAT16 | Constant | Internal Type a (Decimal Floating Point, 16 Decimal Places) | 'a' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_DECFLOAT34 | Constant | Internal Type e (Decimal Floating Point, 34 Decimal Places) | 'e' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_DREF | Constant | Internal Type l (Data Object Reference) | 'l' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_FLOAT | Constant | Internal type F | 'F' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_HEX | Constant | Internal type X | 'X' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_INT | Constant | Internal Type I (4 Byte Integer) | 'I' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_INT1 | Constant | Internal Type b (1 Byte Integer) | 'b' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_INT2 | Constant | Internal Type s (2 Byte Integer) | 's' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_INT8 | Constant | Internal type 8 (8 byte integer) | '8' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_INTF | Constant | Internal Type (Interface) | '+' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_IREF | Constant | Internal Type m (Instance Reference) | 'm' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_NUM | Constant | Internal type N | 'N' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_NUMERIC | Constant | Internal Type (Data Object) | '%' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_OREF | Constant | Internal type r (object reference) | 'r' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_PACKED | Constant | Internal type P | 'P' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_SIMPLE | Constant | Internal Type (Data Object) | '$' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_STRING | Constant | Internal type g (character string) | 'g' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_STRUCT1 | Constant | Internal type u (flat structure) | 'u' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_STRUCT2 | Constant | Internal type v (deep structure) | 'v' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_TABLE | Constant | Internal Type h (Internal Table) | 'h' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_TIME | Constant | Internal type T | 'T' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_W | Constant | Internal type w (wide character) | 'w' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_XSEQUENCE | Constant | Internal Type (Data Object) | '!' | LIKE ABAP_TYPEKIND | Public |
TYPEKIND_XSTRING | Constant | Internal type y (byte string) | 'y' | LIKE ABAP_TYPEKIND | Public |
TYPEPROPKIND_DBMAXLEN | Constant | Property DBMAXLEN | 'D' | LIKE ABAP_TYPEPROPKIND | Public |
TYPEPROPKIND_HASCLIENT | Constant | Has Structure Client Field | 'C' | LIKE ABAP_TYPEPROPKIND | Public |
TYPE_KIND | Instance Attribute | Internal ABAP type | LIKE ABAP_TYPEKIND | Public | |
UNDEFINED | Constant | Value unknown | ABAP_UNDEFINED | LIKE ABAP_BOOL | Public |
X030L_CACHE | Instance Attribute | - | LIKE X030L | Private |
Events of Class CL_ABAP_TYPEDESCR
Events are created within your class using special event handler methods. These must be registered at runtime for the event and can then be triggered using the ABAP syntax: RAISE EVENT EXPOTING... CREATE_CLASSDESCR - -CREATE_ELEMDESCR - -
CREATE_INTFDESCR - -
CREATE_REFDESCR - -
CREATE_STRUCTDESCR - -
CREATE_TABLEDESCR - -
CL_ABAP_TYPEDESCR types
XTYPE_TYPE - XTYPE_TYPELinks to Related Class(s)
CL_ABAP_...Full list of available SAP object classes
Search for further information about these or an SAP related objects