SAP COND ITERATION MATRIX ABEXA



Get Example source ABAP code based on a different SAP table
  



Creating a Matrix Using FOR and VALUE
This example demonstrates how a matrix is created using iterations.

ABAP_SOURCE_CODE
DEMO CL_DEMO_MATRIX

ABAP_DESCRIPTION
The lines and columns of a matrix are simulated using an internal table whose line types are arrays. These tables are filled using nested DO loops and equivalent iteration expressions for conditional iterations in a constructor expression with the operator VALUE. The ASSERT statement shows that both internal tables have the same content. It is possible to access each individual element.