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 call a REST API in ABAP asynchronously

maich97
Explorer
0 Kudos
2,311

Hello,

I want to call a REST API asynchronously via ABAP using the class CL_HTTP_CLIENT. Can anyone suggest how to do that? Is it required to be done via wrapping it in a FM and calling it old style "call function <FM> in background task" or a better way possible?

Thanks,

Mainak

1 ACCEPTED SOLUTION

matt
Active Contributor
1,947

See this blog: https://blogs.sap.com/2023/02/17/parallelize-cl_http_client/

Multiple parallel calls, all asynchronous.

3 REPLIES 3

matt
Active Contributor
1,948

See this blog: https://blogs.sap.com/2023/02/17/parallelize-cl_http_client/

Multiple parallel calls, all asynchronous.

Sandra_Rossi
Active Contributor
1,947

Wow I never realized that cl_http_client was asynchronous, now I understand why there are 2 methods send and receive, late but always learning 😄

matt
Active Contributor
1,947

sandra.rossi This is why I read the ABAP Development blogs every Friday morning!