ERP toolkits / SAP

What is SAP HANA? A reference guide to the database and SAP Basis

SAP HANA is SAP's in-memory, column-oriented relational database. It became generally available in 2011 and is the only database that SAP S/4HANA and SAP BW/4HANA run on, while older SAP ECC and BW systems can also run on it. SAP sells it two ways: SAP HANA 2.0, which you install and run on your own certified Linux servers or IaaS, and SAP HANA Cloud, a managed database service on SAP Business Technology Platform.

Free tools that run in your browser, fixes written for admins and developers, and how to put a private AI assistant on top of SAP HANA and Basis without your data leaving your servers.

Versions and release history

VersionYearsPlatformNotes
SAP HANA 1.0 (early SPS)2010 to 2012Certified appliance, SUSE LinuxAnnounced around SAPPHIRE 2010 and generally available in June 2011 as the High-Performance Analytic Appliance, used first as a side-car for real-time reporting replicated from ERP.
BW on HANA and Suite on HANA2012 to 2013SAP HANA 1.0SAP Business Warehouse was the first SAP application to run on HANA as its primary database (2012), followed by Business Suite (ECC) powered by SAP HANA at the start of 2013.
SAP HANA 1.0 SPS 122016 (maintenance ended June 2021)SAP HANA 1.0The final HANA 1.0 stack. Mainstream maintenance was extended from May to the end of June 2021, after which customers had to move to HANA 2.0 for regular fixes.
SAP HANA 2.0 SPS 00 to SPS 04Late 2016 to 2019SUSE or RHEL, Intel x86 or IBM PowerHANA 2.0 launched in November 2016 with a new revision strategy. Multitenant database containers became the standard operating mode, and SPS 04 added Native Storage Extension for warm data.
SAP HANA 2.0 SPS 052020 (maintained until 2025)SAP HANA 2.0Released with a five-year maintenance period, which made it the long-running stack many S/4HANA and BW customers standardised on.
SAP HANA Cloud2020 onwardManaged service on SAP BTP (AWS, Azure, Google Cloud)Database as a service that succeeded the SAP HANA Service on SAP Cloud Platform. Updated on a quarterly release cycle rather than SPS stacks.
SAP HANA 2.0 SPS 06 and SPS 072021 to 2023SAP HANA 2.0SPS 07 became available in April 2023. SAP announced that from SPS 08 new stacks would come roughly every two years with longer maintenance windows.
SAP HANA 2.0 SPS 08Late 2024 onwardSAP HANA 2.0The current on-premises stack line; check SAP Note 2378962 and the Product Availability Matrix for supported revisions before planning an update.

What SAP HANA is and who uses it

SAP HANA keeps the working data set in main memory and stores tables by column by default, so the same database can run transactions and analytical queries without separate aggregate tables. It is a full relational database with SQL, stored procedures (SQLScript), views and transactions, plus engines for spatial, graph, JSON documents and predictive libraries.

Most organisations meet HANA as the database under an SAP application: S/4HANA and BW/4HANA run only on HANA, and many ECC 6.0 and BW systems were migrated to HANA from Oracle, DB2, SQL Server or MaxDB. A smaller group uses HANA on its own as a data platform or builds native applications on it.

Search terms often blur three things. SAP HANA is the database. SAP S/4HANA is the ERP suite that runs on it and has its own hub on this site. SAP Basis is the administration discipline for the SAP application server, kernel, transports and the database underneath.

Go deeper: SAP S/4HANA hub, SAP ECC 6.0 hub, SAP BW and BW/4HANA hub, SAP S/4HANA software profile

HANA, ECC and S/4HANA: what is the difference?

SAP ECC is the ERP core of SAP Business Suite 7. It can run on several databases, including HANA, and when it does it is often called Suite on HANA. SAP S/4HANA is a different product: a rewritten suite with a simplified data model (for example the Universal Journal in ACDOCA and MATDOC for material documents) that only runs on HANA.

SAP has set mainstream maintenance for Business Suite 7 to end in 2027, with optional extended maintenance to the end of 2030. That deadline, not the database, is what drives most ECC to S/4HANA projects. Moving ECC to HANA first is a valid stepping stone, because the database migration and the application conversion can then be done as separate events.

  • SAP HANA: the database
  • Suite on HANA: ECC 6.0 running on a HANA database
  • SAP S/4HANA: the ERP suite that requires HANA
  • BW on HANA vs BW/4HANA: the same split for the data warehouse

Go deeper: ECC to S/4HANA readiness assessment, S/4HANA conversion planner for ECC, ECC tables replaced in S/4HANA, SAP ECC 2027 options for mid-size manufacturers

Architecture: column store, persistence and tenants

