ABAP - Keyword Documentation →  ABAP - Reference →  Obsolete Language Elements →  Obsolete Processing of External Data →  Logical Databases (Obsolete) →  Logical Databases - Statements →  Interface Work Areas for Logical Databases → 

NODES

Quick Reference

Obsolete Syntax

NODES node [TYPE type].

Effect

The sole effect of the statement NODES is to pass data from logical databases to executable programs. It defines an interface work area and is allowed only in the global declaration part of executable programs that are associated with a logical database, and in the database program of logical databases. node must be the name of a node of the logical database. NODES declares a table work area node for the respective node. The data type of the table work area is either predefined in the node of the logical database or can be chosen from a list using the addition TYPE.

The nodes of the structure of a logical database are entered in transaction SE36 and can have the following node types:

The statement NODES (or TABLES) of the executable program controls the structure of the standard selection screen of the logical database. Only those input fields are displayed, for whose nodes (or a node lying directly below in the hierarchy) a corresponding NODES (or TABLES) statement appears in the executable program.

The database program is responsible for assigning data to the table work area. For every node of the logical database, there is a subroutine put_node in the database program, which uses the statement PUT to signal to the executable program that data is available in the table work area node.

For all table work areas node specified after NODES (or TABLES) in the executable program, event blocks can be created for the reporting events GET node [LATE]. The events are raised by the statement PUT node or PUT <node> in the database program. After an event of this type, the table work area filled in the database program can be evaluated in the executable program. For nodes of type A, the data is available only within the event blocks. For all other types, the data is available throughout the executable program.

Notes

Example

A logical database contains a root node root_node of node type S, to which the data type INT4 is assigned. The top include of the database program then contains the statement:

NODES root_node.

In addition, the database program contains the following subroutine:

FORM put_root_node.
  DO 10 TIMES.
    root_node = sy-index.
    PUT root_node.
  ENDDO.
ENDFORM.

If the executable program below is associated with the logical database, it is given the numbers 1 through 10 in the table work area root_node when the program is executed and writes them to a list when the event GET is raised:

REPORT demo_nodes.

NODES root_node.

GET root_node.
  WRITE root_node.