ABAP Keyword Documentation →  ABAP − Reference →  Predefined Types, Data Objects, Functions, and Constructors →  Predefined Data Types →  Predefined ABAP Types → 

Predefined Character-Like Types

The data objects of the character-like data types are used to handle character strings.

Properties

Type Length Standard Length Name
c 1 to 262,143 characters 1 characters Text Field
string Variable   Text string
n 1 to 262,143 characters 1 characters Numeric text field
d 8 characters   Character-like date field
t 6 characters   Character-like time field

Value Ranges and Initial Values

Type Value Range Initial Value
c Any alphanumeric characters " " for every position
string As for type c Empty string with length 0
n Any alphanumeric characters; only valid values are the digits 0 to 9, however "0" for every position
d Any eight alphanumeric characters; only those digits are valid, however, that are valid as dates according to the calendar rules in the format "yyyymmdd": "yyyy" (year): 0001 to 9999, "mm" (month): 01 to 12, "dd" (day): 01 to 31 "00000000"
t Any six alphanumeric characters; the only valid values are numbers that are valid as times in the 24-hour clock format "hhmmss". "hh" (hours): 00 to 23, "mm" (minutes): 00 bis 59, "ss" (seconds): 00 to 59. "000000"

Notes