diff --git a/README.md b/README.md index 415f76ee..c87048c9 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ * Highlighted in the Boring Enterprise Nerdletter [(newsletter - 08.03.2023)](https://boringenterprisenerds.substack.com/p/34-abap2ui5-sap-cva-burnout-c2c-shortwave) * Part of the SAP Developer Code Challenge [(SCN - 17.05.2023)](https://groups.community.sap.com/t5/application-development/sap-developer-code-challenge-open-source-abap-week-2/m-p/260727#M1372) * Showcased at SAP TechEd 2023 [(youtube - 02.11.2023)](https://www.youtube.com/watch?v=kLbF0ooStZs&t=3052s) +* Featured on SAP Developer News [(youtube - 15.12.2023)](https://www.youtube.com/watch?v=CfH9L03WUCg&t=350s) #### Apps & Extensions * Integrate your apps to SAP Fiori On-Premise Launchpad [(ext-fiori_launchpad)](https://github.com/abap2UI5/ext-service_integration) diff --git a/src/00/z2ui5_cl_util_func.clas.abap b/src/00/z2ui5_cl_util_func.clas.abap index c03d6a30..e27de472 100644 --- a/src/00/z2ui5_cl_util_func.clas.abap +++ b/src/00/z2ui5_cl_util_func.clas.abap @@ -445,7 +445,7 @@ CLASS z2ui5_cl_util_func IMPLEMENTATION. DATA(lo_type) = cl_abap_structdescr=>describe_by_data( val ). DATA(lo_struct) = CAST cl_abap_structdescr( lo_type ). - result = lo_struct->get_components( ). + result = lo_struct->get_components( ). ENDMETHOD. diff --git a/src/01/01/z2ui5_cl_fw_binding.clas.abap b/src/01/01/z2ui5_cl_fw_binding.clas.abap index 950b05e1..d4d9cb1e 100644 --- a/src/01/01/z2ui5_cl_fw_binding.clas.abap +++ b/src/01/01/z2ui5_cl_fw_binding.clas.abap @@ -323,7 +323,7 @@ CLASS z2ui5_cl_fw_binding IMPLEMENTATION. METHOD get_t_attri_by_include. - data(sdescr) = cast cl_abap_structdescr( cl_abap_typedescr=>describe_by_name( type->absolute_name ) ). + DATA(sdescr) = CAST cl_abap_structdescr( cl_abap_typedescr=>describe_by_name( type->absolute_name ) ). LOOP AT sdescr->components REFERENCE INTO DATA(lr_comp). @@ -366,11 +366,23 @@ CLASS z2ui5_cl_fw_binding IMPLEMENTATION. INSERT LINES OF lt_attri INTO TABLE result. ELSE. - DATA(ls_attri) = VALUE ty_s_attri( + + IF lr_comp->type->absolute_name = '\TYPE=XSDBOOLEAN' + OR lr_comp->type->absolute_name = '\TYPE=ABAP_BOOL'. + + DATA(ls_attri) = VALUE ty_s_attri( + name = lv_element + type = 'ABAP_BOOL' + type_kind = lr_comp->type->type_kind ). + + ELSE. + + ls_attri = VALUE ty_s_attri( name = lv_element type_kind = lr_comp->type->type_kind ). - INSERT ls_attri INTO TABLE result. + ENDIF. + INSERT ls_attri INTO TABLE result. ENDIF. ENDLOOP.