Get Example source ABAP code based on a different SAP table
ABAP_LDB - Field Selections The statement SELECTION-SCREEN FIELD SELECTION FOR NODE$|TABLE node>> defines 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> list 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 at a minimum and can have better performance than always reading the data from all columns in a database table. The columns read for each node predefined for field selections can be specified using the FIELD> addition of the statement GET> in the linked 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 pool RSFS >>. The data object can also be used in every application program linked with the logical database program. select_fields> is a deep internal table with the components tablename> and fields>. In each line, the column tablename> contains the name of a node for which field selection is defined. 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.