Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- SAP
- gimp
- ABAP
- 가계부
- function
- List box
- Enhancement
- alv 정형화
- 방화벽
- sapa
- ALV
- Smart Forms
- KOSA
- FI 용어정리
- EXIT
- selection screen
- EUC-kr
- fi
- ole
- 오라클 함수
- UTF-8
- 유닉스
- Java
- badi
- Standard Function
- 머니플랜
- 엑소버드
- 스마트폼
- 이명박
- 동적 쿼리
Archives
- Today
- Total
Drunken Lion
파일 upload - upload 파일 종류 file filter 본문
DATA: lv_file TYPE string,
lv_filter type string,
lt_file_table TYPE filetable WITH HEADER LINE ,
lv_rc TYPE i.
lv_file = p_file.
lv_filter =
'Excel Files (*.xls)|*.xls|Excel 2007 Files (*.xlsx)|*.xlsx|All Files (*.*)|*.*|'.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = 'Window Title'
default_filename = lv_file
file_filter = lv_filter
CHANGING
file_table = lt_file_table[]
rc = lv_rc
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
not_supported_by_gui = 4
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
'SAP > ABAP' 카테고리의 다른 글
엑셀 / 텍스트 파일 업로드 (0) | 2009.09.28 |
---|---|
[OLE] Excel 양식 sample (0) | 2009.09.22 |
LSMW Manual (0) | 2009.09.15 |
Selection Screen 에 Ucomm 추가 (0) | 2009.09.14 |
팝업 디버깅 하기 (0) | 2009.07.17 |