Sub-Fields : 필드안의 특정 문자위치를 지정해서 사용
DATA : int_tel_num(17) TYPE c,
country_code(3) TYPE c,
telephone_num(14) TYPE c.
int_tel_num = '+82-(0)207-123456'.
WRITE int_tel_num.
SKIP.
country_code = int_tel_num(3).
telphone_num = int_telphone_num+4(13).
WRITE / country_code.
WRITE / telephone_num.
country_code+1(2) = '01'.
WRITE / country_code.
int_tel_num+4(13)은 4번째 인덱스부터 13개의 문자열을 쓰겠다는 의미!
'SAP' 카테고리의 다른 글
SAP ABAP Programming for Beginners - 26 투명테이블 수정 필드 추가 (0) | 2025.04.02 |
---|---|
SAP ABAP Programming for Beginners - 25 디버깅 (0) | 2025.04.02 |
SAP ABAP Programming for Beginners - 23 Split (0) | 2025.04.02 |
SAP ABAP Programming for Beginners - 22 Shift (0) | 2025.04.02 |
SAP ABAP Programming for Beginners - 21 search (0) | 2025.04.02 |