Internal Tables 2

Internal Tables (인터널 테이블) 추가, 수정 및 Loop문을 통해 Access하는 방법

✅  Single Records Access (Overview)📘 Internal Table에 데이터를 추가, 수정하는 방법✅ 1. Internal Table에 한 건의 데이터를 추가하는 방법Internal Table에 데이터를 추가할 때는 APPEND와 INSERT 구문을 사용한다.APPEND: Internal Table의 가장 마지막에 데이터를 추가한다.INSERT: Internal Table의 원하는 위치에 데이터를 추가할 수 있다.✅ 2. APPEND와 INSERT의 차이점구문설명사용 예시APPENDInternal Table의 가장 마지막에 데이터를 추가한다.APPEND gs_flight TO it_flight.INSERTInternal Table의 원하는 위치에 데이터를 추가한다.INSERT ..

SAP ABAP/기본 2025.01.27

Internal Tables (인터널 테이블) 개요 및 변수 선언

✅  Using Internal Tables📍 용도여러 건의 데이터를 사용할 때프린트로 뽑을 때파일로 저장할 때화면에 Display할 때📍 Internal Table의 Attribute🔹 1. Internal Table의 필수 요소: 라인타입 (Line Type)라인타입(Line Type)은 열(Column)의 개수를 결정하는 요소이다.각 열의 이름과 데이터 타입도 라인타입에 의해 정의된다.즉, Internal Table은 라인타입을 통해 행(Row)과 열(Column)의 구조를 갖춘다.➡️ 정리: Internal Table에는 반드시 라인타입이 있어야 한다.📝 예시Carrid (열 이름) Connid (열 이름) ...🔹 2. Primary Key (프라이머리 키)Primary Key는 컴포넌..

SAP ABAP/기본 2025.01.26