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

SAP CAP function and action with Unstructured/Dynamic Type Input/Output

A CAP action or function can take or return an unstructured type: annotate the service @protocol: 'rest', declare the parameter or return value as @open type object {}, and a handler shapes the payload however a given request needs, shown here with a bound action and a function that returns a different structure per input. The text states plainly that OData V4 and GraphQL services require a fixed structure for action and function parameters, so the dynamic type works only over CAP's REST protocol.

Where it sits

Explains
ODataCAPODatacapabilityExposing data and operations through OData, including the service model, metadata and protocol versions clients require. Version differences affect which clients can consume a service and which query features they can use.GraphQLCAPGraphQLcapabilityServing the same model over GraphQL instead of OData — one endpoint, the client naming the fields it wants, for consumers who expect that shape rather than an OData one.
Since then
OData changed in @cap-js-community/odata-v2-adapter 1.10.0, 2023-04-05
Source
reachable

Who is behind it

Ajit Kumar PandaAjit Kumar PandaPersonWrote this
In the atlas: contributes to 1, wrote 3
@AjitKP91
author

Before you read it

ApplicabilityCore changedOData changed in @cap-js-community/odata-v2-adapter 1.10.0, 2023-04-05.

This is a derived prompt to re-check the work, not a claim that the work is wrong. Exact stale statements are recorded separately after editorial review.

Properties

About this work

declared and crawled
Published
declared
Published on
declared
Views
crawled
22,368

For odata

on the edge
Applies in
authored
cap

More on this29

Group by29 of 29 pieces
Piece, what it offersStill applies
Also explainingOData27
September 15th: What's New on developers.sap.com
SAP Community, Thomas Jung
nothing recorded
Adding Immutable Blockchain Proofs to SAP With CAP - Cardano and OData V4
SAP Community, maxalexweberThe reasoningRunnable code
nothing recorded
UI for the BTP Application Vulnerability Report
SAP Community, Wouter Lemaire
nothing recorded
Create CDS Views and expose through OData service in CAPM
SAP Community, VenkateshMundru
nothing recorded
The Complete Guide to Calling Actions in UI5 with Custom Code
SAP Community, Marian ZeisThe reasoningRunnable code
nothing recorded
How to Perform Initial Loads from S/4HANA to Advanced Event Mesh with Odata Poll
SAP Community, AlexPfeil
nothing recorded
Calling bound / unbound CAP actions from Fiori elements application.
SAP Community, vidhyasagarmuleThe reasoning
nothing recorded
SAP CAP(Cloud Application Programming)开发框架概述
SAP Community, ArthurYang
nothing recorded
SAP CAPv7 - Node.js Highlights and Experiences
SAP Community, davidtill
nothing recorded
#BTP #SAPCAP: Quirky Nuggets (N03-N04)
SAP Community, Ajit_K_PandaThe reasoningA recipeRunnable code
Core changed
CAP: GraphQL as new protocol
SAP Community, jhodel18Runnable code
New majors
Messaging System for Transferring Error, Warning, and Information Messages from OData V4 Services to HTTP Client Applications
SAP Community, arley-triana-morinThe reasoningA recipeRunnable code
Core changed
Extend SAP SuccessFactors on SAP BTP with CAP - Create the CAP Service
SAP Community, Alessandro Biagi
nothing recorded
SAP GraphQL in CAPm (node.js)
SAP Community, enric101The reasoning
nothing recorded
SAP CAP Adapter to expose OData as custom REST Service
SAP Community, Former Member
nothing recorded
Create a Business Service using CDS, Node.js, SQLite and a OData service
SAP Community, raybantonThe reasoningA recipeRunnable code
Core changed
The End2End Journey: Advocates Service – CAP Service, OData V2/4 & REST in One single Project
SAP Community, KRiedelsheimerThe reasoningA recipeRunnable code
Core changed
Custom Functions in OData V4 – SAP Cloud Application Programming Model
SAP Community, Roopa_NThe reasoningA recipe
Core changed
SAP BTP SDK for iOS & CAP with OData V4 support
SAP Community, KRiedelsheimerThe reasoning
nothing recorded
Resolving date serialization issues when using an external OData v2 service with CAP
SAP Community, pieterjanssensThe reasoning
nothing recorded
How to add OData v2 adapter proxy to your CAP project
SAP Community, Wouter LemaireThe reasoningRunnable code
Core changed
SAP Cloud Application Programming Model: Deep Insert (5) Consume Remote Service with SAP Cloud SDK
SAP Community, CarlosRogganThe reasoningRunnable code
Core changed
SAP Cloud Application Programming Model: Deep Insert (4) Consume Remote Service
SAP Community, CarlosRogganThe reasoningA recipeRunnable code
Core changed
SAP Cloud Platform Backend service: Tutorial [11]: CDS : magic: key: generation
SAP Community, CarlosRoggan
nothing recorded
Consume Remote Services in a Full-Stack CAP Application
SAP Developer Center, SAPThe reasoningA recipe
nothing recorded
Extend SAP SuccessFactors on SAP BTP with the SAP Cloud Application Programming Model
SAP Developer Center, SAPThe reasoningA recipe
nothing recorded
AI-assisted full stack development using model context protocol servers
SAP TechEd — session catalogueThe reasoning
nothing recorded
#BTP #SAPCAP: Quirky Nuggets (N01-N02)
SAP Community, Ajit Kumar Panda
nothing recorded
[Part - 1] Enrich CAP based Services with Behaviors using Annotations
SAP Community, Ajit Kumar Panda
nothing recorded

Details

Graph5 edges
← POINTS HERE
POINTS OUT →
explainsODatacapability, core and community
explainsGraphQLcapability, core only
published onSAP Communitypublishing source
discovered viaSAP Communitycap-tag
Source
Type
blog
Published on
Host
community.sap.com
First seen
History2
  • explains → applies_to on capability:odata (cap)Door scope proposed from the title and summary, so a door page lists the piece only where it holds (docs/concepts/content-on-doors.md).
  • Entered the atlasDiscovered via SAP Community · cap-tag.
For your agent
Ref
content:sap-cap-function-and-action-with-unstructured-dynamic-type-input-output
JSON
/content/sap-cap-function-and-action-with-unstructured-dynamic-type-input-output.json
MCP
Connecting an agent