cancel
Showing results for 
Search instead for 
Did you mean: 

Function as OData in SAP Analytics Cloud

ivan_milenkovic
Explorer
0 Kudos

Hello,

Is it possible to expose OData to SAC if OData is created as a function?

That means: in file.cds is defined:

function some_Query() returns String;

In file.js is handler for some_Query():

srv.on('some_Query', async (req) => {

try {

let dbQuery =

` SELECT ...............

OData works fine and it's tested in Postman, it returns a proper result.

SAC OData connection which is created for services where some_Query() is, works well, but it returns only entities and I cannot see this function some_Query(). That's why the question is it possible to expose OData to SAC if OData is created as function.

Accepted Solutions (0)

Answers (0)