BlogBlogtypeA post on somebody's own site or a community platform. Nobody edits it after publication, so it dates from the day it was written.See every one →SAP Community

Invoking Business Agent Foundation Agents from ABAP: A Step-by-Step Guide

Walks through calling a Business Agent Foundation agent's chat endpoint from an on-premise ABAP report: an OAuth 2.0 client profile configured in SE80/SOAUTH2_CLIENT with client-credentials grant against the service key, an HTTP (type G) RFC destination in SM59 bound to that profile, and an ABAP report using CL_HTTP_CLIENT=>CREATE_BY_DESTINATION to POST a JSON message to the agent's sendMessage endpoint and extract the reply by splitting the response string. The destination and client code are the same shape as any outbound REST call from ABAP; nothing here is specific to the agent service beyond the request body and URL.

Where it sits

Explains
HTTP clientsABAPHTTP clientscapabilityCalling an HTTP API outside the system from application code, with the request, the credential and the response handled by a client each time the call is made. Serving HTTP is the other direction, and where the address and the credential are kept is [destinations](capability:destinations).
Source
reachable

Who is behind it

tanmay_0117author

Properties

About this work

declared and crawled
Published
declared
Published on
declared
Views
crawled
2,661

More on this4

Group by
Piece, what it offersStill applies
Also explainingHTTP clients4
Outbound Integration from SAP BTP, ABAP to SAP S/4HANA Cloud via Service Consumption Model
SAP Community, Pramathesh_t_s
nothing recorded
Calling the Sales Order (A2X) OData V4 API from BTP Using a Service Consumption Model
SAP Community, Katsiaryna_Darapeika
nothing recorded
Calling the Sales Order (A2X) OData V2 API from BTP Using a Service Consumption Model
SAP Community, Katsiaryna_Darapeika
nothing recorded
Usage of Expand Entity in OData Service Consumption Model
SAP Community, alrikx
nothing recorded

Details

Graph5 edges
POINTS OUT →
explainsHTTP clientscapability, core and community
published onSAP Communitypublishing source
discovered viaSAP Communityabap-connectivity-tag
discovered viaSAP Communityabap-development-tag
discovered viaSAP Communitybtp-abap-environment-tag
Source
History1
  • Entered the atlasDiscovered via SAP Community · abap-connectivity-tag, SAP Community · abap-development-tag, SAP Community · btp-abap-environment-tag.
For your agent
Ref
content:invoking-business-agent-foundation-agents-from-abap-a-step-by-step-guide
JSON
/content/invoking-business-agent-foundation-agents-from-abap-a-step-by-step-guide.json
MCP
Connecting an agent