SAP SELECT INLINE DECL ABEXA



Get Example source ABAP code based on a different SAP table
  



SELECT, Inline Declarations
This example demonstrates inline declarations in the statement SELECT.

ABAP_SOURCE_CODE
DEMO CL_DEMO_SELECT_INLINE_DCLRTN

ABAP_DESCRIPTION
The inline declarations of the first two SELECT statements create the same internal tables. The row type of the internal tables is a structure with the two substructures scarr and spfli that each have the columns of the two joined DDIC database tables as components. The substructures are resolved in a table comprehension in the output.
The inline declaration of the third SELECT statement creates an internal table with a non-nested row structure. The components of the row are determined directly using the columns specified in the SELECT list.