Skip to content

SAP-samples/odbc-driver-for-abap-examples

Examples for the ABAP ODBC driver

REUSE status

Description

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.

Requirements

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

Download and Installation

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.

How to obtain support

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:

Contributing

Please see our guideline for contributions to SAP Open Source Software Projects.

Code of Conduct

Please see the SAP Open Source Code of Conduct.

License

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.