REPORT z04_08.
TYPES: BEGIN OF t_str,
col1 TYPE c,
col2 TYPE i,
END OF t_str.
TYPES : t_itab TYPE TABLE OF t_str.
DATA: gt_itab TYPE t_itab.
PERFORM test_itab TABLES gt_itab .
PERFORM write_data TABLES gt_itab.
FORM test_itab TABLES pt_itab TYPE t_itab.
DATA ls_str TYPE t_str.
ls_str-col1 = 'A'.
ls_str-col2 = 1.
APPEND ls_str TO pt_itab.
ls_str-col1 = 'B'.
ls_str-col2 = 2.
APPEND ls_str TO pt_itab.
ENDFORM. "test_itab
FORM write_data TABLES pt_itab LIKE gt_itab.
DATA ls_str TYPE t_str.
LOOP AT pt_itab INTO ls_str.
WRITE : / ls_str-col1, ls_str-col2.
ENDLOOP.
ENDFORM. "write_data
TYPES: BEGIN OF t_str,
col1 TYPE c,
col2 TYPE i,
END OF t_str.
TYPES : t_itab TYPE TABLE OF t_str.
DATA: gt_itab TYPE t_itab.
PERFORM test_itab TABLES gt_itab .
PERFORM write_data TABLES gt_itab.
FORM test_itab TABLES pt_itab TYPE t_itab.
DATA ls_str TYPE t_str.
ls_str-col1 = 'A'.
ls_str-col2 = 1.
APPEND ls_str TO pt_itab.
ls_str-col1 = 'B'.
ls_str-col2 = 2.
APPEND ls_str TO pt_itab.
ENDFORM. "test_itab
FORM write_data TABLES pt_itab LIKE gt_itab.
DATA ls_str TYPE t_str.
LOOP AT pt_itab INTO ls_str.
WRITE : / ls_str-col1, ls_str-col2.
ENDLOOP.
ENDFORM. "write_data
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
471 | REPORT z05_07. | sapjoy | 2012.07.31 | 988 |
470 | REPORT z05_06. | sapjoy | 2012.07.31 | 1006 |
469 | REPORT z05_05. | sapjoy | 2012.07.31 | 941 |
468 | REPORT z05_04. | sapjoy | 2012.07.31 | 922 |
467 | REPORT z05_03. | sapjoy | 2012.07.31 | 1009 |
466 | REPORT z05_02. | sapjoy | 2012.07.31 | 923 |
465 | REPORT z05_01. [3] | sapjoy | 2012.07.31 | 1189 |
464 | REPORT z04_18. | sapjoy | 2012.07.31 | 878 |
463 | REPORT z04_16. | sapjoy | 2012.07.31 | 1059 |
462 | REPORT z04_15. | sapjoy | 2012.07.31 | 1513 |
461 | REPORT Z04_14. | sapjoy | 2012.07.31 | 1631 |
460 | REPORT Z04_13. | sapjoy | 2012.07.31 | 1672 |
459 | REPORT Z04_12. | sapjoy | 2012.07.31 | 1449 |
458 | REPORT z04_11. | sapjoy | 2012.07.31 | 1524 |
457 | REPORT z04_10. | sapjoy | 2012.07.31 | 1483 |
456 | REPORT z04_09. | sapjoy | 2012.07.31 | 1517 |
» | REPORT z04_08. | sapjoy | 2012.07.31 | 1521 |
454 | REPORT z04_07. | sapjoy | 2012.07.31 | 1597 |
453 | REPORT z04_06. | sapjoy | 2012.07.31 | 1510 |
452 | REPORT z04_05. | sapjoy | 2012.07.31 | 1441 |