Beyond ABAPdesigned by@Tejoram97
Beyond ABAP / BTP Development / Interview Questions

Interview Questions

BTP Development · SAP BTP ·

Open the interactive lesson →

All BTP Development interview questions in one place, grouped by page. Read the page when an answer needs more depth.

How to practise: cover the answer, say yours out loud in 30–60 seconds, then compare.

01 · Developing on BTP – Tools, MTA & Fiori

Q1. What is CAP and why use it instead of plain Node.js?

SAP's Cloud Application Programming Model: you model entities and services in CDS and CAP generates the database artefacts and OData V4 / REST endpoints with generic CRUD, paging, draft and authorization. You write only business logic in event handlers. It also gives HANA Cloud, XSUAA, multitenancy and messaging integration out of the box – far less plumbing than Express code.

Q2. What does cds watch do?

Starts the CAP server locally (port 4004), deploys the model to an in-memory SQLite database with CSV sample data, uses mock users and restarts on every file change.

Q3. Explain before, on and after handlers in CAP.

before runs first – validate input or reject; on replaces the generic implementation (e.g. a custom action or a call to a remote system); after post-processes results (calculate virtual fields). They are registered per event and entity in the service implementation.

Q4. CAP vs RAP?

Same idea (CDS model + framework + OData V4), different stacks: CAP in Node.js / Java on Cloud Foundry or Kyma with any supported database; RAP in ABAP in the ABAP environment or S/4HANA. Choose by team skills and how close the extension sits to S/4HANA.

Q5. What is an MTA and what are modules, resources, requires and provides?

One application of several parts with one lifecycle. Modules are the deployable parts (Node.js app, UI, DB content), resources are the services they need (HANA, XSUAA, destination). requires declares a dependency – the deployer creates the resource first and binds it; provides publishes values such as a URL for other modules.

Q6. mta.yaml vs mtad.yaml vs .mtar?

mta.yaml is the development descriptor in the project; the build creates the .mtar archive, which contains the generated deployment descriptor mtad.yaml plus all built modules. Extension descriptors (.mtaext) add environment-specific values at deploy time.

Q7. How do you build and deploy an MTA?

mbt build (Cloud MTA Build Tool) creates the .mtar; cf deploy (MultiApps plugin) sends it to the deploy service, which creates services, deploys modules in dependency order and binds them. In BAS: Build MTA Project / Deploy MTA Archive. In production: CI/CD service + Cloud Transport Management.

Q8. cf push vs cf deploy?

cf push deploys one app from a manifest and does not create services or handle dependencies. cf deploy deploys a whole MTA archive with all services, bindings and content in the right order.

Q9. Cloud Foundry or Kyma – how do you decide?

Cloud Foundry for standard apps (CAP, Fiori back ends): push code, the platform does the rest. Kyma when you need Kubernetes – containers, microservices, serverless functions, event-driven extensions, fine control over networking and scaling – and the team has Kubernetes skills.

Q10. How is a Fiori app served on BTP?

The files are deployed to the HTML5 Application Repository; SAP Build Work Zone's managed application router serves them, logs the user in via XSUAA / IAS and forwards data calls through routes in xs-app.json to destinations – a CAP service or, via the Cloud Connector, an on-premise S/4HANA system.

Q11. What is SAP Business Application Studio?

SAP's browser IDE on BTP, based on Code-OSS. Dev spaces with pre-installed extensions for CAP, Fiori, HANA native and more; template wizard, terminal with cf / cds / mbt, Git, destination-aware preview. ABAP is developed in ADT (Eclipse or VS Code) instead.

Q12. How do you move a BTP app from DEV to PROD?

Not with SE09/STMS: the CI/CD service builds the .mtar, SAP Cloud Transport Management carries the same archive through transport nodes (DEV → QA → PROD subaccounts) with import queues and approvals. Environment differences go into extension descriptors or destinations, not into the code.

02 · SAP HANA Cloud for Developers

Q1. What is SAP HANA Cloud and what are its components?

A managed database as a service on SAP BTP. It consists of the SAP HANA database (in-memory, multi-model: relational, JSON document store, spatial, graph, vector engine, knowledge graph, machine learning) and the optional data lake with a Relational Engine (disk-based SQL for large volumes) and Files (object storage). SAP operates it; you size, connect and secure it in HANA Cloud Central.

