Skip to content

Dataset

SAP HANA table and view datasets for AI training

A SAP HANA dataset is an extract of chosen tables and view definitions from a business's SAP HANA database: the column tables of the SAP application that runs on it, such as S/4HANA or BW/4HANA, the calculation views, CDS views and SQLScript procedures built for reporting, and any custom schemas, with the ABAP dictionary texts that explain the coded names. SourceX sources it to a buyer's spec from established businesses that run SAP HANA. Each dataset is de-identified, including employee, customer and vendor master data, and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Chosen tables, calculation views, CDS views and SQLScript procedures from one SAP HANA database, with the dictionary texts that decode them
Typical systems
SAP HANA under S/4HANA, BW/4HANA or Business Suite, or standalone, including SAP HANA Cloud, with HDI containers and custom schemas
Typical history
Varies by system; ask from which fiscal year documents are present and what data archiving removed
Modality
Column-store tables with coded names, plus view definitions and procedure source
Delivery formats
Parquet or CSV per table, dictionary texts as JSONL, and view and procedure definitions as XML and SQL source files
Preparation
One client only; employee, customer and vendor master data pseudonymized with joins kept; free-text fields screened; user names replaced
Licensing
Scoped per table list, client and date range; permitted use agreed per license; SAP license and extraction route checked by owner and buyer
Availability
Sourced to your spec; tables, views and history depend on the system, and supply is not guaranteed
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
schema_namestringThe HANA schema an object lives in: the application's ABAP schema, an HDI container, a custom schema, or _SYS_BIC for activated repository views.
object_namestringName from the catalog views TABLES or VIEWS, such as ACDOCA, a /BIC/ table of BW/4HANA or a customer table starting with Z.
object_typeenumColumn table, row table, virtual table, calculation view, CDS view, SQL view, procedure, table function or sequence.
columnsarrayTABLE_COLUMNS rows: column name, position, data type and length, with the key flag and data element from dictionary table DD03L.
dictionary_textsobjectThe table's short text from DD02T and field labels from DD04T for each column's data element, by language.
domain_valuesarrayFixed values and texts from DD07L and DD07T for coded columns, or the check table named in DD03L.
clientstringThe value of the client column, MANDT in most tables and RCLNT in ACDOCA, that the rows were filtered to.
rowsarrayThe table's rows under original column names, in internal format unless extraction_route says otherwise.
view_definitionstringCalculation view XML, CDS source or the SQL text from the VIEWS catalog view, with input parameters.
procedure_sourcestringSQLScript body of a procedure or table function from the PROCEDURES or FUNCTIONS catalog view, flagged when generated from an ABAP class.
dependenciesarrayOBJECT_DEPENDENCIES rows naming the tables and views that each view or procedure reads.
remote_sourceobjectFor a virtual table, the remote source and object it points to, since its rows are stored in another system.
extraction_routeobjectHow rows left the system: SQL export, SLT replication, an ODP extractor or a CDS extraction view, with any type conversions.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "schema_name": "SAPHANADB",
  "object_name": "ACDOCA",
  "object_type": "column_table",
  "client": "100",
  "dictionary_texts": {
    "language": "EN",
    "table": "Universal Journal Entry Line Items"
  },
  "columns_excerpt": true,
  "columns": [
    {
      "name": "RCLNT",
      "type": "NVARCHAR(3)",
      "key": true,
      "label": "Client"
    },
    {
      "name": "RBUKRS",
      "type": "NVARCHAR(4)",
      "key": true,
      "label": "Company Code"
    },
    {
      "name": "GJAHR",
      "type": "NVARCHAR(4)",
      "key": true,
      "label": "Fiscal Year"
    },
    {
      "name": "BELNR",
      "type": "NVARCHAR(10)",
      "key": true,
      "label": "Document Number"
    },
    {
      "name": "DRCRK",
      "type": "NVARCHAR(1)",
      "label": "Debit/Credit"
    },
    {
      "name": "HSL",
      "type": "DECIMAL(23,2)",
      "label": "Company Code Currency Amount"
    },
    {
      "name": "RHCUR",
      "type": "NVARCHAR(5)",
      "label": "Company Code Currency"
    },
    {
      "name": "BUDAT",
      "type": "NVARCHAR(8)",
      "label": "Posting Date"
    }
  ],
  "domain_values": [
    {
      "column": "DRCRK",
      "values": {
        "S": "Debit",
        "H": "Credit"
      }
    }
  ],
  "rows": [
    {
      "RCLNT": "100",
      "RBUKRS": "1010",
      "GJAHR": "2024",
      "BELNR": "1900004127",
      "DRCRK": "H",
      "HSL": -18450.0,
      "RHCUR": "USD",
      "BUDAT": "20240612"
    }
  ],
  "extraction_route": {
    "method": "slt_replication",
    "conversion_exits_applied": false
  }
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Decode coded enterprise schemas

