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 CAP : Custom plugin to separate generic change log capture logic

Walks through building a custom [CAP](ecosystem:cap) plugin that centralises change-log capture: on cds.once('served') it collects entities annotated @audit, then hooks srv.before('UPDATE') to read the existing record, diff it field by field against the incoming payload, and record old/new values with the user and timestamp. It also documents a cds build failure packaging the plugin's own directory into gen/srv for MTA deployment, fixed by adding it as a copyfiles build-parameter step in mta.yaml.

Where it sits

Explains
Change trackingCAPChange trackingcapabilityKeeping a readable history of what changed on a record, who changed it and when — as business history rather than database journalling.Plugin authoringCAPPlugin authoringcapabilityWriting a package that extends a framework or runtime rather than an application that uses it — a reusable extension loaded by its host, and the question you arrive at once solving a problem twice makes you want to solve it once for everyone.
Source
reachable

Who is behind it

sreehari_vpillaiauthor

Properties

About this work

declared and crawled
Published
declared
Published on
declared
Views
crawled
3,938

For change-tracking

on the edge
Applies in
authored
cap

More on this10

Group by10 of 10 pieces
Piece, what it offersStill applies
Also explainingChange tracking10
What's in Daniel Hutzel's brain?
YouTube — SAP Developers playlists, Daniel Hutzel, DJ Adams
nothing recorded
DRY CAP – Making Sustainable Solutions Through Plugins
YouTube — SAP Developers playlists, SAP Developers
nothing recorded
CAP: The Road Ahead - Simplicity in an AI Era
YouTube — SAP Developers playlists, SAP Developers
nothing recorded
New and improved: Change Tracking plugin
SAP Community, rupamaityThe reasoningA recipeRunnable code
Version drift
Create your first CAP plugin
SAP Community, Wouter Lemaire
nothing recorded
SAP AI Services - DOX - Gen AI with SAP CAP Plugin - Part 3
SAP Community, sabarna17, part 3 of 3
nothing recorded
Open Sourcing CAP – how to learn more or get involved
SAP Community, Fempel
nothing recorded
How to build reusable plugin components for CAP Java applications
SAP Community, robinjayasinghe
nothing recorded
Reusable components for CAP with cds-plugin
SAP Community, Daniel SchlachterThe reasoningRunnable code
nothing recorded
AI needs a foundation: A map of the plug-in ecosystem for CAP
SAP TechEd — session catalogue, Mike ZaschkaThe reasoning
nothing recorded

Details

Graph4 edges
POINTS OUT →
explainsChange trackingcapability, core and community
explainsPlugin authoringcapability, 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:change-tracking (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:btp-cap-custom-plugin-to-separate-generic-change-log-capture-logic
JSON
/content/btp-cap-custom-plugin-to-separate-generic-change-log-capture-logic.json
MCP
Connecting an agent