SAP SELECT FROM ITAB ABEXA



Get Example source ABAP code based on a different SAP table
  



SELECT, Internal Table as Data Source of a Query
This example demonstrates how an internal table is accessed using an AB_SQL query.

ABAP_SOURCE_CODE
DEMO CL_DEMO_SELECT_FROM_ITAB

ABAP_DESCRIPTION
An internal table is filled with random values and is used as a data source of a SELECT statement. Aggregate expressions, an SQL expression, GROUP BY , and ORDER BY are all used when doing this. The statement cannot, however, be executed on the AS ABAP since it does not meet the corresponding restrictions. For this example, the pragma ##itab_db_select is used to hide the associated syntax check warning.