SAP VALUE ITAB BASE ABEXA



Get Example source ABAP code based on a different SAP table
  



VALUE, Addition BASE for Internal Tables
This example demonstrates the value operator VALUE for internal tables with and without the addition BASE

ABAP_SOURCE_CODE
DEMO CL_DEMO_VALUE_BASE

ABAP_DESCRIPTION
Without the addition BASE, the value operator constructs a new internal table from scratch during each call and this is assigned to itab_no_base. As a result, itab_no_base contains only one line after the DO loop.
With the addition BASE, the value inserts its line into an internal table that is prefilled with the content of itab_no_base during each call. As a result, itab_base contains 10 lines after the DO loop.