diff --git a/package.json b/package.json index 9d89efce..7cbeb939 100644 --- a/package.json +++ b/package.json @@ -15,11 +15,11 @@ }, "license": "MIT", "dependencies": { - "@abaplint/cli": "^2.113.125", + "@abaplint/cli": "^2.113.133", "@abaplint/database-pg": "^2.10.24", "@abaplint/database-sqlite": "^2.10.24", - "@abaplint/runtime": "^2.10.58", - "@abaplint/transpiler-cli": "^2.10.58", + "@abaplint/runtime": "^2.10.61", + "@abaplint/transpiler-cli": "^2.10.61", "0x": "^5.8.0" } } diff --git a/src/demo/cl_demo_output.clas.abap b/src/demo/cl_demo_output.clas.abap index 5d8ab0a4..3da03f60 100644 --- a/src/demo/cl_demo_output.clas.abap +++ b/src/demo/cl_demo_output.clas.abap @@ -17,9 +17,33 @@ CLASS cl_demo_output DEFINITION PUBLIC. IMPORTING data TYPE any OPTIONAL name TYPE string OPTIONAL PREFERRED PARAMETER data. + + CLASS-METHODS display_html + IMPORTING + html TYPE csequence. + + CLASS-METHODS display_text + IMPORTING + text TYPE clike. + + CLASS-METHODS display_json + IMPORTING + json TYPE simple. ENDCLASS. CLASS cl_demo_output IMPLEMENTATION. + METHOD display_json. + ASSERT 1 = 'not supported'. + ENDMETHOD. + + METHOD display_text. + ASSERT 1 = 'not supported'. + ENDMETHOD. + + METHOD display_html. + ASSERT 1 = 'not supported'. + ENDMETHOD. + METHOD write. ASSERT 1 = 'not supported'. ENDMETHOD. diff --git a/src/http/if_http_client.intf.abap b/src/http/if_http_client.intf.abap index d5ecef74..0b2b5316 100644 --- a/src/http/if_http_client.intf.abap +++ b/src/http/if_http_client.intf.abap @@ -38,8 +38,10 @@ INTERFACE if_http_client PUBLIC. METHODS get_last_error EXPORTING - code TYPE i - message TYPE string. + code TYPE sysubrc + message TYPE string + message_class TYPE t100-arbgb + message_number TYPE t100-msgnr. METHODS refresh_request. diff --git a/src/json/#ui2#cl_json.clas.abap b/src/json/#ui2#cl_json.clas.abap index 945ea634..e661a5ae 100644 --- a/src/json/#ui2#cl_json.clas.abap +++ b/src/json/#ui2#cl_json.clas.abap @@ -9,9 +9,15 @@ CLASS /ui2/cl_json DEFINITION PUBLIC. camel_case TYPE string VALUE 'camel_case', END OF pretty_mode. - TYPES tribool TYPE c LENGTH 1. TYPES bool TYPE c LENGTH 1. + CONSTANTS: BEGIN OF c_bool, + true TYPE bool VALUE `X`, + false TYPE bool VALUE ``, + END OF c_bool. + + TYPES tribool TYPE c LENGTH 1. + CLASS-METHODS raw_to_string IMPORTING iv_xstring TYPE xstring