ABAP Keyword Documentation → ABAP − Reference → Obsolete Language Elements → Obsolete Processing of External Data → Logical Databases (Obsolete) → Logical Databases - Components
Logical Databases - Structure
The structure of logical databases generally maps the foreign key relationships of hierarchical tables in the database. The structure of logical databases is tree-like and defined as follows:
- At the highest level (the root), there is just one node.
- Each node can have one or more branches.
- Each node can follow precisely one other node.
There are three types of node (see also NODES
):
- T: Database tables
- S: Data types from ABAP Dictionary
- C: Data types from type groups
In most existing logical databases, the nodes make reference to database tables whose data is read by the logical database and passed to a program for further processing. It is possible, however, to use structures from ABAP Dictionary without associated database. For technical reasons, there is an upper limit of 300 nodes in the structure of a logical database.
Each executable ABAP program associated with a logical database can contain a corresponding
GET
statement for each node in the structure. At runtime of the program,
the associated event blocks are processed in the order defined by the hierarchical structure. If a program
does not contain a GET
statement for every node in a logical database, all
nodes are processed that are located in the path from the root to the nodes named by GET
statements.
If called using the function module LDB_PROCESS, the read depth of the logical database is defined using an interface parameter.
Other versions:
7.31 | 7.40 | 7.54
Example
LFA1 is the root node and LFBK and LFB1 are branches of LFA1; LFC1 is a branch of LFB1.
|
|----LFBK
|
|----LFB1
|
|----LFC1
If GET
statements are specified for all nodes in an associated executable
program, the GET
events occur in the order LFA1, LFBK, LFB1, LFC1. If only one GET
statement is specified for LFB1 in the program, LFA1 and LFB1 are processed.