Get Example source ABAP code based on a different SAP table
ARTICLE
Logical Databases - Dynamic Selections Alongside static selections, the selection screen of a logical database can also contain dynamic selections . Dynamic selections enable the user to instruct the logical database to make further user-defined selections for database reads, alongside the static selections defined in the selection include. Before the logical database can offer dynamic selections for a node, the statement SELECTION-SCREEN DYNAMIC SELECTIONS must be specified in the selection include. If the node node specified here is requested by the associated program, the dynamic selections become part of the selection screen. After choosing Dynamic Selections, the user can make selections for the fields offered by the logical database. If called by the function module LDB_PROCESS, an appropriate parameter can be passed. In the database program, dynamic statements can be used to instruct the selections to read the data. The values of every program-specific selection criterion for which a dynamic selection node is defined are also passed to the logical database before the data is selected. The user can define the field list specified for dynamic selections as a selection view of the logical database. Before the dynamic selections can be used in the SELECT statements of a subroutine put_node, the data object dyn_sel must be used that is declared implicitly in the logical database program with reference to the data type rsds_type from the type group RSDS. The data object dyn_sel is available only in the database program, but not in an associated executable program. dyn_sel is a deep structure with the following components: