- abap2UI5 version with syntax compatible to old R/3 NetWeaver releases
- use this version for NW 7.02 (use the main repository for NW 7.50 and higher)
- your questions, wishes and bugs are welcome, use the abap2UI5 repository and create an issue
- for S-RTTI capabilities, also use the downport of this project
This code is automatically downported and tested with abaplint. Thank you for this excellent tool!
METHOD if_http_extension~handle_request.
DATA lv_requ_body TYPE string.
lv_requ_body = server->request->get_cdata( ).
DATA lv_method TYPE string.
lv_method = server->request->get_method( ).
DATA lv_resp TYPE string.
CASE lv_method.
WHEN 'GET'.
lv_resp = z2ui5_cl_http_handler=>http_get( ).
WHEN 'POST'.
lv_resp = z2ui5_cl_http_handler=>http_post( lv_requ_body ).
ENDCASE.
server->response->set_header_field( name = `cache-control` value = `no-cache` ).
server->response->set_cdata( lv_resp ).
server->response->set_status( code = 200 reason = `success` ).
ENDMETHOD.
(1/1) Adjusted ABAP SQL to OpenSQL: Correct Position of where eg. "WHERE id = id."
(2/2) On certain older releases the ImageMapster CC causes problems, just delete the class Z2UI5_CL_CC_IMAGEMAPSTER (as this is an optional feature):