‎2010 Oct 12 8:33 AM
Hi,
I am trying to read the type group ( type-pools ICON ) using below code:
data: obj TYPE REF TO cl_abap_typedescr,
typ TYPE REF TO cl_abap_structdescr,
table TYPE STANDARD TABLE OF abap_componentdescr.
obj = cl_abap_typedescr=>describe_by_name( 'ICON' ).
typ ?= obj.
table = typ->get_components( ).
what i am getting is Transparent table's(ICON) components instead, as Transparent table ICON also exists!!!
i am not able to read Type groups components,
is it possible to read type groups components using above method or any method for that matter????
Please suggest.
‎2010 Oct 12 9:45 AM
Type groups are specific DDIC objects, which you cannot evaluate using RTTS classes. This can be provided i.e by fm TYPD_GET_OBJECT , but not the way you are trying. In your case system assumes you provide valid DDIC object (table, structure, data object) to method describe_by_name . That's why it returns components of a table, not a type group with same name.
Regards
Marcin
‎2010 Oct 12 9:45 AM
Type groups are specific DDIC objects, which you cannot evaluate using RTTS classes. This can be provided i.e by fm TYPD_GET_OBJECT , but not the way you are trying. In your case system assumes you provide valid DDIC object (table, structure, data object) to method describe_by_name . That's why it returns components of a table, not a type group with same name.
Regards
Marcin
‎2010 Oct 12 10:27 AM