Back to Browse

5 Data types in sap abap

31 views
May 16, 2026
45:54

In SAP ABAP, data types serve as blueprints or templates for creating data objects (variables). They carry no memory themselves but define the exact technical attributes of the data to be processed. The ABAP type system is split into three core categories: Elementary Types, Complex Types, and Reference Types. 1. Elementary Data Types ----------------------------------------- Elementary types represent atomic, single values and are subdivided into Fixed Length and Variable Length (Strings) fields. You can review additional code architecture standards for these types via documentation from SAP. Numeric Types I (Integer): 4-byte whole numbers (e.g., counters, indexes). INT8 (8-Byte Integer): Designed for larger whole numbers exceeding the range of I. P (Packed Number): Used for financial calculations or precise decimals; allows up to 14 decimal places. F (Binary Floating Point): Used for highly volatile numbers where rounding errors are acceptable. DECFLOAT16 / DECFLOAT34: High-accuracy decimal floating-point numbers containing 16 or 34 digits respectively. Character-Like and Byte-Like Types C (Character Field): Fixed-length alphanumeric or special character text. N (Numeric Text): Fixed-length field restricted entirely to numeric characters (e.g., zip codes, phone numbers). STRING: Character string of variable length used for bulk text entry. X (Byte Field): Fixed-length byte sequences represented in hexadecimal format. XSTRING: Variable-length byte sequence handling binary or raw data streams. Date and Time Types D (Date Field): Fixed-length system date using the exact format YYYYMMDD. T (Time Field): Fixed-length system time using the exact format HHMMSS. UTCLONG (Timestamp): High-precision combination of date and time accurate up to 100 nanoseconds

Download

0 formats

No download links available.

5 Data types in sap abap | NatokHD