Q2. What is an HDI container and how does it differ from a schema?

An HDI container is a schema managed by the SAP HANA Deployment Infrastructure: objects come from design-time files in Git, are deployed by the HDI deployer, are owned by a technical object owner, and the app connects with a generated runtime user. A classic schema is filled by hand-run SQL and has no deployment history. In BTP an app gets a container as a service instance hana / hdi-shared.

Q3. Why does cf create-service hana hdi-shared fail in a new space?

Usually because the HANA Cloud instance is not mapped to that Cloud Foundry org and space (instance mapping in HANA Cloud Central), the hdi-shared plan is not entitled, or the instance is stopped (free tier instances stop every night).

Q4. Name five HDI artefacts and what they do.

.hdbtable (table), .hdbview (SQL view), .hdbcalculationview (calculation view), .hdbprocedure (SQLScript procedure), .hdbrole (container role); also .hdbsynonym and .hdbgrants for access to other schemas, .hdbtabledata for initial data and .hdiconfig mapping suffixes to build plugins.

Q5. How does CAP deploy to HANA Cloud?

cds build --production turns the CDS model into HDI artefacts in gen/db with a deployer package.json. In development cds deploy --to hana deploys into your own container; in production the MTA module type: hdb runs @sap/hdi-deploy against the hdi-shared instance, and the CAP runtime uses @cap-js/hana with the runtime user. Native files in db/src are deployed alongside.

Q6. How do you expose a calculation view in a CAP service?

Deploy the calculation view from db/src, define a facade entity with the same name and columns annotated @cds.persistence.exists (and @cds.persistence.calcview), and project on it in the service. CDS then creates no table, and the view works in hybrid mode and production but not on SQLite.

Q7. What are virtual tables and when would you replicate instead?

A virtual table points through a remote source (smart data access) to a table in another database; queries are federated and data is always current. Replicate (remote table replication or SDI) when performance, heavy joins or the remote system's availability matter – at the cost of memory and monitoring the subscription.

Q8. Which users exist around an HDI container?

The runtime (application) user used by the app, the design-time user used by the deployer, and the object owner #OO that owns all objects. Named database users and DBADMIN are separate; business users never become database users – the app checks their roles and queries as the runtime user.

Q9. How do you analyse a slow query in HANA Cloud?

Find it in M_SQL_PLAN_CACHE or the expensive statements, look at EXPLAIN PLAN, then generate a SQL Analyzer plan file in Database Explorer and read the actual operators and times in the SQL Analyzer. Fix the cause (filters early, cardinality, set-based SQLScript) before adding partitions, NSE or memory.

Q10. What is NSE?

Native Storage Extension: warm data marked PAGE LOADABLE at table, partition or column level stays on disk and is loaded page by page into a buffer cache when needed. It lowers memory cost for rarely used data; the NSE advisor suggests candidates.

Q11. Scenario: your CAP app must show regions that SLT replicates into a classic schema. What do you do?

Ask an administrator for a grantor user with SELECT and SELECT METADATA with grant option on the schema, wrapped in a role; create a user-provided service for it; add a .hdbgrants file granting the role to the object owner and application user; add a .hdbsynonym for the table; require the service in the deployer module of mta.yaml; then define a CAP facade entity (@cds.persistence.exists) on the synonym and expose it read-only.

Q12. Scenario: the HDI deployment fails after you renamed a CDS element in production. How do you handle it?

A rename is an incompatible change: with .hdbtable HDI would drop and recreate the column and lose data, or the build stops. Plan it: add the new element, migrate data, remove the old one later – or use @cds.persistence.journal so the table becomes a .hdbmigrationtable with an explicit migration step. Test on a copy of production data first, and never add tables to undeploy.json.

03 · Runtimes – Cloud Foundry & Kyma in Depth

Q1. What happens between cf push and a running app?

The CLI uploads changed files, the platform stages the app with a buildpack (detects the language, installs dependencies) and stores the result as a droplet. Diego then starts the requested number of containers from the droplet with the environment (incl. VCAP_SERVICES); when the health check passes the instance is RUNNING and the router sends traffic on its routes.

