How to return HTTP code 202 within an action in ABAP RAP?

Hi all,

I am interested in implementing the HTTP status code 202 within the action method async_posting.

 

CLASS lhc_asyncflighttp DEFINITION INHERITING FROM cl_abap_behavior_handler.

PRIVATE SECTION.

METHODS:

get_global_authorizations FOR GLOBAL AUTHORIZATION

IMPORTING

REQUEST requested_authorizations FOR asyncflighttp

RESULT result,

async_posting FOR MODIFY

IMPORTING keys FOR ACTION asyncflighttp~async_posting.

ENDCLASS.

CLASS lhc_asyncflighttp IMPLEMENTATION.

METHOD get_global_authorizations.

ENDMETHOD.

METHOD async_posting.

ENDMETHOD.

ENDCLASS.

 

Could you please advise if this is feasible within the ABAP RAP?

Best regards

Scroll to Top