Get Example source ABAP code based on a different SAP table
ARTICLE
Logical Databases - Field Selections The statement SELECTION-SCREEN FIELD SELECTION FOR NODE|TABLE node specifies a node node of a logical database in the selection include for field selections. This means that individual columns can be named in the SELECT clause in the SELECT statements of the corresponding subroutine put_node, instead of just all columns with an asterisk *. This option is used to keep the amount of data passed from the database low and and gives better performance than always reading the data from all columns in a database table. The columns read for each node specified for field selections can be specified using the FIELD addition of the statement GET in the associated executable program or in the parameter FIELD_SELECTION of the function module LDB_PROCESS. The database program of the logical database has access to the names of the columns in the data object select_fields. This data object is generated automatically in the logical database program with reference to the type rsfs_fields of the type group RSFS. The data object can also be used in every application program associated with the logical database program. select_fields is a deep internal table with the components tablename and fields. In each row, the column tablename contains the name of a node reserved for field selections. For each of these nodes, the table-like component fields contains the columns specified in the GET statements of the application program. The table fields is defined so that it can be used directly to specify columns dynamically in a SELECT statement.