메뉴 건너뛰기

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.
번호 제목 글쓴이 날짜 조회 수
487 Open SQL에서 SUM 사용시 유의사항. [11] 나침반친구 2007.06.07 9623
486 ALV 동적 필드 구성 [4] 꿀홍삼 2015.02.06 9598
485 윈도우7에서 sapgui가 꺼지는 현상에 관한 팁 [14] 고양이야옹 2010.10.21 9575
484 Field Catalog 가져오지 못하는문제(REUSE_ALV_FIELDCATALOG_MERGE) [3] 양키 2013.08.16 9569
483 간단한 계산공식은 Macro를 사용하자 [5] 양키 2011.04.14 9545
482 FIELD-SYMBOL설명 및 예제 프로그램 [17] Delight 2008.04.30 9467
481 sap 메뉴에서 표준 매뉴 전환 [1] selection장 2013.09.13 9449
480 테이블컨트롤에서 F4 값 변경시 다른 필드 값도 변경하기 F4IF_INT_TABLE_VALUE_REQUEST [1] 한해동안 2008.07.24 9439
479 <img src=d.gif>Source Activation 시 [READ_REPORT_LINE_TOO_LONG] dump 발생하면?[추천:e-abap] [5] JYG 2011.02.11 9426
478 표준편차구하는 로직 윤사모 2011.03.23 9371
477 BAPI_MATERIAL_SAVEDATA 자재마스터 생성시에 사용하세요. [1] 노름마치 2007.12.10 9274
476 SAP 단순하지만, 모르면 정말 불편 한 기능들 [22] SARA 2007.03.27 9244
475 TYPE-1 프로그램에서 실행버튼 없애기 [1] 아밥뽀 2013.09.23 9125
474 엑셀에서 '-' 부호 앞으로 옮기기 [18] file MasFI 2013.02.08 9018
473 SELECT-OPTIONS 문법 [5] sapjoy 2006.12.28 9002
472 Report 개발 시 Select-option에 search help 값이 자동으로 입력이 안될때 [6] file 곰님MAX 2010.02.12 8939
471 ALV 내용 변경 방법. [8] 초보보초보 2007.02.07 8939
470 효과적인 ABAP/4 프로그램 작성기법 [24] 열공아밥 2009.12.20 8888
469 SAP GUI 730 ALV Grid 느림 현상(해결방법) [3] Dave 2013.09.27 8886
468 유용한 t-code 모음들 [26] 아이디빵 2008.04.24 8819