Binding fixes + delete obsolete debug code (#791)

* binding fixes

* delete debugging obsolete code
This commit is contained in:
oblomov 2024-01-18 09:17:05 +01:00 committed by GitHub
parent f34ccbcb51
commit b1e60622d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 14 deletions

View File

@ -597,6 +597,7 @@ CLASS z2ui5_cl_util_func IMPLEMENTATION.
trans_ref_struc_2_struc(
EXPORTING
ir_struc_from = <comp_from>
pretty_name = pretty_name
IMPORTING
r_result = <comp_to> ).

View File

@ -456,16 +456,17 @@ CLASS z2ui5_cl_fw_binding IMPLEMENTATION.
result = replace( val = result sub = `-` with = `_` occ = 0 ).
IF mv_pretty_name = abap_true.
SPLIT result AT `_` INTO TABLE DATA(lt_tab).
result = to_lower( lt_tab[ 1 ] ).
LOOP AT lt_tab INTO DATA(lv_val) FROM 2.
TRY.
lv_val = to_lower( lv_val ).
lv_val = to_upper( lv_val(1) ) && lv_val+1.
result = result && lv_val.
CATCH cx_root.
ENDTRY.
ENDLOOP.
replace all OCCURRENCES OF `_` in result with ``.
* SPLIT result AT `_` INTO TABLE DATA(lt_tab).
* result = to_lower( lt_tab[ 1 ] ).
* LOOP AT lt_tab INTO DATA(lv_val) FROM 2.
* TRY.
* lv_val = to_lower( lv_val ).
* lv_val = to_upper( lv_val(1) ) && lv_val+1.
* result = result && lv_val.
* CATCH cx_root.
* ENDTRY.
* ENDLOOP.
ENDIF.
ENDMETHOD.

View File

@ -299,10 +299,6 @@ CLASS Z2UI5_CL_FW_HTTP_HANDLER IMPLEMENTATION.
` sap.z2ui5.oBody.ID = sap.z2ui5.oResponse.ID;` && |\n| &&
` sap.z2ui5.oBody.ARGUMENTS = args;` && |\n| &&
|\n| &&
` if (sap.z2ui5.checkLogActive) {` && |\n| &&
` console.log('Request Object:');` && |\n| &&
` console.log(sap.z2ui5.oBody);` && |\n| &&
` }` && |\n| &&
` sap.z2ui5.oResponseOld = sap.z2ui5.oResponse;` && |\n| &&
` sap.z2ui5.oResponse = {};` && |\n| &&
` sap.z2ui5.oController.Roundtrip();` && |\n| &&