Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9236

Re: Data Dictionary details

$
0
0

Hi Khagendra

 

Are you trying to dynamically determine the attributes of a field during runtime?

 

Have you tried using RTTS services? You can try using class CL_ABAP_TYPEDESCR. Check out the class documentation for more details.

 

I've just pasted the sample coding from the class documentation.

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.

 

Rgds

Eng Swee


Viewing all articles
Browse latest Browse all 9236

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>