refactoring abap-util (#1754)
Some checks are pending
build_downport_branch / build_downpor_branch (push) Waiting to run
build_frontend_classic / build_frontend_classic (push) Waiting to run
build_frontend_cloud / build_frontend_cloud (push) Waiting to run
build_frontend_http / build_frontend_http (push) Waiting to run
ui5lint / test (push) Waiting to run

* refactoring abap-util

* update

* update

* update
This commit is contained in:
oblomov-dev 2025-02-17 16:05:32 -03:00 committed by GitHub
parent 962e2b6b0d
commit edf8823749
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<DEVC>
<CTEXT>abap toolkit - https://github.com/oblomov-dev/abap-toolkit</CTEXT>
<CTEXT>abap-util - https://github.com/oblomov-dev/abap-util</CTEXT>
</DEVC>
</asx:values>
</asx:abap>

View File

@ -351,6 +351,12 @@ CLASS z2ui5_cl_util DEFINITION
RETURNING
VALUE(result) TYPE abap_bool.
CLASS-METHODS rtti_create_tab_by_name
IMPORTING
val TYPE clike
RETURNING
VALUE(result) TYPE REF TO data.
CLASS-METHODS rtti_check_type_kind_dref
IMPORTING
val TYPE any
@ -1434,4 +1440,12 @@ CLASS z2ui5_cl_util IMPLEMENTATION.
ENDMETHOD.
METHOD rtti_create_tab_by_name.
DATA(struct_desc) = cl_abap_structdescr=>describe_by_name( val ).
DATA(gr_dyntable_typ) = cl_abap_tabledescr=>create( CAST #( struct_desc ) ).
CREATE DATA result TYPE HANDLE gr_dyntable_typ.
ENDMETHOD.
ENDCLASS.