A HANA system has a system database and one or more tenant databases (multitenant database containers). Each tenant runs its own index server, where SQL processing and the column and row stores live; the name server holds topology, and other services handle scripting, documents and data provisioning.

Data in memory is protected by persistence on disk. Savepoints write changed pages to the data volume at regular intervals and the redo log records every committed change, so the database can restart and replay to the last commit. Column tables take writes into a delta store that is periodically merged into the compressed main store (the delta merge).

Native Storage Extension lets warm data sit on disk and be paged into a buffer cache, which reduces the memory a large system needs. Memory sizing is still the main cost driver: SAP provides Quick Sizer for new systems and the /SDF/HDB_SIZING report for existing ABAP systems moving to HANA.

Go deeper: SAP HANA memory sizing calculator, S/4HANA HANA memory sizing calculator, HANA monitoring views (M_ views) reference, HANA largest tables SQL generator

Deployment: on-premises HANA 2.0, IaaS, RISE and HANA Cloud

On-premises and customer-managed HANA 2.0 runs on certified hardware, either a pre-configured appliance or Tailored Datacenter Integration on certified servers and storage, on SUSE or Red Hat Linux. The same software can run on certified virtual machines at AWS, Azure or Google Cloud, where the customer or a partner still owns Basis operations.

In RISE with SAP and SAP's private cloud offerings, SAP or a hyperscaler runs the HANA database and the infrastructure, and the customer's Basis scope narrows to application-level tasks. SAP HANA Cloud is a separate managed database service on SAP Business Technology Platform; it is used for side-by-side applications, data marts and analytics, not as the database for a customer's own S/4HANA installation.

SAP HANA, express edition is a free, size-limited edition for development and learning. Production use needs a full license from SAP.

Go deeper: SAP RISE vs on-prem TCO calculator, S/4HANA cost model, On-prem AI for SAP landscapes

SAP Basis and HANA administration

Basis covers the ABAP application server (NetWeaver AS ABAP, or ABAP Platform under S/4HANA): the kernel, profile parameters, work processes, the transport management system, client administration, users and roles, background jobs and system monitoring. On HANA systems the Basis team usually also owns database administration.

Daily HANA work centres on memory and resource monitoring, backups (data, log and catalog), HANA System Replication for high availability and disaster recovery, revision updates, and security such as user management, audit policies and encryption. Tools include SAP HANA cockpit, hdbsql, the hdbuserstore, DBACOCKPIT in the ABAP system, and the M_ monitoring views.

Common ABAP-side transactions are SM50 and SM66 for work processes, ST22 for dumps, SM37 for jobs, STMS for transports, ST03N for workload and SU01 and PFCG for users and roles. Kernel patches and system updates are applied with the Software Update Manager (SUM), and new systems are installed with Software Provisioning Manager (SWPM).

Go deeper: SAP daily Basis health check checklist, SAP Basis transaction codes cheat sheet, HANA backup SQL statement generator, SAP Basis security hardening assessment

Migration to HANA, upgrades and the support lifecycle

Moving an existing ABAP system from another database to HANA is usually done with the Database Migration Option (DMO) of SUM, which can combine the database migration with a release upgrade, or with a classic export and import. Downtime is driven by database size, network and the number of parallel processes, so large systems need test runs and often downtime-optimised variants.

HANA 2.0 is maintained per SPS: SAP Note 2378962 sets bug fixes and security patches for two years after each stack's release, with longer windows for selected stacks such as SPS 05 (into 2025). Staying current means planning a revision or SPS update every year or two, with checks against the Product Availability Matrix for the SAP applications on top.

Kernel and ABAP Platform updates follow their own release notes. A kernel change, a HANA revision and an S/4HANA feature pack are three separate activities, and coordinating them is a large part of Basis planning.

Go deeper: S/4HANA conversion downtime window calculator, SAP kernel upgrade checklist, S/4HANA upgrade planner, S/4HANA upgrade and conversion runbook

Development and integration on HANA

In ABAP systems, SAP recommends pushing data-intensive logic into the database with Core Data Services (CDS) views and ABAP Managed Database Procedures (AMDP), rather than reading large result sets into the application server. Native HANA development uses SQLScript, calculation views and HDI containers.

Integration runs at two levels. Application integration uses the SAP application's interfaces: BAPIs, IDocs, OData services and SAP Integration Suite. Data integration reads HANA directly through SQL (JDBC, ODBC), Smart Data Access and Smart Data Integration, or replication tools. Reading the database directly is fine for analytics but bypasses application authorizations, so write-backs should go through the application.

Go deeper: ABAP CDS view skeleton generator, CDS table function and AMDP generator, Glossary: SAP BAPI, Glossary: SAP IDoc

