SAP® Documentation

Single view

CL_ABAP_TYPEDESCR - Runtime Type Services

Fill RESBD Structure from EBP Component Structure   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This abstract class is the top type description class in the hierarchy of classes used to determine and create type attributes at runtime (RTTS or runtime type services). It provides instance attributes and constants for general type information. This class also defines all static methods used to create type description objects.

Relationships

CL_ABAP_TYPEDESCR
  |
  |--CL_ABAP_DATADESCR
  |    |
  |    |--CL_ABAP_ELEMDESCR
  |    |--CL_ABAP_REFDESCR
  |    |--CL_ABAP_COMPLEXDESCR
  |         |
  |         |--CL_ABAP_STRUCTDESCR
  |         |--CL_ABAP_TABLEDESCR
  |
  |--CL_ABAP_OBJECTDESCR
       |
       |--CL_ABAP_CLASSDESCR
       |--CL_ABAP_INTFDESCR

Example

REPORT typedescr_test.

TYPES:
  my_type TYPE i.

DATA:
  my_data   TYPE my_type,
  descr_ref TYPE ref to cl_abap_typedescr.

START-OF-SELECTION.
  descr_ref = cl_abap_typedescr=>describe_by_data( my_data ).

  WRITE: / 'Typename     :', descr_ref->absolute_name.
  WRITE: / 'Kind         :', descr_ref->type_kind.
  WRITE: / 'Length       :', descr_ref->length.
  WRITE: / 'Decimals:', descr_ref->decimals.

Notes

Only use constants from this class with the prefix TYPEKIND to query the attribute TYPE_KIND.

Further information

Classes:
  CL_ABAP_DATADESCR
  CL_ABAP_COMPLEXDESRC
  CL_ABAP_OBJECTDESCR
  CL_ABAP_ELEMDESCR
  CL_ABAP_REFDESCR
  CL_ABAP_STRUCTDESCR
  CL_ABAP_TABLEDESCR
  CL_ABAP_CLASSDESCR
  CL_ABAP_INTFDESCR






CPI1466 during Backup   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 2460 Date: 20190618 Time: 191730     sap01-206 ( 21 ms )

Our Service

Looking for Support? Questions?

The

Consolut

Callback-Service

Leave us your contact details and we will call you back. Panels marked with * are mandatory.