Skip to content

ABAP Keyword Documentation →  ABAP - Release-Specific Changes →  Changes in Releases 6.xx →  Changes in Release 6.10 

Type Concept in Release 6.10


1. Constants for structures and internal tables

2. New generic types for field symbols and formal parameters

3. Methods for displaying specific type attributes

4. Type description objects for all friends of a class

Other versions: 7.31 | 7.40 | 7.54

Modification 1

Constants for Structures and Internal Tables

Constants can now be defined for structures and internal tables, which in turn contain internal tables or references and strings. Only the initial value is possible however.


Example

types: 
  begin of STRUC, 
    ITAB type standard table of SPFLI with non-unique key CARRID, 
    MREF type ref to OBJECT, 
  end of STRUC. 

constants: 
  CONST  type STRUC value is initial. 

Modification 2

New Generic Types for Field Symbols and Formal Parameters

The new generic types can be used for typing field symbols and parameters in subroutines, function modules, or methods. The following table shows their variants:

Gen. Type Types
SIMPLE CLIKE, XSEQUENCE, NUMERIC
CLIKE N, D, T, STRUC1, CSEQUENCE
CSEQUENCE C, STRING
XSEQUENCE X, XSTRING
NUMERIC I, s, b, P, F

Modification 3

Methods for Displaying Specific Type Attributes

The method GET_PROPERTY, which provides information about specific type attributes at runtime, has been added to the class CL_ABAP_TYPEDESCR.

Modification 4

Type Description Objects for All Friends of a Class

The method GET_FRIEND_TYPES was introduced in the class CL_ABAP_CLASSDESCR. This can be used to query the type description objects for all friends of a class at runtime.