Data Types
변수 선언 문법
DATA 변수명 Type 변수의 타입
Example:
DATA employee_number Type I.
아래는 ABAP에서 지원하는 Data Type 들이다.
Data Type | Initial field length |
Vaild field length |
Initial value |
Meaning |
Numeric types(숫자 타입) | ||||
I | 4 | 4 | 0 | Integer (whole number) |
F | 8 | 8 | 0 | Floating point number |
P | 8 | 1 – 16 | 0 | Packed number |
Character types(문자 타입) | ||||
C | 1 | 1 – 65535 | ‘ … ‘ | Text field(alphanumeric characters) |
D | 8 | 8 | ‘00000000’ | Date field(Format: YYYYMMDD) |
N | 1 | 1 – 65535 | ‘0 … 0’ | Numeric text field(numeric characters) |
T | 6 | 6 | ‘000000’ | Time field(format: HHMMSS) |
Hexadecimal type(16진수 타입) | ||||
X | 1 | 1 – 65535 | X’0 … 0′ | Hexadecimal field |
728x90
'Programming > ABAP' 카테고리의 다른 글
ABAP Operators(연산자) (0) | 2023.07.20 |
---|---|
ABAP Control Statement(조건문 및 반복문) (0) | 2023.07.19 |
CTS(Change and Transport System) 생성 (0) | 2023.07.17 |
SAP ABAP이란? (0) | 2023.07.15 |
SAP NetWeaver (0) | 2023.07.13 |