Update rtti_get_t_attri_by_table_name (#1211)

Co-authored-by: Viktor Hoffmann <Viktor.Hoffmann@swisskrono.com>
This commit is contained in:
abapsheep 2024-06-17 14:14:52 +02:00 committed by GitHub
parent f60e44c178
commit a504911508
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1275,7 +1275,14 @@ CLASS z2ui5_cl_util_api IMPLEMENTATION.
TRY.
DATA(lo_struct) = CAST cl_abap_structdescr( cl_abap_structdescr=>describe_by_name( table_name ) ).
CATCH cx_root.
RETURN.
TRY.
DATA(lo_tab) = CAST cl_abap_tabledescr( cl_abap_structdescr=>describe_by_name( table_name ) ).
lo_struct = CAST cl_abap_structdescr( lo_tab->get_table_line_type( ) ).
CATCH cx_root.
RETURN.
ENDTRY.
ENDTRY.
result = lo_struct->get_components( ).