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
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.
Hierarchy of the logical database ldb:
In the report:
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.
In the following variants, you must use either FOR NODE node or
FOR TABLE dbtab within DBldbSEL:
- ... POSITION
- ... ULINE
- ... PUSHBUTTON
- ... SKIP
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.
This addition is optional. You only need it for the variant SELECTION-SCREEN EXCLUDE IDS id .