Tables named ACDOCA or VBAK, paired with dictionary texts, teach a model to map short codes to business meaning.

Answer finance questions on the Universal Journal

ACDOCA line items with ledgers, company codes and periods support balance questions with checkable totals.

Read and translate SQLScript

Procedures and table functions are examples of set-based logic in HANA's own dialect, for explanation and translation tasks.

Trace reporting logic

Calculation view and CDS view definitions, with the tables they read, show how a reported measure is derived.

Evaluate data agents

Test items check whether an agent filters the client, converts date strings and scales currency amounts before answering.

Use-case guides: Finance and accounting agents, Enterprise and computer-use agents, Coding agents, Private evaluation sets

What makes this data valuable

Dictionary texts delivered

Table, field and fixed-value texts arrive with the rows, so no column is a bare code.

One client, stated

The manifest names the client the rows come from.

Internal formats documented

Dates, decimal timestamps, amounts, units and zero-padded numbers are marked as stored or as converted.

Views with their base tables

Each view definition comes with its dependency list.

Custom objects identified

Z tables, append fields and the business's own views are marked apart from SAP's.

Extraction route stated

The manifest says whether rows came by SQL, replication or an application extractor.

License terms

SAP HANA dataset

This page covers SAP HANA database tables and views.Illustrative

The table names are codes, and the key to them is not in HANA

HANA rarely stands alone. Usually it is the database under S/4HANA, BW/4HANA or Business Suite, and its main schema, often named SAPABAP1 or SAPHANADB, holds tables the application created. Their names are short codes: ACDOCA for Universal Journal line items, MARA for general material data, VBAK for sales document headers. The HANA catalog gives names, types and lengths and nothing about meaning. Meaning lives in the ABAP Dictionary, itself stored as tables in the same schema: DD02T for table texts, DD03L for fields and their data elements, DD04T for field labels and DD07T for the texts of fixed values. DRCRK holds S and H, and only those texts say debit and credit.

A read at the database level also skips what the ABAP layer does on every read. The application adds the client filter by itself. In SQL the client is an ordinary first column, MANDT in most application tables and RCLNT in ACDOCA, and one database can hold a production client beside test clients, all of which a SELECT returns unless filtered. Column types are the dictionary's types mapped onto HANA's. A date is an eight-character string such as 20240612, with 00000000 for no date. Many timestamps are decimals of the form 20240612143015, and many GUID keys are VARBINARY. Columns are generally NOT NULL, so empty means a blank or a zero. Amounts generally carry two decimals whatever the currency and are scaled by the decimals in table TCURX, and customer and vendor numbers stay zero-padded. Long texts, such as the notes on an order, sit in table STXL in a compressed form that SQL returns as binary.

History depends on the table. A master table such as MARA holds today's record, while ACDOCA grows by insertion because a correction is posted as a new document, though clearing later writes into existing lines. In S/4HANA some classic names survive only for compatibility: material documents are stored in MATDOC, and the old tables MKPF and MSEG are served to the application through views, so a plain select on an old name may not return what the application shows. Calculation views and CDS views store no rows at all, and for a CDS view defined in the ABAP layer HANA holds only the generated SQL view, without the access controls the application applies.

The license decides the extraction route, and the route decides the shape

