CL_ABAP_ELEMDESCR - Runtime Type Services

ROGBILLS - Synchronize billing plans   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Functionality

This final class is used to describe and generate elementary data types (for example, integer or floating point). Each elementary data type has a single type object.

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_elemdescr.

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.
  WRITE: / 'Output Length:', descr_ref->output_length.
  WRITE: / 'Help ID      :', descr_ref->help_id.
  WRITE: / 'Edit Mask    :', descr_ref->edit_mask.

Notes

None

Further information

Classes:
CL_ABAP_DATADESCR
CL_ABAP_COMPLEXDESRC
CL_ABAP_OBJECTDESCR
CL_ABAP_TYPEDESCR
CL_ABAP_REFDESCR
CL_ABAP_STRUCTDESCR
CL_ABAP_TABLEDESCR
CL_ABAP_CLASSDESCR
CL_ABAP_INTFDESCR


Addresses (Business Address Services)   General Material Data  
This documentation is copyright by SAP AG.


Length: 1895 Date: 20120526 Time: 081134     triton ( 54 ms )