SAP Predefined ABAP Type

SAP에서 ABAP 개발 시, 미리 정의되어 있는 데이터 타입이 있습니다. 이를 이용하면 별도 Data Type을 생성하지 않고 변수선언이 가능합니다.

1. SAP ABAP Predefiend Type

2. 데이터선언 예제

* TYPE i Length 계산 : 4bytes → 32bit → 232 = 0 ~ 4,294,967,295(부호X) ,  -2,147,483,648 ~ 2,147,483,647(부호O)

DATA: lv_i TYPE i VALUE ‘1000000000-‘, “Length:4(최대10자리+부호)
      lv_p TYPE p VALUE ‘100000000000000-‘, “Length:1~16(최대15자리+부호)
      lv_f TYPE f VALUE  
‘1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'.  "Length:8(무지하게 김..)

3. 참고 링크

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments