REPORT Z99_24.
TYPES : BEGIN OF t_line,
col1 TYPE i,
col2 TYPE i,
END OF t_line.
DATA : gt_itab TYPE sorted TABLE OF t_line WITH NON-UNIQUE KEY col1 col2,
gs_str TYPE t_line.
DATA: lv_start_time TYPE timestampl,
lv_end_time TYPE timestampl,
lv_duration TYPE decfloat34.
DO 10000000 TIMES.
gs_str-col1 = 10000000 - sy-index.
gs_str-col2 = sy-index.
INSERT gs_str INTO TABLE gt_itab.
ENDDO.
GET TIME STAMP FIELD lv_start_time.
READ TABLE gt_itab WITH TABLE KEY col1 = 5555555 col2 = 7777777 INTO gs_str.
GET TIME STAMP FIELD lv_end_time.
lv_duration = lv_end_time - lv_start_time.
WRITE: 'Execution time: ', lv_duration, ' milliseconds'.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
10 | REPORT Z19_02. | sapjoy | 2012.08.01 | 3929 |
9 | REPORT Z20_01. | sapjoy | 2012.08.01 | 5066 |
8 | subroutine pool | sapjoy | 2013.11.15 | 3285 |
7 | REPORT Z21_01 | sapjoy | 2015.10.28 | 2252 |
6 | Z18_06_DRAGCLASS | sapjoy | 2022.02.22 | 302 |
5 | z15_21_drag | sapjoy | 2022.02.24 | 276 |
4 | API | sapjoy | 2022.11.02 | 325 |
3 | REPORT z05_36 | sapjoy | 2023.02.07 | 249 |
2 | REPORT Z06_01. | sapjoy | 2024.04.20 | 33 |
» | REPORT Z99_24. | sapjoy | 2024.05.21 | 23 |