Getting help: SAP Support, community and Basis consultants

SAP's channels are the SAP Support Portal (incidents, SAP Notes and Knowledge Base Articles), the SAP Help Portal for product documentation, SAP Community blogs and Q and A, and learning.sap.com for training and certification paths. User groups such as ASUG in North America and DSAG in German-speaking countries run Basis and technology tracks.

Day-to-day Basis is often split between an internal team and a partner, especially for SPS updates, migrations and 24x7 monitoring. When choosing outside help, ask for concrete experience with your HANA revision, your HA/DR design and your target S/4HANA release.

Go deeper: SAP partner scorecard, HANA SQL error codes reference, NetWeaver release and kernel reference

AI on SAP HANA

HANA has long shipped machine learning libraries (the Predictive Analysis Library and Automated Predictive Library), and SAP added a vector engine to SAP HANA Cloud for retrieval-augmented generation. SAP's own generative AI, including Joule, is delivered mainly through its cloud services.

For on-premises landscapes, a common pattern is an open-weight model on the customer's GPUs that reads S/4HANA or ECC data through CDS-based OData services or read-only HANA views, with SAP authorizations enforced and human approval on any posting. This keeps data inside the customer's network, at the cost of running the model platform yourself.

Go deeper: S/4HANA AI integration, on-prem, AI on SAP ECC before the 2027 migration, SAP S/4HANA MCP server

Frequently asked questions

What is SAP HANA?

SAP HANA is SAP's in-memory, column-oriented relational database, generally available since 2011. It runs both transactions and analytics in one database and is the required database for SAP S/4HANA and BW/4HANA. It is available as SAP HANA 2.0 for your own servers and as the managed SAP HANA Cloud service.

Is SAP HANA an ERP?

No. SAP HANA is a database. The ERP is SAP S/4HANA (or the older SAP ECC), which runs on top of HANA. The shared name causes most of the confusion in searches for SAP HANA ERP.

What is the difference between SAP ECC and S/4HANA?

ECC is the ERP core of SAP Business Suite 7 and runs on several databases, including HANA. S/4HANA is SAP's newer ERP suite with a simplified data model and Fiori user interface, and it runs only on HANA. ECC mainstream maintenance ends in 2027, with optional extended maintenance to the end of 2030.

What is the latest version of SAP HANA?

On-premises, the current line is SAP HANA 2.0, with SPS 07 released in 2023 and SPS 08 released in late 2024 and still receiving revisions. SAP HANA Cloud is updated on its own quarterly cycle. Check SAP Note 2378962 for the supported revisions.

What is SAP HANA Cloud?

SAP HANA Cloud is a database as a service on SAP Business Technology Platform, introduced in 2020 as the successor to the SAP HANA Service. SAP runs the infrastructure and updates; it is used for cloud applications, data marts and analytics, and includes an optional data lake.

Does SAP HANA run on Windows?

No. SAP HANA runs on Linux only, on SUSE Linux Enterprise Server for SAP Applications or Red Hat Enterprise Linux for SAP Solutions, using certified Intel x86 or IBM Power hardware or certified cloud instances. Client tools can run on Windows.

What is SAP Basis?

SAP Basis is the technical administration of SAP systems: the NetWeaver or ABAP Platform application server, kernel, transports, users and authorizations, background jobs, monitoring and, on HANA systems, the database itself. Basis administrators install, patch, upgrade and keep SAP systems running.

How is SAP HANA memory sized?

Use SAP Quick Sizer for new implementations and the /SDF/HDB_SIZING report for an existing ABAP system moving to HANA. The result accounts for compressed column data, row store, working memory for queries and growth; Native Storage Extension can reduce the memory needed for warm data.

How do you back up SAP HANA?

HANA backs up data (full, incremental or differential), log segments and the backup catalog, either to the file system or to third-party tools through the Backint interface. Backups can be started from SAP HANA cockpit, SQL (BACKUP DATA) or scheduled jobs, and restores should be tested regularly.

Is SAP HANA free?

There is a free SAP HANA, express edition for development and learning, limited in size. Production use of SAP HANA 2.0 or SAP HANA Cloud requires a paid license or subscription from SAP; SAP does not publish a single list price.

Sources

Get SAP HANA and Basis alerts

Support and maintenance deadlines, release changes that affect SAP HANA and Basis sites, and new free SAP HANA and Basis tools. A couple of emails a month at most.

Free. Unsubscribe with one click from any email.

Design private AI for SAP HANA and Basis

The builder starts with SAP HANA and Basis connected the way it supports. Pick a model and GPUs, add documents, and export the architecture.

Loading the architecture builder...

Free SAP HANA and Basis tools

Code and document generators (27)

Guides