2007 Nov 27 4:33 PM
Hi Gurus,
I was performing unicode check on a program using t-code UCCHECK.It gives me error message saying FM WS_DOWNLOAD is obsolete.What does this mean
2007 Nov 27 4:38 PM
Obsoete means SAP is trying to remove the FM in upcoming versions. So, please use FM GUI_UPLOAD or method CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
EXPORTING
FILENAME = L_FILE
HAS_FIELD_SEPARATOR = 'X'
CHANGING
DATA_TAB = IT_FILE
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
OTHERS = 18.
IF SY-SUBRC <> 0.
MESSAGE E398(00) WITH 'Error while opening a file'.
ENDIF.Regards,
Naimesh Patel
Obsoete means SAP is trying to remove the FM in upcoming versions. So, please use FM GUI_UPLOAD or method CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
EXPORTING
FILENAME = L_FILE
HAS_FIELD_SEPARATOR = 'X'
CHANGING
DATA_TAB = IT_FILE
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
OTHERS = 18.
IF SY-SUBRC <> 0.
MESSAGE E398(00) WITH 'Error while opening a file'.
ENDIF.Regards,
Naimesh Patel
2007 Nov 27 4:34 PM
Hi Divya,
FM ws_download and ws_upload are obsolete.Instead use gui_upload or gui_download.
2007 Nov 27 4:38 PM
Obsoete means SAP is trying to remove the FM in upcoming versions. So, please use FM GUI_UPLOAD or method CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
EXPORTING
FILENAME = L_FILE
HAS_FIELD_SEPARATOR = 'X'
CHANGING
DATA_TAB = IT_FILE
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
OTHERS = 18.
IF SY-SUBRC <> 0.
MESSAGE E398(00) WITH 'Error while opening a file'.
ENDIF.Regards,
Naimesh Patel
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |