저장소에 등록하기 위하여 tcode : smw0를 실행
해당패키지에 파일을 등록
DATA : doc_table LIKE w3mime OCCURS 0 WITH HEADER LINE.
DATA : doc_size TYPE i.
DATA : doc_type(80) VALUE soi_doctype_excel_sheet.
DATA : doc_format(80) TYPE c.
DATA : doc_size TYPE i.
DATA : doc_type(80) VALUE soi_doctype_excel_sheet.
DATA : doc_format(80) TYPE c.
* 저장소에서 엑셀을 가져온다.
CALL FUNCTION 'SAP_OI_LOAD_MIME_DATA'
EXPORTING
object_id = 'TEST_DATA.XLS'
IMPORTING
data_size = doc_size
document_format = doc_format
document_type = doc_type
TABLES
data_table = doc_table
EXCEPTIONS
object_not_jount = 1
internal_error = 2
OTHERS = 3.
EXPORTING
object_id = 'TEST_DATA.XLS'
IMPORTING
data_size = doc_size
document_format = doc_format
document_type = doc_type
TABLES
data_table = doc_table
EXCEPTIONS
object_not_jount = 1
internal_error = 2
OTHERS = 3.
* 엑셀 다운로드
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = doc_size
filename = 'C:\TEMP\TEST_DATA.XLS'
filetype = 'BIN'
no_auth_check = 'X'
TABLES
data_tab = doc_table.
댓글 없음:
댓글 쓰기