Type Groups :
Type groups, another repository object of ABAP Dictionary, allow you to define data types directly in ABAP Dictionary, instead of defining them in an ABAP program.
- The name of a type group in ABAP Dictionary must have a maximum length of five characters
- characters. Every data type name defined in a type group must begin with the name of the type group followed by an underscore sign .
Example
TYPE-POOL ZTYPE.
TYPES: ZTYPE_NAME(30) TYPE c,
ZTYPE_AGE(3) TYPE i.
In this code snippet, two data types are created. The declared type group (that is, ZTYPE), can be used in an ABAP program, as shown in the following code snippet:
REPORT ZSHIVAM.
TYPE-POOLS ZTYPE.
DATA: NAME TYPE ZTYPE_NAME,
AGE TYPE ZTYPE_AGE.
Comments
Post a Comment