All topics
RAP_CDS_ODATAadvanced

CDS Table Functions

Understand CDS table functions for scenarios that require database-side logic beyond standard CDS expressions. Learn AMDP-backed implementation, parameter handling, result contracts, performance trade-offs and when a table function is justified instead of Open SQL or a normal CDS view.

Overview

Understand CDS table functions for scenarios that require database-side logic beyond standard CDS expressions. Learn AMDP-backed implementation, parameter handling, result contracts, performance trade-offs and when a table function is justified instead of Open SQL or a normal CDS view.

Lessons in this topic

Interview questions covered

  • When would you use a CDS table function instead of a CDS view entity?
  • A table function fails to activate with "result structure does not match". What do you check?
  • What is a CDS table function and how is it built?
  • Walk through building a "top 3 oldest open requests per supplier" feature with a table function.
  • A supplier dashboard based on a table function shows each supplier twice in a test system. What is the likely cause?
  • What trade-offs do you consider before approving a CDS table function?
  • You inherit several CDS table functions. What do you review?
  • How do parameters and session defaults work in CDS table functions?
  • A table function behind a dashboard takes five seconds. How do you improve it?
  • How do you test and secure a CDS table function?

Related topics

Interview questions on this topic