Q2. Difference between cf restart and cf restage?

Restart stops and starts the same droplet – enough for changed environment variables. Restage runs staging again and creates a new droplet – needed after buildpack or stack changes; the CLI suggests it after binding a service.

Q3. Explain service instance, binding and service key.

The instance is the provisioned resource in a space (an HDI container, an XSUAA OAuth client). A binding generates credentials for one app and injects them into VCAP_SERVICES. A service key generates credentials for a consumer outside Cloud Foundry, e.g. tests or another runtime. On Kyma the BTP Operator's ServiceInstance and ServiceBinding play the same roles, and the credentials land in a Secret.

Q4. Which health check types does Cloud Foundry have, and which do you use for CAP?

port (default), process and http. For CAP use http with /health (Node.js) or the actuator endpoints (Java), and a start timeout long enough for the app to start. Kubernetes additionally separates liveness and readiness probes.

Q5. How do you scale a CF app, and what does the Application Autoscaler add?

Horizontally with cf scale -i (no restart) or vertically with -m / -k (restart). The autoscaler changes the instance count automatically from a policy: min / max instances, rules on cpu, memory, response time, throughput or custom metrics, and schedules. Check it with cf autoscaling-history.

Q6. How does MTA blue-green deployment work and what are its limits?

cf deploy --strategy blue-green updates services, starts the new apps as "idle" on temporary routes and pauses for testing; -a resume maps the productive routes to them and deletes the old apps. It covers Cloud Foundry apps only – services, HDI and HTML5 content are shared – so database changes must be backward compatible. Incremental blue-green saves quota by swapping one instance at a time.

Q7. Explain pod, Deployment, Service and namespace to an ABAP colleague.

A pod is one running instance of the app; a Deployment keeps N pods of a given image version running and rolls out new versions; a Service is a stable internal address that load-balances to the pods; a namespace isolates a team or stage like a CF space.

Q8. Which Kyma modules do you need for a CAP app with login, HANA and on-premise access?

Istio and API Gateway (expose the app router with an APIRule), SAP BTP Operator (HANA HDI, XSUAA, destination instances and bindings) – these three are default modules – plus Connectivity Proxy (and usually Transparent Proxy) for on-premise access via Cloud Connector; Telemetry for logs to SAP Cloud Logging.

Q9. How do you deploy a CAP app to Kyma?

cds add hana,xsuaa, then cds add kyma for the Helm chart and containerize.yaml. cds up -2 k8s builds with cds build --production, creates images with Cloud Native Buildpacks, pushes them to your registry and runs helm upgrade --install, which creates the Deployments, the HDI deployer Job, the APIRule and the BTP service instances. Prerequisites: kubeconfig, a registry, HANA Cloud mapped to the cluster.

Q10. Scenario: after a Kyma deployment the srv pod is in CrashLoopBackOff. How do you proceed?

kubectl describe pod for events, then kubectl logs <pod> -c <container> --previous for the last crash. Typical causes: binding Secret missing because the ServiceInstance is not Ready (check kubectl get serviceinstances), HANA not reachable (instance mapping, allowed IPs), HDI deployer Job failed (its logs), or a memory limit too low (OOMKilled). Fix values.yaml, redeploy with Helm, or helm rollback to the last good revision.

Q11. Scenario: the customer wants the Sales Order Approval extension. CF, Kyma or ABAP environment?

Ask about skills and landscape. A full-stack team building a CAP Approval Portal with app router and HANA Cloud: Cloud Foundry – least operations, MTA deployment, pay per GB. If the company already runs a Kyma cluster with other microservices, or needs containers and event Functions: Kyma. If the team is ABAP-first and the logic belongs next to S/4HANA: the ABAP environment or on-stack RAP. Mention costs (memory versus cluster versus system) and that CAP keeps the CF / Kyma choice open.

Q12. cf create-service says the plan does not exist. What do you check?

The entitlement: is the service plan assigned to this subaccount with enough quota? cf marketplace shows only entitled plans. Then the plan name and region availability, and on Kyma whether the plan is offered for the Kubernetes environment.

04 · Data & AI on BTP – SAP Business AI, Joule & Generative AI

