// Explore More Tutorials
Call an External API
Requires Customer/Partner License
2019-10-30
Intermediate
30 min.
Point to an external API and display its output in the console.
You will learn
- How to create a new destination for an existing communication arrangement
- How to call an external API from inside an ABAP system
Predefined communication scenarios allow you to, for example, exchange data between a SAP Cloud Platform system and an external system.
A communication arrangement specifies the metadata for a communication scenario. For more information, see Maintain a Communication Arrangement for an Exposed Service.
You will create a new destination for an existing communication arrangement, specifying the URL for an external API, user/password, and authentication.
You will then create a class that calls the API and displays the output from it in the console.
Throughout this tutorial, objects name include the suffix XXX
. Always replace this with your group number or initials.
Step 1: Open the instance of the destination service
Step 2: Create a new destination
Step 3: Create an ABAP class
Step 4: Add an INTERFACES statement
Step 5: Implement the method
Step 6: Check, save, and activate
Step 7: Run the class in the console
Step 8: Add formatting
Step 9: Check, save, activate, and test
Step 10: Test yourself
Prerequisites
Navigate tutorial steps
-
Step 1: Open the instance of the destination service
-
Step 2: Create a new destination
-
Step 3: Create an ABAP class
-
Step 4: Add an INTERFACES statement
-
Step 5: Implement the method
-
Step 6: Check, save, and activate
-
Step 7: Run the class in the console
-
Step 8: Add formatting
-
Step 9: Check, save, activate, and test
-
Step 10: Test yourself
- Back to Top