메뉴 건너뛰기

SAP 한국 커뮤니티

There are three types of internal tables:

sapjoy 2007.03.11 12:37 조회 수 : 4000 추천:37

There are three types of internal tables:
1. Standard Tables
2. Sorted Tables
3. Hashed Tables

Standard Internal Tables

Standard tables have a linear index. You can access them using either the index or the key. If you use the key, the response time is in linear relationship to the number of table entries. The key of a standard table is always non-unique, and you may not include any specification for the uniqueness in the table definition.

This table type is particularly appropriate if you want to address individual table entries using the index. This is the quickest way to access table entries. To fill a standard table, append lines using the (APPEND) statement. You should read, modify and delete lines by referring to the index (INDEX option with the relevant ABAP command). The response time for accessing a standard table is in linear relation to the number of table entries. If you need to use key access, standard tables are appropriate if you can fill and process the table in separate steps. For example, you can fill a standard table by appending records and then sort it. If you then use key access with the binary search option (BINARY), the response time is in logarithmic relation to
the number of table entries.

Sorted Internal Tables

Sorted tables are always saved correctly sorted by key. They also have a linear key, and, like standard tables, you can access them using either the table index or the key. When you use the key, the response time is in logarithmic relationship to the number of table entries, since the system uses a binary search. The key of a sorted table can be either unique, or non-unique, and you must specify either UNIQUE or NON-UNIQUE in the table definition. Standard tables and sorted tables both belong to the generic group index tables.

This table type is particularly suitable if you want the table to be sorted while you are still adding entries to it. You fill the table using the (INSERT) statement, according to the sort sequence defined in the table key. Table entries that do not fit are recognised before they are inserted. The response time for access using the key is in logarithmic relation to the number of
table entries, since the system automatically uses a binary search. Sorted tables are appropriate for partially sequential processing in a LOOP, as long as the WHERE condition contains the beginning of the table key.

Hashed Internal Tables

Hashes tables have no internal linear index. You can only access hashed tables by specifying the key. The response time is constant, regardless of the number of table entries, since the search uses a hash algorithm. The key of a hashed table must be unique, and you must specify UNIQUE in the table definition.

This table type is particularly suitable if you want mainly to use key access for table entries. You cannot access hashed tables using the index. When you use key access, the response time remains constant, regardless of the number of table entries. As with database tables, the key of a hashed table is always unique. Hashed tables are therefore a useful way of constructing and
using internal tables that are similar to database tables.
번호 제목 글쓴이 날짜 조회 수
67 sap 메뉴에서 표준 매뉴 전환 [1] selection장 2013.09.13 9449
66 FIELD-SYMBOL설명 및 예제 프로그램 [17] Delight 2008.04.30 9463
65 간단한 계산공식은 Macro를 사용하자 [5] 양키 2011.04.14 9543
64 Field Catalog 가져오지 못하는문제(REUSE_ALV_FIELDCATALOG_MERGE) [3] 양키 2013.08.16 9560
63 윈도우7에서 sapgui가 꺼지는 현상에 관한 팁 [14] 고양이야옹 2010.10.21 9575
62 ALV 동적 필드 구성 [4] 꿀홍삼 2015.02.06 9594
61 Open SQL에서 SUM 사용시 유의사항. [11] 나침반친구 2007.06.07 9611
60 SUBQUERY 사용예 입니다. [1] 노름마치 2007.11.20 9618
59 PD 인포타입 [3] file 준서기 2012.04.01 9652
58 LOOP 필드심볼이 빠르다.FIELD-SYMBOL [8] file sapjoy 2012.03.12 9671
57 BAPI_PO_CREATE1 구매오더 생성시에 사용하세요 [8] 노름마치 2007.12.10 9716
56 유용한 SAP System T-CODE sapjoy 2014.05.16 9716
55 System field 정리 [5] magicsy69 2008.06.03 9801
54 ABAP Color 색상표 [7] 웰컴 2008.12.12 9848
53 유니코드 변환 펑션 [5] 프리틀 2009.07.16 9859
52 Internal table 사용시 속도개선을 위한 구문 [16] 노름마치 2007.11.14 10036
51 sap buffer 리셋 [7] sapjoy 2012.06.01 10139
50 Tip : 전표 라인 아이템 Direct 조회 [5] 2007.10.23 10183
49 ADT(abap development tool) 설치 방법입니다. [1] Wise 멘토 2012.10.12 10228
48 숫자 포맷에서 콤마와 소수점이 바뀌어 나올 경우 [3] 쌉비씨 2012.04.16 10250