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

#BTP #SAPCAP: Quirky Nuggets (N01-N02)

Walks through two CAP gotchas: the on/before/after phases of custom event handlers, shown with an after handler whose edits only reach the result when the handler returns an object or array, never a primitive; and the @assert.unique annotation, which builds a database uniqueness constraint from the model. For Input validation, the catch is that once the constrained property is nested, @assert.unique must name it by its model dot path (assignment.type) rather than the flattened column data modelling compiles it to (assignment_type).

Where it sits

Explains
Input validationInput validationcapabilityRejecting bad input before it reaches the database. While this can be done manually inside a handler, there are solutions in place to derive type, range, enum and mandatory checks from the model definitions.Data modellingData modellingcapabilityDefining the shape of data before anything serves it: entities and their types, how they relate, and the projections and views that services and applications consume.

Who is behind it

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

Properties

About this work

declared and crawled
Published
declared
Published on
declared

More on this39

Group by38 of 38 pieces
Piece, what it offersStill applies
Also explainingInput validation37
CDS Associations & Joins
YouTube — SAP Developers playlists, SAP Developers
nothing recorded
052: 10 Minutes from Start to Launchpad
Software-Heroes, Björn S.
nothing recorded
Beyond READ_TEXT: Decoding SAPscript Long Texts (STXL) with SQLScript in CDS/AMDP
SAP Community, aamelin1
nothing recorded
Deep Insert in SAP CAPM Using Composition and Fiori Elements
SAP Community, Talari Hari KumarThe reasoningA recipeRunnable code
nothing recorded
Calculating IBP Technical Week "Key Figure Date" in S/4HANA Using CDS View
SAP Community, bharatbajaj
nothing recorded
Declarative Programming in CAP: Less Code, More Value
SAP Community, BirgitSThe reasoning
nothing recorded
Building Secure SAPUI5 Applications: Best Practices for Developers
SAP Community, Manisha_19
nothing recorded
Building an Enterprise Application Using Fiori Elements and CAP - Part 1
SAP Community, Farooq, part 1 of 3The reasoning
nothing recorded
Create CDS Views and expose through OData service in CAPM
SAP Community, VenkateshMundru
nothing recorded
A CAP Plugin for Flexible Number Range Management: cds-numberrange-plugin
SAP Community, abdulbasitThe reasoningRunnable code
nothing recorded
Understanding Projections in CAPM: Select Only What You Need!
SAP Community, Avisek_The reasoning
nothing recorded
Generating Adobe Form Using RAP framework OData Services
SAP Community, Megastar
nothing recorded
Open Source UI5 Form Validator
SAP Community, actor:learnin
nothing recorded
My CAP Projects Toolbox
SAP Community, vvdries
nothing recorded
SAP Incentive Management - Understanding of CSN file & CLI Command to generate
SAP Community, YoganandaThe reasoningA recipeRunnable code
nothing recorded
CAPVAL: A project is born
SAP Community, MattBrightman
nothing recorded
CAP, CDS, CDL, CSN and jq - finding associations
SAP Community, DJ AdamsThe reasoning
nothing recorded
Extend SAP Cloud Application Programming Model(CAP) Validations with the CAPVAL Plugin
SAP Community, MattBrightmanThe reasoningRunnable code
nothing recorded
SAP CAP(Cloud Application Programming)开发框架概述
SAP Community, ArthurYang
nothing recorded
Use Aspects, Association and Convert OData V4 to V2 using Proxy
SAP Community, rahul_rajagopalThe reasoning
nothing recorded
#CAP-TechBytes Input Validation
SAP Community, ThajunnizaThe reasoning
nothing recorded
[Part – 2] Enrich CAP based Services with Behaviors using Annotations
SAP Community, Lukas Schwabe
nothing recorded
[Part - 1] Enrich CAP based Services with Behaviors using Annotations
SAP Community, Ajit Kumar Panda
nothing recorded
Understanding entity relationships in CDS
SAP Community, Avinash_Vaidya
nothing recorded
SAP CAP Recent Enhancements the HANA Dev Should Know About
SAP Community, Thomas Jung
nothing recorded
SAP CAP Adapter to expose OData as custom REST Service
SAP Community, Former Member
nothing recorded
Creating structured types, enums and named aspects using the CDS Graphical Modeler
SAP Community, Xiao-fei_SongThe reasoning
nothing recorded
Importing @sap/cds common.cds to your CAP project using the CDS Graphical Modeler
SAP Community, Xiao-fei_Song
nothing recorded
First Java Cap Application
SAP Community, bruce_wang3
nothing recorded
Developing Business Services with Cloud Application Programming(CAP) Model in SAP Business Studio
SAP Community, Ranjith
nothing recorded
Computed field example in CAP
SAP Community, DJ AdamsThe reasoningA recipeRunnable code
Core changed
SAP Cloud Platform Backend service: Tutorial [11]: CDS : magic: key: generation
SAP Community, CarlosRoggan
nothing recorded
Develop a full stack Business application with SAP Cloud Application Programming Model
SAP Community, former_member584731
nothing recorded
Learn how to define constraints declaratively in your CDS model
SAP Developer Center, SAPThe reasoningA recipe
nothing recorded
Everything new: Try out the latest features in CAP
SAP TechEd — session catalogue, Daniel Hutzel, Daniel SchlachterA recipe
nothing recorded
Explore the declarative power of status-transition flows
SAP Developer Center, SAPThe reasoningA recipe
nothing recorded
Analyze and optimize ABAP Cloud model apps built on core data services
SAP TechEd — session catalogueThe reasoning
nothing recorded
[Part - 1] Enrich CAP based Services with Behaviors using Annotations
SAP Community, Ajit Kumar Panda
nothing recorded
SAP CAP function and action with Unstructured/Dynamic Type Input/Output
SAP Community, Ajit Kumar Panda
nothing recorded

Details

Graph5 edges
← POINTS HERE
POINTS OUT →
explainsInput validationcapability, core and community
explainsData modellingcapability, core and community
published onSAP Communitypublishing source
discovered viaSAP Communitycap-tag
Source
Type
blog
Published on
Host
community.sap.com
First seen
History1
  • Entered the atlasDiscovered via SAP Community · cap-tag.
For your agent
Ref
content:btp-sapcap-quirky-nuggets-n01-n02
JSON
/content/btp-sapcap-quirky-nuggets-n01-n02.json
MCP
Connecting an agent