Q1. What is SAP Business AI, and what are the three ways to use it?

SAP's umbrella for all its AI: embedded AI features in SAP applications, the Joule copilot and agents, and building your own AI on the BTP AI foundation (SAP AI Core, generative AI hub, AI services, Joule Studio).

Q2. SAP AI Core vs SAP AI Launchpad vs generative AI hub?

AI Core is the runtime that trains and serves models; AI Launchpad is the UI to manage it; the generative AI hub is the LLM part of AI Core (extended plan) with model access, prompt registry and orchestration.

Q3. Which modules does the orchestration service have, and which are mandatory?

Grounding, templating, input translation, data masking, input filtering, model, output filtering, output translation – executed in that fixed order. Only templating and the model are mandatory.

Q4. What is SAP Document AI and how does it extract data?

The renamed Document Information Extraction service. A schema defines the fields; standard types (invoice, payment advice, purchase order, business card) use SAP's ML models, any type can use generative AI (premium edition) or templates. Every value has a confidence score.

Q5. A customer still uses Data Attribute Recommendation. What do you tell them?

It was removed from the eligible cloud services on 31 March 2026 and runs only until the end of the current subscription term. Plan a move – SAP suggests SAP-RPT-1 in SAP AI Core for predictions on tabular data.

Q6. What do PAL and APL give you in HANA Cloud?

In-database machine learning: PAL offers classic algorithms called from SQLScript, APL automates model building; hana-ml exposes both in Python. Both need the script server enabled on the instance.

Q7. What is SAP Databricks in SAP Business Data Cloud?

A special edition of Databricks inside BDC. Data products are shared to it through Delta Sharing without copying; data scientists build ML models or fine-tune LLMs and share results back as derived data products.

Q8. SAP Cloud SDK for AI or the CAP LLM plugin in a new CAP project?

The SAP Cloud SDK for AI (JavaScript or Java): official, current, covers orchestration, embeddings and grounding. The CAP LLM plugin is a community plugin provided as-is with no release since September 2025.

Q9. AI units vs capacity units?

AI units pay for Premium AI in SAP applications (Joule Premium, agents, Document AI embedded edition) from one annual pool; capacity units pay for BTP consumption such as generative AI hub tokens in your own apps.

Q10. Why does ABAP code name an ISLM scenario and not a model?

So the model can be changed, upgraded or switched off by configuration in ISLM, with no code change and central governance of which LLMs are used.

Q11. Scenario: managers want a short risk summary of each sales order plus a check of the customer's PO PDF. Design it.

CAP extension triggered by SalesOrder.Created: read the order via the released API, extract the PO with SAP Document AI (purchase order schema), compare fields with rules, call the orchestration service with a template, data masking and content filters, store summary and differences in HANA Cloud, start the approval in SAP Build Process Automation. The manager decides; low-confidence values are flagged.

Q12. Scenario: a business user asks for "AI that predicts which orders will need approval". What do you check and propose?

First whether S/4HANA or SAC already offers it (embedded / predictive). If not, it is a tabular prediction, not text generation: PAL / APL on order history in HANA Cloud, SAP-RPT-1 in the generative AI hub, or SAP Databricks if the data is in BDC. Show the prediction as a hint, keep the approval rule and measure accuracy before relying on it.

05 · DevOps, Operations & Observability

Q1. What is the difference between SAP Continuous Integration and Delivery and project "Piper"?

The CI/CD service is a managed BTP service with predefined pipelines (Cloud Foundry Environment, Fiori for ABAP Platform, Integration Suite artifacts, Kyma, gCTS) – you configure jobs, SAP runs the infrastructure. Piper is open source: a Jenkins shared library, Docker images, a CLI and a GitHub Action with SAP steps such as mtaBuild, cloudFoundryDeploy and tmsUpload for your own CI server. Managed and simple versus flexible and self-run.

Q2. Which stages does the Cloud Foundry Environment pipeline have and where is it configured?

Build (mandatory), Additional Unit Tests, Malware Scan, Acceptance (deploy to a test space + wdi5), Compliance (SonarQube) and Release (deploy and / or hand over to Cloud Transport Management). Configured in the job editor or, better, in .sap_cid/config.yaml in the repository so it is versioned with the code.

