Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

friendlycoder
Participant
0 Kudos

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

0 REPLIES 0