Get Example source ABAP code based on a different SAP table
Declaration Statements in ABAP Release 3.0 ITOC
ABAP_MODIFICATION_NN Defining Types>
The TYPES>> statement has been introduced, which makes it possible to define new types. It has a similar syntax to the DATA> statement.
ABAP_MODIFICATION_NN Type Pools>
The type pools (see TYPE-POOL>>) make it possible to form groups of global types and their associated constants.
ABAP_MODIFICATION_NN Defining Constants>
The CONSTANTS>> statement makes it possible to define constants. The syntax of the CONSTANTS> statement is similar to that of the DATA> statement. Both simple fields and structures can be defined as constants. Constant tables cannot be defined.
ABAP_MODIFICATION_NN Defining Static Variables>
Fields within subroutines and function modules that are defined with DATA> are re-created and re-initialized each time the routine is called. The new statement STATICS>>, which can be used within subroutines and function modules, makes it possible to define fields that keep their values beyond the calls. This statement supports nearly all of the additions used with the DATA> statement.
ABAP_MODIFICATION_NN Multiple Nesting of Structures>
Previously, it was only possible to define simple nested structures using the DATA> statement. It was not possible to nest DATA BEGIN OF, .... END OF>. This restriction has now been lifted, which makes it possible to define structures as components of another structure. This is now possible in the DATA> >, STATICS>>, CONSTANTS>>, and TYPES>> statements.
ABAP_MODIFICATION_NN Internal Tables without Header Line>
Previously, each internal table automatically had a header line>, which was used as a table work area. A table with header line is therefore a mixture of two data objects (the table and the header line) under a single name. It is now possible to define tables and table types without header lines in the statements DATA>>, STATICS>>, and TYPES>>, using the following syntax: ABEXA 01145 These tables can be used without header lines as components in structures. If a work area is needed for a table, it must be under an other name. If the statements DATA> and STATICS> are used, the addition ... WITH HEADER LINE> can be used to create a table with a header line from a table without a header line. This can only be done at the top nesting level, not within a structure. The property of having a header line is property of a data object and not a type property, which means that this addition cannot be used in the TYPES> statement.
ABAP_MODIFICATION_NN Specifying the Types of Parameters and Field Symbols>
The parameters of subroutines and field symbols can now be typed using the additions LIKE fld> and TYPE typ>. The parameters of function modules can now be typed using references to predefined ABAP types and global types (types from type pools) as well as referencing ABAP Dictionary> fields.