Skip to content

Automatic Update #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions src/zoblomov_cl_util.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -985,15 +985,16 @@ CLASS zoblomov_cl_util IMPLEMENTATION.
ENDTRY.
ENDTRY.

result = lo_struct->get_components( ).

LOOP AT result REFERENCE INTO DATA(lr_comp)
WHERE as_include = abap_true.
DATA(comps) = lo_struct->get_components( ).

DATA(lt_attri) = rtti_get_t_attri_by_include( lr_comp->type ).
LOOP AT comps REFERENCE INTO DATA(lr_comp).

DELETE result.
INSERT LINES OF lt_attri INTO TABLE result.
IF lr_comp->as_include = abap_false.
APPEND lr_comp->* TO result.
ELSE.
DATA(lt_attri) = rtti_get_t_attri_by_include( lr_comp->type ).
APPEND LINES OF lt_attri TO result.
ENDIF.
ENDLOOP.

ENDMETHOD.
Expand Down