REPORT z10_13.
TYPES: BEGIN OF t_struct,
col1 TYPE char15,
col2 TYPE char15,
END OF t_struct.
DATA: dref1 TYPE REF TO data,
dref2 TYPE REF TO data.
FIELD-SYMBOLS: <fs1> TYPE t_struct,
<fs2> TYPE char15.
CREATE DATA dref1 TYPE t_struct.
ASSIGN dref1->* TO <fs1>.
<fs1>-col1 = 'Enjoy ABAP'.
<fs1>-col2 = 'ABAP PROGRAMMING'.
dref2 = dref1.
ASSIGN dref2->* TO <fs2> CASTING.
WRITE / <fs2>.
GET REFERENCE OF <fs1>-col2 INTO dref2.
ASSIGN dref2->* TO <fs2>.
WRITE / <fs2>.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
531 | REPORT z11_07. | sapjoy | 2012.07.31 | 852 |
530 | REPORT z11_06. | sapjoy | 2012.07.31 | 898 |
529 | REPORT z11_05. | sapjoy | 2012.07.31 | 806 |
528 | REPORT Z11_04 . | sapjoy | 2012.07.31 | 793 |
527 | REPORT Z11_03. | sapjoy | 2012.07.31 | 799 |
526 | REPORT z11_02. | sapjoy | 2012.07.31 | 892 |
525 | REPORT Z11_01. | sapjoy | 2012.07.31 | 881 |
» | REPORT z10_13. | sapjoy | 2012.07.31 | 862 |
523 | REPORT z10_12. | sapjoy | 2012.07.31 | 889 |
522 | REPORT z10_11. | sapjoy | 2012.07.31 | 821 |
521 | REPORT z10_10. [1] | sapjoy | 2012.07.31 | 883 |
520 | REPORT z10_09. | sapjoy | 2012.07.31 | 974 |
519 | REPORT z10_08. | sapjoy | 2012.07.31 | 826 |
518 | REPORT z10_07. | sapjoy | 2012.07.31 | 1044 |
517 | REPORT z10_06. | sapjoy | 2012.07.31 | 819 |
516 | REPORT z10_05. | sapjoy | 2012.07.31 | 854 |
515 | REPORT z10_04. | sapjoy | 2012.07.31 | 893 |
514 | REPORT z10_03. | sapjoy | 2012.07.31 | 841 |
513 | REPORT z10_02. | sapjoy | 2012.07.31 | 782 |
512 | REPORT z10_01. | sapjoy | 2012.07.31 | 839 |