Q3. Explain transport nodes, routes and import queues in SAP Cloud Transport Management.

A node stands for a source or target subaccount and has a destination for deployment; routes connect nodes into a landscape; each target node has an import queue where requests wait until someone imports them (or a schedule does). The .mtar is uploaded once and forwarded along the route, with a node-specific .mtaext for environment values.

Q4. Why not deploy to production directly from the pipeline?

Separation of duties and audit: the developer's pipeline qualifies the build, an operations team approves the import into production, and cTMS or Cloud ALM records who imported what and when. It is also the only way to keep exactly the tested archive.

Q5. How do SAP Cloud ALM and SAP Cloud Logging differ?

Cloud ALM is central lifecycle management: implementation (requirements, features, deployments) and operations (health, real user, exception, integration and job monitoring, alerting) across many systems. Cloud Logging stores every log, metric and trace of your workloads in OpenSearch for deep analysis. Cloud ALM finds that something is wrong; Cloud Logging shows why.

Q6. What happened to the SAP Application Logging service?

It is deprecated: removed from the eligible cloud services list as of 30 July 2025, usable only until the end of existing subscription terms. SAP Cloud Logging is the successor; migrate by binding both, running in parallel and then removing the old instance.

Q7. How does a long-running job work with the Job Scheduling service?

Asynchronous mode: the service calls the action endpoint with job, schedule and run IDs in headers, the app returns 202 Accepted, processes in the background and calls the Update Job Run Log API with success or failure; without the call-back the run becomes UNKNOWN. Very long batch work can run as a CF task job instead.

Q8. btp CLI or Terraform – which one and why?

The btp CLI is imperative – good for quick admin tasks and scripts. Terraform with the SAP/btp provider is declarative: the desired landscape is code, plan shows changes, state tracks what exists, so DEV, QA and PROD are reproducible and reviewed in pull requests. For the app itself I still use the MTA.

Q9. How do you get BTP audit logs into the company's SIEM?

Create an auditlog-management instance (plan default, mTLS recommended) and a key, get an OAuth token, and pull /auditlog/v2/auditlogrecords with time filters, following the handle for further chunks and respecting rate limits; rotate the keys at least every 90 days.

Q10. What do you check before go-live of a CAP app?

Separate subaccounts built as code; pipeline with tests and quality gate; transports with approval and .mtaext; roles via IdP groups and no secrets in Git; Cloud Logging and Cloud ALM monitoring; alerts with an on-call owner; two or more instances and autoscaling; jobs monitored; audit logging; cost estimate and budget; a runbook.

Q11. Scenario: after a transport to PROD the Fiori app shows data from the QA S/4HANA system. What went wrong?

The environment-specific values travelled with the archive: the PROD node has no (or a wrong) MTA extension descriptor, or the destination name is hard-coded per environment. Fix: keep one destination name in the code, maintain the destination per subaccount, upload a .mtaext per cTMS node, and add a smoke test after import.

Q12. Scenario: users report random 500 errors in the approval app. Walk me through your analysis.

Confirm impact in Cloud ALM (error rate, which requests, since when); check what changed (cTMS imports, certificates, back-end changes); take one failing request's correlation ID and follow it in Cloud Logging through app router, CAP and the outbound call; identify the failing hop (e.g. 401 from the S/4HANA destination); restore service, fix the root cause, then add monitoring and a runbook entry so it is detected earlier next time.

06 · BTP Developer Hands-On – CAP, Fiori Deployment, MTA & Debugging

Q1. How do you consume an S/4HANA OData API in CAP?

Download the EDMX from the Business Accelerator Hub, cds import … --as cds (model in srv/external, entry in cds.requires), configure credentials.destination and path for the hybrid and production profiles, project the needed fields in a service, and in the handler cds.connect.to('API_…') and on('READ') → bupa.run(req.query). In development CAP mocks the service; on BTP it calls through the Destination service, and for on-premise through Connectivity and the Cloud Connector.

Q2. How does a CAP app connect to SAP HANA Cloud?

Through an HDI container (service hana, plan hdi-shared) bound to the app. cds build creates HDI artefacts in gen/db; the hdb deployer module (@sap/hdi-deploy) deploys them during cf deploy. At runtime @cap-js/hana uses the binding from VCAP_SERVICES. For development: cds deploy --to hana and cds watch --profile hybrid.

