PARAMETERS:
TAB_NAME LIKE SY-TNAME, "Table
TAB_COMP LIKE X031L-FIELDNAME, "Field name
number TYPE I DEFAULT 10. "Number of lines
DATA: BEGIN OF BUFFER,
LIGNMENT TYPE F, "Alignment
C(8000) TYPE C, "Table content
END OF BUFFER.
FIELD-SYMBOLS: <WA> TYPE any,
<COMP> TYPE ANY.
* Set field symbol with appropriate type
* to buffer area
ASSIGN BUFFER TO <WA> CASTING TYPE (tab_name).
SELECT * FROM (Tab_name) IntO <WA>
Up TO number ROWS.
ASSIGN COMPONENT TAB_COMP OF STRUCTURE <WA> TO <COMP>.
WRITE: / TAB_COMP, <COMP>.
ENDSELECT.
여기서..
DATA: BEGIN OF BUFFER,
LIGNMENT TYPE F, "Alignment
C(8000) TYPE C, "Table content
END OF BUFFER.
ASSIGN BUFFER TO <WA> CASTING TYPE (tab_name).
이렇게 assign 해주는 이유가 메모리 영역에 공간 확보를 위한 이유인가해서요??
assing 된다음 디버깅을 돌려봐도... buffer 관련이 된 것이 아무것도 안보이내용..
@@ 힌트좀 부탁 드림니다. 선배님들;;