on 11-28-2005 10:26 AM
hi,
what is the major difference using
call method cl_gui_frontend_services->gui_upload.
instead of
call function gui_upload
Hello and welcome,
at least in Rel. 4.6C nothing - as you can see from source code:
method GUI_UPLOAD.
...
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = FILENAME
FILETYPE = FILETYPE
HAS_FIELD_SEPARATOR = HAS_FIELD_SEPARATOR
HEADER_LENGTH = HEADER_LENGTH
IMPORTING
FILELENGTH = FILELENGTH
HEADER = HEADER
TABLES
DATA_TAB = DATA_TAB
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
.
IF SY-SUBRC <> 0.
CASE SY-SUBRC.
....
Maybe in higher releases there's a difference.
Regards Wolfgang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The difference is one is object oriented and other one is not. Other than that there is no difference. Whatever advantages you have with going towards an object oriented coding, will be available with the method.
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venkatesh,
SAP is now moving towards Netweaver.
So after some versions these function modules will become Obsolete.
As GUI_UPLOAD replaced UPLOAD in 4.7 version, CL_GUI_UPLOAD_SERVICES->GUI_UPLOAD replaces GUI_UPLOAD in future versions.
Thanks,
Sreekanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to SDN.
if you look at the code inside
cl_gui_frontend_services->gui_upload they use gui_upload function.
there is no difference.
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.