Q3. What is hybrid testing?

Running the app locally (cds watch --profile hybrid) while it uses real cloud services – HANA, destinations, XSUAA. cds bind stores where the credentials come from in .cdsrc-private.json; the credentials themselves are fetched from Cloud Foundry at start-up.

Q4. Explain requires and provides in mta.yaml with an example.

The CAP module provides srv-api with srv-url: ${default-url}; the app router requires srv-api in group destinations and maps url: ~{srv-url} – so the app router knows the service URL without hard-coding. A module requiring a resource (HDI container, XSUAA) is bound to it after the deployer created it.

Q5. In which order are MTA modules deployed?

Services first, in parallel. Modules by deployed-after if present; otherwise, without parallel deployment, by their requires / provides relations. With enable-parallel-deployments: true modules run together unless deployed-after says otherwise.

Q6. parameters vs properties vs build-parameters?

parameters are read by the deployer (memory, plan, path to xs-security.json), properties become the app's environment variables, build-parameters tell mbt build how to build (builder, commands, artefacts from other modules).

Q7. What is an MTA extension descriptor and when do you use it?

A .mtaext file with its own ID that extends the MTA ID and overrides parameters and properties at deploy time (cf deploy … -e prod.mtaext) – instances, memory, destination names per landscape – while the same .mtar moves through all landscapes.

Q8. How does a Fiori app get into the HTML5 Application Repository?

The html5 module builds and zips the app; a com.sap.application.content module that requires the html5-apps-repo instance with plan app-host (content-target: true) uploads the zip during cf deploy. The managed app router of SAP Build Work Zone serves it using the app-runtime side and the destinations that carry the same sap.cloud.service.

Q9. A Fiori app in Work Zone shows 403 when it loads data. How do you debug it?

Network tab: which request and which hop answered 403. If CAP: check the user's role collections and the scope in @restrict vs xs-security.json, log out and in for a fresh token, raise the CAP log level with DEBUG. If the back end: SU53 for the propagated user. If it is a CSRF error: token handling.

Q10. How do you debug a Node.js app running on Cloud Foundry?

First logs: cf logs --recent, cf events, Cloud Logging, CAP DEBUG loggers. If I need breakpoints on DEV: cds debug <app>, or manually cf enable-ssh, restart, kill -usr1 the node process, tunnel with cf ssh -N -L 9229:127.0.0.1:9229, attach BAS / VS Code, process health check during the session, disable SSH afterwards.

Q11. Managed or standalone app router – what did you use and why?

Managed (Work Zone) for launchpad apps: nothing to operate, SAP patches it, central entry point. Standalone when we needed custom middleware, special routes or session handling, an app outside Work Zone, or full trace control. Details on BTP Foundations › 04.

Q12. What design pain points have you seen on BTP projects?

N+1 calls to S/4HANA APIs, CSRF failures on writes, a technical user where user context was required, hard-coded URLs that broke in QA, role collections forgotten in the cutover, MTA modules deployed in the wrong order and HDI conflicts after renames. For each: the symptom, how I found it and the fix (table in Part 9).

Q13. What changes between the development, hybrid and production profiles of a CAP app?

Only configuration: development uses in-memory SQLite, mock users and mocked remote services; hybrid runs locally but binds real cloud services (cds bind, credentials fetched from Cloud Foundry at start); production runs on BTP with bindings from mta.yaml in VCAP_SERVICES. The handlers stay the same; cds env requires --profile <name> shows the effective result.

Q14. Scenario: walk me through building a side-by-side extension that reads S/4HANA sales orders and keeps its own notes.

The Order Insights lab (Part 8): CAP project in BAS, local OrderNotes entity and a service with @restrict, cds import of the sales order API with a destination and a delegating READ handler, notes in an HDI container on HANA Cloud tested hybrid, cds add xsuaa,mta,destination,connectivity, a Fiori elements app deployed to the HTML5 repository and Work Zone, events through Event Mesh, an approval in SAP Build Process Automation and a generative AI summary – checked step by step, then CI/CD and monitoring from page 05.