2020 Mar 02 7:50 AM
Hello
Using the RTTI (Run-Time Type Identification) API classes I want to retrieve the DDIC description of a type. For a single field that is possible using CL_ABAP_TYPEDESCR->GET_DDIC_FIELD-FIELDTEXT.
When using the RTTI classes CL_ABAP_TABLEDESCR, CL_ABAP_STRUCTDESCR, ... is similar possible to retrieve structure or table DDIC description ?
Currently I do have this ABAP programmed using API's DD_TTHD_GET, DD_TABD_GET, ... But want to avoid programming.
Regards Jack Graus
2020 Mar 02 12:01 PM
RTTI cannot return the text of a DDIC table, structure or table type.
2020 Mar 02 7:52 AM
DATA(rtti) = CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME( 'SFLIGHT' ).
2020 Mar 02 8:19 AM
Hello
My question was nog completely correct: I am using CL_ABAP_ELEMDESCR->GET_DDIC_FIELD( )-FIELDTEXT to retrieve data element description.
That works for data element types. But for table or structure types when using CL_ABAP_TABLEDESCR or CL_ABAP_STRUCTDESCR it is not possible to return the table or structure description with CL_ABAP_ELEMDESCR.
Regards
2020 Mar 02 8:44 AM
You mean, you'd like to know if there's a RTTI method to retrieve texts of table/structure components in bulk?
2020 Mar 02 10:13 AM
Hello
I would like to retrieve DDIC structure description of table 'SFLIGHT' using RTTI.
Regards Jack
2020 Mar 02 10:39 AM
Please use the COMMENT button for comments, questions, adding details, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.
2020 Mar 02 10:42 AM
When you say "DDIC structure description of table 'SFLIGHT' using RTTI", you mean its text "Flight"? (in English)
2020 Mar 02 12:01 PM
RTTI cannot return the text of a DDIC table, structure or table type.
2020 Mar 02 7:08 PM
For DDIC Structures and Tables you could have a look to the DB-Table DD02T (for both).
Yes indeed there seems to be no method in the RTTI classes.
2020 Mar 02 9:53 PM
Hi,
You can use FM DDIF_FIELDINFO_GET to get DDIC structure description.