Get Example source ABAP code based on a different SAP table
Internal Tables in Release 6.10
In Release 6.10, the following enhancements have been made to internal table functions:
1 Creating a table object 2 Checking the convertibility of key fields 3 Duplicate or overlapping key specifications 4 Support for accessing attributes 5 Table categories for text pools and IN conditions 6 Handling overflows in COLLECT and SUM 7 Additions ASSIGNING and REFERENCE INTO 8 Uppercase and lowercase spelling in dynamic components 9 Combined key specifications with table_line 10 Establishing the number of rows in an internal table 11 Optimization when accessing internal tables 12 Offset and length declarations for the table definition
ABAP_MODIFICATION_1 Creating a table object
You can create any table objects at runtime by using theCREATE DATA statement. If the table type is known in full then this is taken into account by the syntax check.
ABAP_MODIFICATION_2 Checking the convertibility of key fields
In the case of the statements READ TABLE itab WITH KEY k1 = v1 .... kn = vn and DELETE TABLE itab WITH KEY = v1 .... kn = vn, the system already checks whether the key values are convertible to the component type in the syntax check. This convertibility check is also effective for the newer variant READ ... WITH TABLE KEY .... Previously, the runtime error MOVE_NOT_SUPPORTED was triggered if the conversion was not possible.
ABAP_MODIFICATION_3 Duplicate or overlapping key specifications
In the case of duplicate or overlapping key specifications, the statement READ TABLE itab WITH KEY k1 = v1 .... kn = vn now triggers a syntax error instead of a syntax warning. If specified dynamically, it was previously the case that the last key specification was used; now the runtime error DYN_KEY_DUPLICATE is triggered.
ABAP_MODIFICATION_4 Support for accessing attributes
The ... COMPARING o->attr addition now lets you access the attributes of objects that are components of internal tables, similar to when reading, changing, deleting, or sorting internal tables.
ABAP_MODIFICATION_5 Table categories for text pools and IN conditions
Alongside standard tables, thetables categories HASHED and SORTED are supported for the statements READ , DELETE, and INSERT TEXTPOOL .... The IN conditions for SELECT ... WHERE and LOOP ... WHERE are now also independent of the table category.