SAP TABLE CMPRHNSNS FOR FOR ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_ITAB - Table Comprehensions, Multiple FOR Expressions
This example demonstrates a sequence of FOR expressions in a table comprehension.

ABAP_SOURCE_CODE
DEMO CL_DEMO_TABLE_COMPRH_NESTED

ABAP_DESCRIPTION
The nested internal table is evaluated in a further FOR expression after the FOR expression for itabl. The result is an internal table itab2 that contains the content of itab1 in a flat line structure. The behavior of the sequence of FOR expressions is the same as in the nested LOOP statements.