메뉴 건너뛰기

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.
번호 제목 글쓴이 날짜 조회 수
427 입력 필드 입력 중 이력이 지원되지 않는 문제 해결법. [1] file 장용천 2013.09.03 8599
426 zebra printer 상세 사용메뉴얼입니다. 양키 2013.08.26 3745
425 메세지 팝업창 뛰워주는 Function [2] file 양키 2013.08.19 7928
424 Field Catalog 가져오지 못하는문제(REUSE_ALV_FIELDCATALOG_MERGE) [3] 양키 2013.08.16 9577
423 [덤프해결] CX_SY_READ_SRC_LINE_TOO_LONG file 양키 2013.08.16 7818
422 SCN에서 인기있는 Tutorial강좌들 입니다. [1] 양키 2013.08.12 8420
421 새로운 Session을 생성하는 방법 [7] 양키 2013.07.17 4961
420 Popup Function 을 모은 프로그램임니다. [5] file jokang 2013.06.26 4620
419 ABAP&SAP_MEMORY 에 대해 올려봄니다. [5] file 블루보이 2013.06.26 4196
418 ALV TOOLBAR 메뉴 버튼을 올립니다. [6] file 블루보이 2013.06.26 3324
417 TSE05 테이블 유지보수를 통한 프로그램 HEADER정보 자동입력. file paran 2013.05.21 4765
416 ALV Subtotal 맨위에 표기하기 [8] 양키 2013.03.26 5599
415 Area menu 한방에 다운로드 >,.< [10] 배불뚝이용 2013.02.26 8645
414 엑셀에서 '-' 부호 앞으로 옮기기 [18] file MasFI 2013.02.08 9019
413 Abap Dump Top 10 [5] 양키 2013.01.14 15752
412 SELECT-OPTIONS과 PARAMETERS 동적으로 선언하기 [9] file 버미! 2012.12.13 7241
411 외부 명령어 등록(EXTERNAL COMMAND) [2] sapjoy 2012.11.02 5483
410 SCN에 올라온 ADT Tutorials Link 입니다. [4] Wise 멘토 2012.10.12 4904
409 ADT(abap development tool) 설치 방법입니다. [1] Wise 멘토 2012.10.12 10228
408 SAP Netweaver 설치 시스템사양 Tip [1] 양키 2012.09.21 7542