SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Create a Remote Client Proxy and ABAPConsole Application

In the SAP Business Technology Platform, ABAP Environment, in your consuming system, create an ABAP Console application (ABAP class) that instantiates a proxy, which passes an OData request to a remote service.

Overview

🎓 intermediate 30 min. ABAP DevelopmentIntermediateSAP BTP ABAP EnvironmentSAP Business Technology Platform

You will learn

  • How to create an HTTP client in an ABAP class
  • How to instantiate a client proxy in this class that fetches data from your provisioning system
  • How to output that data in an ABAP Console app This tutorial is based on: SAP Help Portal: Creating a Remote Client Proxy. Therefore, this tutorial will only cover in detail those aspects that are different, such as using the cl_http_destination_provider=>create_by_comm_arrangement method.
Julie Plummer J Julie Plummer January 18, 2024
Created by March 9, 2023
Contributors

Prerequisites

Steps

##Prerequisites

  • IMPORTANT: This tutorial cannot be completed on a trial account
  • IMPORTANT: This tutorial is part of a mission. You must complete the previous parts first; otherwise, you may experience errors or unexpected behavior. The link to the mission is available at the top right of the screen, immediately above the list of steps
Step 1 Create a class for the remote client proxy and the ABAP Console app

First, in the consuming system, you create the class that instantiates the client proxy.

  1. In ADT, open your package Z_BTP_2_BTP_### and choose New > ABAP Class.

  2. Enter the following, then choose Next. and description:

    • Name: ZCL_PROXY_TRAVELS_###
    • Description: Get travel data from PRV, where PRV = your provisioning system
    • Add interface: if_oo_adt_classrun *This will enable you to test your connection by outputting your results to the ABAP console first, before you create the artifacts for the Fiori app.
  3. Choose the transport request, then choose Finish.

Step 2 Copy code
+
Step 3 Test connection by running Console app
+
Step 4 Test yourself
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 4
1. Create a class for the remote client proxy and the ABAP Console app 2. Copy code 3. Test connection by running Console app 4. Test yourself

Learn more →