CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME method gives incorrect length. In my case, i am trying to prepare dynamic internal table for KNKA table. For all the fields i am
ref_struct ?= cl_abap_typedescr=>describe_by_name( 'TY_SELECTED' ). LOOP AT ref_struct->components INTO component.. ref_element ?= cl_abap_typedescr=>describe_by_name( 'TY_SELECTED-' && component-name ). ddic = ref_element->get_ddic_field( ). WRITE: / ddic-scrtext_m. IF sy...
I am using cl_abap_typedescr=>describe_by_data( <gt_table> ) to retrieve the fieldlist of my dynamically created ALV fieldcatalog. However, I have just switched to using some fields that are of type INT and now the method ignores them. Is this correct??? Is there another method that...
The each field length normally is the double of the length of field in table in abap dictionary. I am trying to get the correct field length by using lr_elem_descr ?= cl_abap_elemdescr=>describe_by_data( wa_tabdescr-name ). wa_fieldcat-intlen = lr_elem_descr->output_length. But...