You can only use the additions described here in the selection include
of the logical database ldb. Some are optional, some are required.
1. ... FOR
NODE node
2. ...
FOR TABLE dbtab
3. ... ID selid
... FOR NODE node
... FOR TABLE dbtab
These additions assign an object defined in a
SELECTION-SCREEN
to a node node dbtab
of the logical database ldb.
If the node has type
T (table), you can use either FOR TABLE or
FOR NODE. With other node types, you must use FOR NODE.
This assignment is necessary, so that only the relevant
SELECTION-SCREEN statements are used to form the selection
screen of the report. These are the statements that refer to a node used in the report.
SELECTION-SCREEN statements in the selection
include, that are assigned in the FOR TABLE dbtab
or FOR NODE node additions to nodes that are not used in the report are ignored when the system constructs the selection screen for the report.
A node in the logical database ldb is considered to be "used in the report"
if it is declared in the report using the NODES
statement (or using the TABLES
statement for nodes with type T). It is also "used" if
it is on the path from the root of the database hierarchy to a node node_2 that is declared in the report.
Example
Hierarchy of the logical database ldb:
SPFLI
|
---- SAPLANE
|
---- SFLIGHT
|
---- SBOOK
In
the report:
TABLES SFLIGHT.
The following
nodes are "used": SFLIGHT (because it is directly declared),
and SAPLANE and SPFLI
(because they are on the path from the root of the hierarchy SPFLI
to the declared table
SFLIGHT. SBOOK
counts as "unused". This means that any
SELECTION-SCREEN statements in DBldbSEL with the addition FOR TABLE SBOOK are ignored.
... ID selid
This addition identifies a SELECTION-SCREEN object (such as a comment, underline or blank line) using an ID of up to three characters. You can then enter this ID in the SELECTION-SCREEN EXCLUDE IDS id statement to exclude the object from a selection screen version.
Processing Selections