Many businesses do not hold a full-use HANA license. They hold a runtime license that came with the SAP application and limits direct access to the database by other tools. Connecting to HANA and running a SELECT or an EXPORT statement can therefore work technically and still not be a route the business may use, so extraction often goes through the application layer's own interfaces. Ask which license the business holds, and have the business confirm the route.

The route changes what arrives. SLT replication copies tables row for row and, as usually set up, keeps table names and internal formats. ODP extractors and CDS extraction views return business views, already joined and filtered to one client, sometimes under field names that differ from the tables. A database EXPORT statement writes objects with their data as CSV or in a binary format made for import into another HANA. No route carries the dictionary texts unless the DD tables are extracted too, and a virtual table may deliver nothing, because its rows live in a remote source.

To test a sample, ask for one master table, one document table and one view definition. Check that the client column holds a single value, that dates, timestamps and zero-decimal currency amounts are marked as stored or converted, and that every coded column has fixed-value texts or a named check table. Then ask the business for a control total, such as one account's balance for one period, and reproduce it from the ACDOCA rows.

What to check before licensing

  • Ask which SAP HANA license the business holds, runtime or full use, and have the business confirm the extraction route used is permitted under it.
  • Have the data owner and your counsel check SAP's license terms and notes on extraction interfaces and on use of exported data against the intended use.
  • Ask for dictionary rows with every table: the DD02T, DD03L, DD04T and DD07T entries and the check tables for coded columns.
  • Confirm which client the rows come from, and that test and configuration clients were filtered out by MANDT or RCLNT.
  • Check on the sample whether dates, decimal timestamps, amounts in currencies without two decimals, units and zero-padded numbers are in internal format or converted, and whether long texts from STXL are readable.
  • Check de-identification of employee, customer and vendor master data, such as KNA1, LFA1 and personnel tables, and of the user name and free-text columns that repeat those identities on documents.
  • Ask which views, procedures and tables are the business's own and which SAP delivered, and whether virtual tables point to data another party owns.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Why do SAP HANA tables need dictionary texts?

Because the names are codes and the database does not explain them. The HANA catalog gives a column's name, type and length. What RBUKRS means, or which values DRCRK may hold, is recorded in the ABAP Dictionary, stored as tables beside the data. Without those tables an extract is unreadable to anyone new to SAP.

Can the tables be pulled with plain SQL?

Sometimes, and the license decides. Many businesses hold a runtime license that came with the SAP application and limits direct database access by other tools, so extraction often goes through the application's own interfaces. Ask which license applies and which route was used, because the route changes the shape of what arrives.

Do calculation views and CDS views come with data?

They come as definitions, and with data only if you ask for results. A view stores no rows. It is computed when queried, often with input parameters, so its output depends on what was asked. The definition, as calculation view XML or CDS source, shows the logic. Check which views are the business's own work.

How much history does a SAP HANA extract hold?

As much as the application left in the tables. Document tables such as ACDOCA grow by insertion, so amounts stay as posted. Master tables such as MARA are overwritten and show the current record. Older fiscal years may have been removed by data archiving, and a converted system may start where its migration did. Ask from which year documents are present.

How is personal data in SAP tables de-identified?

It is removed or replaced before delivery, with identifiers swapped for consistent keys so tables still join. In an SAP system that covers customer and vendor master tables, address and bank detail tables, personnel records, the user names stamped on documents and free-text fields on line items. The method is recorded for each dataset. No method is perfect, so test the sample.

Is SourceX affiliated with SAP?

SAP HANA is named to identify the system the records come from. That does not imply a partnership with or endorsement by SAP. The records belong to the business that runs SAP HANA, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

  • ERP transaction histories across modules

    One company's ERP documents across modules, with flow links, change logs, master data and the data dictionary

  • Relational business database exports

    Populated relational databases from business applications, with schema, keys, constraints, code tables and a data dictionary

  • ERP and CRM customization code

    Customer-written platform code with tenant metadata, deployment history and the specification behind each change

  • Oracle Database schemas

    Chosen schemas exported with table rows, LOBs, data dictionary definitions and PL/SQL source, converted to open formats on request

  • SAP ERP table extracts

    Table extracts from one SAP client: accounting, purchasing and sales documents, material movements, vendor, customer and material masters, change documents and decode tables

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies