Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Obsolete Language Elements →  Obsolete Processing of External Data 

Logical Databases (Obsolete)

A logical database is a special development object created and edited in Logical Database Builder. Its main component is an ABAP program that provides other ABAP programs with data from the nodes of a hierarchical tree structure. The most common purpose of logical databases is to extract data from database tables, however other applications are feasible. The framework for using logical database is integrated into the ABAP runtime environment.

Logical databases provide a hierarchical view across database tables associated using foreign key dependencies. If parts of these dependencies construct tree-like hierarchical structures, logical databases can read data from database tables that are components of these structures. In classic ABAP, logical databases are usually used in these hierarchical structures in accordance with the principle of input, processing, and output. The actual database reads are then wrapped in the logical database. The logical database reads the data, saves it locally in the program (if necessary) and passes it row by row to an interface work area.

As well as reusing predefined functions for reading data from database tables, logical databases can be implemented for further central tasks, such as defining uniform selection screens, central authorization checks, or making centralized enhancements to performance.

Other versions: 7.31 | 7.40 | 7.54


  • Logical databases should no longer be used. This is because they are based on cross-program usage of global data, implicit subroutine calls and reporting event control, and therefore do not comply with modern concepts. No new logical databases should be created. Instead a relevant service should be made available using a global class.

  • The function module LDB_PROCESS can be used to access existing logical databases. This function module can be also called from a method.


Logical Databases - Components

Logical Databases - Statements

Logical Databases - Use

Logical Databases - Examples