REPORT z16_002.
CONTROLS flights TYPE TABLEVIEW USING SCREEN 100.
DATA: ok_code TYPE sy-ucomm,
save_ok TYPE sy-ucomm.
DATA: itab TYPE TABLE OF demo_conn,
fill TYPE i.
TABLES demo_conn.
DATA: lines TYPE i,
limit TYPE i.
SELECT * FROM spfli INTO CORRESPONDING FIELDS OF TABLE itab.
CALL SCREEN 100.
MODULE status_0100 OUTPUT.
SET PF-STATUS 'SCREEN_100'.
DESCRIBE TABLE itab LINES fill.
flights-lines = fill.
ENDMODULE.
MODULE fill_table_control OUTPUT.
READ TABLE itab INTO demo_conn INDEX flights-current_line.
ENDMODULE.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE read_table_control INPUT.
lines = sy-loopc.
MODIFY itab FROM demo_conn INDEX flights-current_line.
ENDMODULE.
MODULE user_command_0100 INPUT.
save_ok = ok_code.
CLEAR ok_code.
CASE save_ok.
WHEN 'NEXT_LINE'.
flights-top_line = flights-top_line + 1.
limit = fill - lines + 1.
IF flights-top_line > limit.
flights-top_line = limit.
ENDIF.
WHEN 'PREV_LINE'.
flights-top_line = flights-top_line - 1.
IF flights-top_line < 0.
flights-top_line = 0.
ENDIF.
WHEN 'NEXT_PAGE'.
flights-top_line = flights-top_line + lines.
limit = fill - lines + 1.
IF flights-top_line > limit.
flights-top_line = limit.
ENDIF.
WHEN 'PREV_PAGE'.
flights-top_line = flights-top_line - lines.
IF flights-top_line < 0.
flights-top_line = 0.
ENDIF.
WHEN 'LAST_PAGE'.
flights-top_line = fill - lines + 1.
WHEN 'FIRST_PAGE'.
flights-top_line = 0.
ENDCASE.
ENDMODULE.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
271 | report zunicode_003. | sapjoy | 2008.11.22 | 2202 |
270 | report zunicode_002 | sapjoy | 2008.11.22 | 2563 |
269 | zunicode_001 | sapjoy | 2008.11.22 | 2397 |
268 | REPORT Z07_024 | sapjoy | 2006.12.09 | 2474 |
267 | REPORT z18_033 [47] | sapjoy | 2008.10.13 | 9044 |
266 | REPORT Z13_021 [1] | sapjoy | 2008.09.29 | 2156 |
265 | REPORT Z17_004. | sapjoy | 2007.02.12 | 2508 |
264 | REPORT z19_005 [1] | sapjoy | 2007.04.04 | 2927 |
263 | REPORT z18_035 | sapjoy | 2007.03.14 | 2450 |
262 | REPORT z16_003 [1] | sapjoy | 2008.08.08 | 2551 |
» | REPORT z16_002 | sapjoy | 2008.08.08 | 2649 |
260 | REPORT Z04_003 [9] | sapjoy | 2007.05.17 | 2561 |
259 | <b>ABAP SOURCE는 교재에 사용된 소스들입니다.</b> [1] | sapjoy | 2006.12.03 | 3619 |
258 | REPORT z18_037 [3] | sapjoy | 2008.04.22 | 2728 |
257 | REPORT z18_038 [2] | sapjoy | 2008.04.22 | 2636 |
256 | REPORT Z07_031 [2] | sapjoy | 2006.12.09 | 2309 |
255 | REPORT Z05_001 [3] | sapjoy | 2007.05.22 | 2881 |
254 | REPORT Z05_003 | sapjoy | 2007.05.22 | 2406 |
253 | REPORT Z15_027 . | sapjoy | 2007.02.01 | 2718 |
252 | REPORT Z17_021 . | sapjoy | 2007.02.21 | 2388 |