Update z2ui5_cl_util_api.clas.abap (#974)

* Update z2ui5_cl_util_api.clas.abap

Correction when dissolving deep structures

* Update z2ui5_cl_util_api.clas.abap

Correction when dissolving deep structures
This commit is contained in:
abapsheep 2024-02-29 10:35:41 +01:00 committed by GitHub
parent fc17fc5dc3
commit a85f1a1dc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -773,10 +773,11 @@ CLASS Z2UI5_CL_UTIL_API IMPLEMENTATION.
DATA(sdescr) = CAST cl_abap_structdescr( cl_abap_typedescr=>describe_by_name( type->absolute_name ) ).
LOOP AT sdescr->components REFERENCE INTO DATA(lr_comp).
result = sdescr->get_components( ).
DATA(ls_attri) = VALUE abap_componentdescr( name = attri && lr_comp->name ).
INSERT ls_attri INTO TABLE result.
LOOP AT result REFERENCE INTO DATA(lr_comp).
lr_comp->name = attri && lr_comp->name.
ENDLOOP.