This repository contains examples for using the ODBC driver for ABAP in various programming languages.
Information on how to run the example programs and prerequisites can be found either as comments in the code or in readme.md
files in the respective directories.
The folder examples
contains the actual examples, most are sorted in subfolders for each programming language, the folder unix
contains a configuration template for the unixodbc
driver manager.
The folder ABAP
contains a text representation of the ABAP objects required by the examples.
The contents is also released as the ABAP package BASIS/SABP_MAIN/SABP/SABP_DBC2ABAP/SABP_DBC2ABAP_TEST
, but some objects might not be available in older releases.
All examples require the ODBC driver for ABAP to be installed on the client. It can be downloaded from the SAP Marketplace.
On Windows, the standard ODBC driver manager is used. For Unix systems, the ODBC driver manager unixodbc is required for almost all examples. Other driver managers are not supported.
Some features showcased in the examples have minimum version requirements:
Features | SAP system version | ODBC driver version |
---|---|---|
select |
2021 FPS01 | 01.00.0000 |
call |
2025 / 2502 | 01.00.0018 |
insert , delete |
2025 / 2508 | 01.00.0021 |
The examples in this repository are provided as source code. They can be obtained by cloning the repository or by downloading individual files via the browser.
Create an issue in this repository if you find a bug or have questions about the content.
The official documentation for the ODBC driver for ABAP exists in three flavours:
There is a number of SAP Technology blog posts discussing the various aspects of the ODBC driver for ABAP:
- Consuming CDS View Entities Using ODBC-Based Client Tools
- Using the ODBC driver for ABAP on Linux
- SQL Queries on CDS objects Exposed as SQL Service
- Access CDS Objects Exposed as SQL Services Using Microsoft SQL Server
- Data Science with SAP S/4HANA – How to connect HANA-ML with Jupyter Notebooks (Python)
- Build an Azure Data Factory Pipeline with the ODBC Driver for ABAP
- Taking Data Federation to the Next Level: Accessing Remote ABAP CDS View Entities in SAP HANA Cloud
- Expose and Use ABAP-Managed Database Procedures (AMDPs) in SQL Services
- Rust and ABAP ODBC
Please see our guideline for contributions to SAP Open Source Software Projects.
Please see the SAP Open Source Code of Conduct.
Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.