mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 02:58:20 +08:00
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
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:
parent
962e2b6b0d
commit
edf8823749
|
@ -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>
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user