ERPClimb logoERPClimb
CAP production capstone
SAP Cloud Application Programming Modeladvanced 4 min read

CAP production capstone — SAP Guided Tutorial

Free sample lesson · open to everyone

Key takeaway

Putting it all together: a production-readiness review for a CAP app covering model, API contract, security, performance, integration resilience, events, deployment and operations — with the evidence you should be able to show for each.

In this lessonShow sections

Visual overview

CAP production capstone — learning sheetFlow: Design review → Security + performance tests → Deploy via pipeline → Operate: logs, alerts, upgrades. Key ideas: DESIGN AND CONTRACT; SECURITY AND DATA PROTECTION; PERFORMANCE, INTEGRATION AND EVENTS; DEPLOYMENT AND OPERATIONS. Watch out: The capstone is where hidden assumptions from cds watch (SQLite, mocked users, mocked remotes) must be gone.ERPClimb.com / CAP / LESSON 12/12 / LEARNING SHEETCAP production capstone1 · HOW IT FLOWS1Design review2Security +performancetests3Deploy viapipeline4Operatelogs, alerts, upgrades2 · KEY IDEAS EXPLAINEDDesign And ContractDomain model reviewed: keys, compositions,assertions.Services per consumer with read-only wherepossible; breaking changes versioned.Security And Data Protection@requires on every service; @restrict with $userconditions where data is personal orcompany-specific.xs-security.json generated; role collectionsdocumented.Performance, Integration And EventsSQL statement counts measured for key list/objectpages with realistic volumes.Remote calls with timeouts, safe retries, cachingor replication decisions documented.Deployment And OperationsCI builds and tests; one .mtar promoted throughenvironments; schema changes rehearsed.Application logging with correlation IDs; alertson error rates and latency.3 · REMEMBER · WATCH OUTRememberProduction readiness is evidence, not a feeling: for each area youshould be able to show a test, a log or a config.Model and API: compositions where lifecycle is shared, projections perconsumer, $metadata reviewed.Security: default-deny services, instance restrictions, negative testsper role.!Watch outThe capstone is where hiddenassumptions from cds watch (SQLite,mocked users, mocked remotes) mustbe gone.4 · IN A REAL PROJECTBefore go-live of a procurement app, a readiness review found the app still used a mocked remote service inproduction config, a list page issued 300 SQL statements, and the admin service lacked @requires. All threewere invisible in demos. Fixing them took two days; finding them after go-live would have cost an outage and a…Original ERPClimb learning sheet • Verify against your SAP release and edition

The situation: a real project scenario

Before go-live of a procurement app, a readiness review found the app still used a mocked remote service in production config, a list page issued 300 SQL statements, and the admin service lacked @requires. All three were invisible in demos. Fixing them took two days; finding them after go-live would have cost an outage and a data exposure.

Explanation

Production readiness for a CAP app is something you demonstrate with evidence, not something you assert from a feeling after a successful demo — for every area, you should be able to point to a specific test, log, or configuration setting that backs up the claim.

On the model and API side, that means compositions are used wherever a child record genuinely shares its parent's lifecycle, services expose projections scoped to each consumer rather than raw tables, and $metadata has actually been reviewed rather than assumed to be fine.

On security, it means every service defaults to denied access via @requires, instance-level restrictions with $user conditions are in place wherever data is personal or company-specific, and negative authorization tests exist for every role — not just the happy path.

Performance and integration resilience is where a lot of hidden assumptions from cds watch surface for the first time: constant SQL statement counts per request regardless of row count, server-side paging instead of unbounded result sets, explicit timeouts and fallbacks on every remote call, and the persistent outbox enabled so events are published only after a successful commit, with consumers built to tolerate duplicates.

These are exactly the things that "work" in a demo against a handful of rows and mocked services, and then fail under real data volumes and real network conditions.

On the deployment and operations side, readiness means CI actually builds and tests the app, a single .mtar artifact is promoted through environments rather than rebuilt per environment, and schema changes have been rehearsed rather than attempted for the first time against production.

It also means application logs carry correlation IDs, alerts exist for error rates and latency, and there's a runbook spelling out how to restart, roll back, or upgrade tenants, with a named owner for each alert — because "someone will figure it out" is not an operational plan.

The point of pulling all of this together at the end of the track is that it doubles as a strong interview narrative: walking through one CAP app end to end and, for each area — model, API, security, performance, integration, events, deployment, operations — naming the decision you made and the evidence that it actually worked, is a far stronger answer than describing features in isolation.

To put this into practice: take your own app through this checklist and attach one piece of evidence to each line; run a load test against the busiest list page and record statements per request; run negative authorization tests for every role in a hybrid profile; and do a rehearsal deployment that includes a schema change and a rollback.

The bar to clear is that another engineer should be able to read your readiness evidence and agree the app is safe to go live without having to ask you anything further.

Watch out

Common mistakes

  • Treating a successful demo as production readiness.
  • No negative authorization or load tests.
  • No runbook or alert ownership.
  • Unrehearsed schema changes in the first production release.

Do this

Best practices

  • Keep a readiness checklist in the repository and update it with each release.
  • Automate the key evidence (tests, statement counts, security tests) in CI.
  • Review the checklist with operations before go-live.

In the interview

Interview angle

Use the capstone as your interview story: describe one CAP app end to end and, for each area — model, API, security, performance, integration, events, deployment, operations — name the decision you made and the evidence you had that it worked.

Practice this lesson

Original educational case studies for SAP consultants, not official SAP certification exam questions. Verify product edition and implementation details against the current SAP documentation.

Quick check

0 of 4 questions attempted

Question 1 of 4

Which is the strongest evidence that a CAP list page is ready for production volume?

Practise this in an interview

Answer in your own words and get instant feedback, the way an interviewer would judge it.

1Describe how you would review a CAP application for production readiness.

2Tell me about a CAP issue that only appeared in production and how you would prevent it next time.

Was this lesson helpful?

Keep exploring

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.