fix json handling type p (#976)

* fix json handling type p

* fix
This commit is contained in:
oblomov 2024-02-29 13:33:19 +01:00 committed by GitHub
parent a85f1a1dc8
commit 0a0673650f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,10 +61,14 @@ CLASS z2ui5_cl_core_json_srv IMPLEMENTATION.
ENDIF.
ASSIGN lr_attri->r_ref->* TO FIELD-SYMBOL(<val>).
lo_val_front->to_abap(
IMPORTING
ev_container = <val> ).
TRY.
lo_val_front->to_abap(
IMPORTING
ev_container = <val> ).
CATCH cx_root.
<val> = lo_val_front->mt_json_tree[ 1 ]-value.
ENDTRY.
CATCH cx_root INTO DATA(x).
ASSERT x IS BOUND.
ENDTRY.