In ABAP Make an API HTTP Request. / ABAP HTTP Request

This article is about make an HTTP request inside of an ABAP program.

Photo by Barn Images on Unsplash

Use the following code to make the connection and get the response. In Variant 1 the reference to the URL destination in the variable lv_http_desthas to be set via the transaction code SM59. Here is an example:

In the example of cause please replace the Traget System Settings with the URL you want to make the connection to.

The reference name would then be: “SAP_SCPI_ConEmp” . This we will use for the following code:

The other Method(HACK)!:

Conclusion: I hope it helped. Happy Coding!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store