REPORT z04_07.
TYPES: BEGIN OF t_str,
col1 TYPE c,
col2 TYPE i,
END OF t_str.
TYPES : t_itab TYPE TABLE OF t_str.
DATA: gs_str TYPE t_str,
gt_itab TYPE t_itab.
gs_str-col1 = 'A'.
gs_str-col2 = 1.
APPEND gs_str TO gt_itab.
gs_str-col1 = 'B'.
gs_str-col2 = 2.
APPEND gs_str TO gt_itab.
PERFORM test_itab USING gt_itab .
FORM test_itab USING pt_itab TYPE t_itab.
READ TABLE pt_itab WITH KEY col1 = 'A' INTO gs_str.
IF sy-subrc EQ 0.
WRITE : gs_str-col1, gs_str-col2.
ENDIF.
ENDFORM. "test_itab
TYPES: BEGIN OF t_str,
col1 TYPE c,
col2 TYPE i,
END OF t_str.
TYPES : t_itab TYPE TABLE OF t_str.
DATA: gs_str TYPE t_str,
gt_itab TYPE t_itab.
gs_str-col1 = 'A'.
gs_str-col2 = 1.
APPEND gs_str TO gt_itab.
gs_str-col1 = 'B'.
gs_str-col2 = 2.
APPEND gs_str TO gt_itab.
PERFORM test_itab USING gt_itab .
FORM test_itab USING pt_itab TYPE t_itab.
READ TABLE pt_itab WITH KEY col1 = 'A' INTO gs_str.
IF sy-subrc EQ 0.
WRITE : gs_str-col1, gs_str-col2.
ENDIF.
ENDFORM. "test_itab
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
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 |
465 | 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 |
» | 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 |