Diff ws_upload and gui_upload
The difference is that the DataProvider is used for the upload instead of GMUX.
waht is dataprovider and GMUX?
regards
Hi,
WS_* Function modules are replaced by GUI_* FMs from 4.7 SAP version.
GUI_* modules have additional parameters when compared with WS_* FMs.
Both FM are used for uploading data .
But ws_upload is obsolete now .
WS_UPLOAD and WS_DOWNLOAD, the function modules used until now are not part of the standard set of ABAP commands. They are used to display the file interface on the presentation server. WS_UPLOAD and WS_DOWNLOAD are not compatible with USs and have been replaced by GUI_UPLOAD and GUI_DOWNLOAD.
The new function modules, GUI_UPLOAD and GUI_DOWNLOAD, have an interface that also allows you to write Unicode format to the local hard drive. For a description of these interfaces, refer to the documentation for each function module, available under SAP Easy Access " Development " Function Builder " Goto " Documentation.
WS_UPLOAD, GUI_UPLOAD FMs are used in BDCs.
WS_UPLOAD loads files from the Presentation Server to Internal ABAP Tables.
This is used upto SAP 4.6 version.
GUI_UPLOAD is used to loads a file from the PC to the server. The data can be
transferred in binary or text format. Numbers and data fields can be
interpreted according to the user settings.
You can check this for some info
http://help.sap.com/saphelp_erp2005/helpdata/en/79/c554a3b3dc11d5993800508b6b8b11/frameset.htm
http://www.sapdevelopment.co.uk/file/file_otherpc.htm
Regards,
Priyanka.
Similar Messages
-
What is the difference between ws_upload and gui_upload
what is the difference between ws_upload and gui_upload
what is the difference between ws_download and gui_down load
pls tell brieflyHi Kuamr,
UPLOAD and DOWNLOAD, the function modules used until now are not part of the standard set of ABAP commands. They are used to display the file interface on the presentation server. UPLOAD and DOWNLOAD are not compatible with USs and have been replaced by GUI_UPLOAD and GUI_DOWNLOAD.
The new function modules, GUI_UPLOAD and GUI_DOWNLOAD, have an interface that also allows you to write Unicode format to the local hard drive. For a description of these interfaces, refer to the documentation for each function module, available under SAP Easy Access " Development " Function Builder " Goto " Documentation.
Instead of using the function modules, you can use the static methods GUI_UPLOAD and GUI_DOWNLOAD of the global class CL_GUI_FRONTEND_SERVICES.
Hope this resolves your query.
Reward all the helpful answers.
Regards -
What is the main difference between ws_upload and gui_upload?
Hi All,
What is the main difference between ws_upload and gui_upload?
In what contexts should we use these two function modules??
Thanks,
Creasysearch the forum before posting.
You can find lot of posts related. -
Difference between ws_upload and gui_upload
hi
could anybody tell me
what is the difference between ws_upload and gui_upload
dont say ws_upload is 4.6c version and
gui_upload is 4.7 version.
there might be some difference na thats why they migrate it.
could you plz tell me the differnce
it ll very helpful to me
thanx
kals.Hi Kalyan,
SAP 4.72 onwards system is unicode compliant.
THE WS_DOWNLOAD and WS_UPLOAD function modules are not compatible for unicode systems.
So it is replaced with this new FM GUI_UPLOAD.
There is a SAP note on this issue Note 992677 - FMs WS_DOWNLOAD & WS_UPLOAD incompatible for unicode systems
regards,nishant
please reward points if this helps. -
Ws_upload and GUI_upload ....
Hi Everyone,
I got a query, I have tried using ws_upload and gui_upload both in the program...... the codes are below, If I try using .xls it gives only garbage in the internal table. .txt format is working fine. Can anyone help by haveing a look at the code piece where am I going wrong. i trid these piece of codes in both ECC6.0 and 4.6.
**************CODES BELOW*******************
FORM UPLOAD_PS_PRICE .
DATA:L_CURR LIKE EKPO-NETPR.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = p_local
filetype = 'DAT'
has_field_separator = 'X'
TABLES
data_tab = t_ps_price
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.
ENDIF.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = P_LOCAL
FILETYPE = 'DAT'
TABLES
DATA_TAB = T_PS_PRICE
EXCEPTIONS
CONVERSION_ERROR = 1
FILE_OPEN_ERROR = 2
FILE_READ_ERROR = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
IF SY-SUBRC <> 0.
MESSAGE S002 WITH TEXT-007.
ENDIF.hi
good
did you debug the code and try to find out where is the exact error is, because it is quite difficult to give you the correct reply with this bit of code.
thanks
mrutyun^ -
Differnece between ws_upload and gui_upload
Hi
can u plz tell me what is differnece between ws_upload and gui_upload.Hi,
below information is helpful to u.
WS_UPLOAD and WS_DOWNLOAD, the function modules used until now are not part of the standard set of ABAP commands. They are used to display the file interface on the presentation server. WS_UPLOAD and WS_DOWNLOAD are not compatible with , and have been replaced by GUI_UPLOAD and GUI_DOWNLOAD.
The new function modules, GUI_UPLOAD and GUI_DOWNLOAD, have an interface that also allows you to write Unicode format to the local hard drive.
Instead of using the function modules, you can use the static methods GUI_UPLOAD and GUI_DOWNLOAD of the global class CL_GUI_FRONTEND_SERVICES.
for each function module, available under SAP Easy Access " Development " Function Builder " Goto " Documentation. -
DIFFERANCES BETWEEN WS_UPLOAD AND GUI_UPLOAD??
HELLO ALL,
CAN SOMEONE TELL ME THE DIFFERANCES BETWEEN WS_UPLOAD AND GUI_UPLOAD????
REGARDS,
SEENUHi Seenu,
WS_UPLOAD and WS_DOWNLOAD, the function modules used until now are not part of the standard set of ABAP commands. They are used to display the file interface on the presentation server. WS_UPLOAD and WS_DOWNLOAD are not compatible with USs and have been replaced by GUI_UPLOAD and GUI_DOWNLOAD.
The new function modules, GUI_UPLOAD and GUI_DOWNLOAD, have an interface that also allows you to write Unicode format to the local hard drive. For a description of these interfaces, refer to the documentation for each function module, available under SAP Easy Access " Development " Function Builder " Goto " Documentation.
Instead of using the function modules, you can use the static methods GUI_UPLOAD and GUI_DOWNLOAD of the global class CL_GUI_FRONTEND_SERVICES.
Regards
Naresh -
What is difference between WS_UPLOAD and GUI_UPLOAD
Dear gurus,
Because my office implement SAP for a long time ago so some programs contain WS_UPLOAD function and I find that is obsolete so I want to know what is different or benefit if I modify program to use GUI_UPLOAD function instead of WS_UPLOAD function
If you have related document please give me the link.
Thank you,Hi,
WS_Download Function module is used in 4.6 c version and it is obsolete.From 6 version u need to use
GUI_Download.
WS_DOWNLOAD is obsolete function module for storing SAP data in a file in the file system of the presentation server.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = ' '
CODEPAGE = ' '
FILENAME = ' '
FILETYPE = 'ASC'
MODE = ' '
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = lt_datatab
FIELDNAMES =
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
NO_AUTHORITY = 10
OTHERS = 11
Now you ave to use method or function module GUI_DOWNLOAD
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
EXPORTING
BIN_FILESIZE =
FILENAME = lv_filename
FILETYPE = 'ASC'
APPEND = SPACE
WRITE_FIELD_SEPARATOR = SPACE
HEADER = '00u2032
TRUNC_TRAILING_BLANKS = SPACE
WRITE_LF = 'X'
COL_SELECT = SPACE
COL_SELECT_MASK = SPACE
DAT_MODE = SPACE
CONFIRM_OVERWRITE = SPACE
NO_AUTH_CHECK = SPACE
CODEPAGE = SPACE
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = SPACE
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = SPACE
WK1_N_SIZE = SPACE
WK1_T_FORMAT = SPACE
WK1_T_SIZE = SPACE
IMPORTING
FILELENGTH =
CHANGING
DATA_TAB = lt_datatab
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
NOT_SUPPORTED_BY_GUI = 22
ERROR_NO_GUI = 23
others = 24
Thanks,
Anitha -
WS_UPLOAD and GUI_UPLOAD issue
Hi
I am in an upgrade project, 4.6c to ECC6.0 .In ws_upload,there is a parameter called CANCEL ,,which is not there in GUI_UPLOAD ..whats it importance ,what parameter in GUI_UPLOAD would support this ??
Many thanks .Hemanth,
I do not see a parameter called CANCEL for WS_UPLOAD either in the 4.6c or the ECC 6.0 system. I just see the following:
FUNCTION WS_UPLOAD.
*"*"Globale Schnittstelle:
*" IMPORTING
*" VALUE(CODEPAGE) DEFAULT SPACE
*" VALUE(FILENAME) LIKE RLGRAP-FILENAME DEFAULT SPACE
*" VALUE(FILETYPE) LIKE RLGRAP-FILETYPE DEFAULT 'ASC'
*" VALUE(HEADLEN) DEFAULT SPACE
*" VALUE(LINE_EXIT) DEFAULT SPACE
*" VALUE(TRUNCLEN) DEFAULT SPACE
*" VALUE(USER_FORM) DEFAULT SPACE
*" VALUE(USER_PROG) DEFAULT SPACE
*" VALUE(DAT_D_FORMAT) TYPE DATEFORMAT DEFAULT SPACE
*" EXPORTING
*" VALUE(FILELENGTH)
*" TABLES
*" DATA_TAB
*" EXCEPTIONS
*" CONVERSION_ERROR
*" FILE_OPEN_ERROR
*" FILE_READ_ERROR
*" INVALID_TYPE
*" NO_BATCH
*" UNKNOWN_ERROR
*" INVALID_TABLE_WIDTH
*" GUI_REFUSE_FILETRANSFER
*" CUSTOMER_ERROR
Can you please confirm? -
WS_UPLOAD,WS_DOWNLOAD and GUI_UPLOAD,GUI_DOWNLOAD.
Hi,
Any one Explain difference between WS_UPLOAD,WS_DOWNLOAD and GUI_UPLOAD,GUI_DOWNLOAD.
Regards,
Mayahi maya,
ws_upload and gui_upload, will do the same funtionality.
ws_download and gui_download will do the same functionality.
but ws* are obsolete.
Regards....
Arun.
Reward points if useful. -
Diff. bet. ws_upload and Gui_uplod
Hi Friends,
1) wht is the difference between ws_upload and gui_upload
2) how to handle scroll bar in bdc table control
Thanks in advance,
SrinadhHi Dasari,
Both FM are used for uploading data .
But ws_upload is obsolete now .
WS_UPLOAD and WS_DOWNLOAD, the function modules used until now are not part of the standard set of ABAP commands. They are used to display the file interface on the presentation server. WS_UPLOAD and WS_DOWNLOAD are not compatible with USs and have been replaced by GUI_UPLOAD and GUI_DOWNLOAD.
The new function modules, GUI_UPLOAD and GUI_DOWNLOAD, have an interface that also allows you to write Unicode format to the local hard drive. For a description of these interfaces, refer to the documentation for each function module, available under SAP Easy Access " Development " Function Builder " Goto " Documentation.
Reward points if helpful.
Regards,
Hemant -
HI all pls give me diff btwn upload ws_upload and GUI Upload
HI All,
pls give me difference between
upload
ws_upload and
GUI Upload
Thanks & regards .
Bharat KumarHi,
WS_* Function modules are replaced by GUI_* FMs from 4.7 SAP version.
GUI_* modules have additional parameters when compared with WS_* FMs.
Both FM are used for uploading data .
But ws_upload is obsolete now .
WS_UPLOAD and WS_DOWNLOAD, the function modules used until now are not part of the standard set of ABAP commands. They are used to display the file interface on the presentation server. WS_UPLOAD and WS_DOWNLOAD are not compatible with USs and have been replaced by GUI_UPLOAD and GUI_DOWNLOAD.
The new function modules, GUI_UPLOAD and GUI_DOWNLOAD, have an interface that also allows you to write Unicode format to the local hard drive. For a description of these interfaces, refer to the documentation for each function module, available under SAP Easy Access " Development " Function Builder " Goto " Documentation.
WS_UPLOAD, GUI_UPLOAD FMs are used in BDCs.
WS_UPLOAD loads files from the Presentation Server to Internal ABAP Tables.
This is used upto SAP 4.6 version.
GUI_UPLOAD is used to loads a file from the PC to the server. The data can be
transferred in binary or text format. Numbers and data fields can be
interpreted according to the user settings.
You can check this for some info
http://help.sap.com/saphelp_erp2005/helpdata/en/79/c554a3b3dc11d5993800508b6b8b11/frameset.htm
http://www.sapdevelopment.co.uk/file/file_otherpc.htm
Regards,
Priyanka. -
difference between ws_upload and gui_upload
hi sunil,
WS_UPLOAD and WS_DOWNLOAD, the function modules used until now are not part of the standard set of ABAP commands. They are used to display the file interface on the presentation server. WS_UPLOAD and WS_DOWNLOAD are not compatible with USs and have been replaced by GUI_UPLOAD and GUI_DOWNLOAD.
The new function modules, GUI_UPLOAD and GUI_DOWNLOAD, have an interface that also allows you to write Unicode format to the local hard drive. For a description of these interfaces, refer to the documentation for each function module, available under SAP Easy Access " Development " Function Builder " Goto " Documentation.
Instead of using the function modules, you can use the static methods GUI_UPLOAD and GUI_DOWNLOAD of the global class CL_GUI_FRONTEND_SERVICES.
~~Guduri -
I am trying to insert rows for alert_id 22 with diff abc_id and xyz_id
I am trying to insert rows for alert_id 22 with diff abc_id and xyz_id
these inserts will store in two tables that I have to join in the cursor.
I have written cursor without passing cursor parameters. but here i need to pass acb_id and xyz_id along with alert_id.
then if these are saticified with alert_id 22 then I want to stop the loop run, else i need to continue the loop. bcause the abc_id and xyz_id are diff for alert_id 22
This is the issue I am facing!
Please let me know if you have any idea. Let me know how to use cursor parameters here and in loop.
Sample proc like this::
Declare
main_cursor
another_cur
alert_cur
begin
need to check first abc_id,xyz_id is already exist with alert_id 22
if this set of records already exists then
exit from the loop
else
continue with
loop
here coming the insert statements with different condition getting from first two cursors.(this part is ok for me)
end loop
end if
Please write the logic if any idea on this.
-LRKI want to stop if already alert_id is exist!
-
How to get gui_download and gui_upload with popup filename?
how to get gui_download and gui_upload with popup filename?
Here is a short example.
report zrich_0003 .
data: ifiletab type filetable.
data: xfiletab like line of ifiletab.
data: xstring type string.
data: rc type i.
data: itab type table of string.
data: xtab type string.
start-of-selection.
call method cl_gui_frontend_services=>file_open_dialog
changing
file_table = ifiletab
rc = rc.
read table ifiletab into xfiletab index 1.
xstring = xfiletab-filename.
check not xstring is initial.
call method cl_gui_frontend_services=>gui_upload
exporting
filename = xstring
changing
data_tab = itab.
loop at itab into xtab.
write:/ xtab.
endloop.
Regards,
Rich Heilman
Maybe you are looking for
-
Weblogic 10.0.1 deploying problem
Hi, I'm starting to use BEA workshop and I'm experiencing some problems to deploy a Dynamic Web Project. I've created a new Dynamic Web Project and without making any changes, generated the war file. Everything seemed to be ok during the deploy since
-
Can I use air drop on my iPad"
How can I use airdrop on my iPad?
-
How to build java classpath on Mac
Thank you.
-
ALV: check before delete a row
Hi, I would like to delete a row in ALV. Before the deletion I would like to send popup with the options "OK" and "cancel". If the user presses on cancel, it should not to be deleted. Can I catch it in ON_DATA_CHECK? Popup is not the problem. I woul
-
BADI not accepting filter type
Hi All, I am trying to implement a YBADI in PLM Module using BADI definition DPR_CONTROLPLAN . The filter type are only allowed if the BADI is created as a local object if it is created as a Transportable object (package) then it does not allows the