new error message for binding (#533)

* bugfix serialization

* update

* add new error message for binding errors
This commit is contained in:
oblomov 2023-09-06 23:28:11 +02:00 committed by GitHub
parent 932cf9082e
commit eb97edf946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,11 @@ CLASS z2ui5_cl_fw_model IMPLEMENTATION.
DATA(lv_name_back) = `MO_APP->` && lr_attri->name.
FIELD-SYMBOLS <attribute> TYPE any.
ASSIGN (lv_name_back) TO <attribute>.
z2ui5_cl_fw_utility=>x_check_raise( when = xsdbool( sy-subrc <> 0 ) ).
IF sy-subrc <> 0.
RAISE EXCEPTION TYPE z2ui5_cx_fw_error
EXPORTING
val = `BINDING_ERROR - No attribute found with name: ` && lr_attri->name.
ENDIF.
CASE lr_attri->type_kind.