*&---------------------------------------------------------------------*
*& Report Z05_01
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT z05_01.
data: BEGIN OF s_type,
no(6) TYPE c,
name(10) TYPE c,
part(16) TYPE c,
END OF s_type.
DATA gt_itab like STANDARD TABLE OF s_type WITH NON-UNIQUE KEY no
WITH HEADER LINE.
gt_itab-no = '0001'.
gt_itab-name = 'Enjoy ABAP'.
gt_itab-part = 'SAP Team'.
APPEND gt_itab.
LOOP AT gt_itab.
WRITE : gt_itab-no, gt_itab-name, gt_itab-part.
ENDLOOP.
댓글 3
-
노라모
2012.09.26 02:55
-
running man
2013.03.12 00:41
소스 오타가 아니라 페이지 아래 박스에 있는 수정된 소스로 올리셨네요.
첫줄에
DATA: BEGIN OF s_type,
이렇게 data로 선언돼 있거든요..
TYPE이 아니라....
-
리얼오버
2021.10.31 18:28
types: BEGIN OF s_type,
no(6) TYPE c,
name(10) TYPE c,
part(16) TYPE c,
END OF s_type.
*DATA gt_itab like STANDARD TABLE OF s_type WITH NON-UNIQUE KEY no
* WITH HEADER LINE.
DATA gt_itab type STANDARD TABLE OF s_type WITH NON-UNIQUE KEY no
WITH HEADER LINE.
gt_itab-no = '0001'.
gt_itab-name = 'Enjoy ABAP'.
gt_itab-part = 'SAP Team'.
APPEND gt_itab.
LOOP AT gt_itab.
WRITE : gt_itab-no, gt_itab-name, gt_itab-part.
ENDLOOP.
수정본 올려드립니다.
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
471 | REPORT z05_07. | sapjoy | 2012.07.31 | 987 |
470 | REPORT z05_06. | sapjoy | 2012.07.31 | 1006 |
469 | REPORT z05_05. | sapjoy | 2012.07.31 | 940 |
468 | REPORT z05_04. | sapjoy | 2012.07.31 | 922 |
467 | REPORT z05_03. | sapjoy | 2012.07.31 | 1008 |
466 | REPORT z05_02. | sapjoy | 2012.07.31 | 921 |
» | REPORT z05_01. [3] | sapjoy | 2012.07.31 | 1187 |
464 | REPORT z04_18. | sapjoy | 2012.07.31 | 876 |
463 | REPORT z04_16. | sapjoy | 2012.07.31 | 1058 |
462 | REPORT z04_15. | sapjoy | 2012.07.31 | 1512 |
461 | REPORT Z04_14. | sapjoy | 2012.07.31 | 1630 |
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 |
455 | REPORT z04_08. | sapjoy | 2012.07.31 | 1521 |
454 | REPORT z04_07. | sapjoy | 2012.07.31 | 1595 |
453 | REPORT z04_06. | sapjoy | 2012.07.31 | 1508 |
452 | REPORT z04_05. | sapjoy | 2012.07.31 | 1441 |
책은 바르게 돼있는데 여기 소스 오타요.
DATA gt_itab type STANDARD TABLE OF s_type WITH NON-UNIQUE KEY no
WITH HEADER LINE.