Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BDC

Former Member
0 Likes
433

Hi All,

What is the difference between ws_upload and gui_upload ?

Plz anybody ans This Question..................

Thanks and Regards.

Pradip Pawar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
388

This gives brief idea,

Actually we these functions through CALL FUNCTION in ABAP Editor(Tcode is se38) to get local data (i.e. the data which is FLAT FILE on ur system) UPLOAD, WS_UPLOAD, GUI_UPLOAD, are used in BDC(Batch Data Communication). This BDC to transfer the Data from NON-SAP to SAP R/3.

UPLOAD, WS_UPLOAD, GUI_UPLOAD, are also called as Function Modules.

1) UPLOAD: is used to upload a Flat File to the presentation server.

2) WS_UPLOAD: is used to Load Files from the Presentation Server to Internal ABAP Tables.

3) UPLOAD, WS_UPLOAD, These are used upto SAP R/3 4.6 version.

In this after calling a Call Function there is no need of declaring FLAT FLIE NAME and PATH.

4) GUI_UPLOAD is used to replace WS_UPLOAD. This is used to upload a file from Presentation

Server to Application Server.

5) GUI_UPLOAD, This is used from SAP R/3 4.7 version.

In this after calling a Call Function there is need of declaring FLAT FLIE NAME and PATH.

3 REPLIES 3
Read only

Former Member
0 Likes
388

FM ws_download and ws_upload are obsolete. Instead use gui_upload or gui_download.

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

code

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.[/code]

Regards

Read only

Former Member
0 Likes
388

Hai,

This may help u.

UPLOAD, WS_UPLOAD, GUI_UPLOAD, are used in BDC concepts. ie., Batch Data Communication.

Batch Data Conversion is a concept where user can transfer the Data from non SAP to SAP R/3. So , in these various Function Modules are used.

UPLOAD—- upload a file to the presentation server (PC)

WS_UPLOAD—— Load Files from the Presentation Server to Internal ABAP Tables.

WS means Work Station.

This is used upto SAP 4.6 version.

GUI_UPLOAD———- Replaces WS_UPLOAD. Upoad file from presentation server to the app server. From 4.7 SAP version it is replaced.

go through beloe links it will be helpful.

http://www.saptechies.com/gui_-ws_-function-in-background-csv-upload/

http://www.geekinterview.com/question_details/1522.

with regards,

B.sowjanya,

please reward points if it is helpful.

Read only

Former Member
0 Likes
389

This gives brief idea,

Actually we these functions through CALL FUNCTION in ABAP Editor(Tcode is se38) to get local data (i.e. the data which is FLAT FILE on ur system) UPLOAD, WS_UPLOAD, GUI_UPLOAD, are used in BDC(Batch Data Communication). This BDC to transfer the Data from NON-SAP to SAP R/3.

UPLOAD, WS_UPLOAD, GUI_UPLOAD, are also called as Function Modules.

1) UPLOAD: is used to upload a Flat File to the presentation server.

2) WS_UPLOAD: is used to Load Files from the Presentation Server to Internal ABAP Tables.

3) UPLOAD, WS_UPLOAD, These are used upto SAP R/3 4.6 version.

In this after calling a Call Function there is no need of declaring FLAT FLIE NAME and PATH.

4) GUI_UPLOAD is used to replace WS_UPLOAD. This is used to upload a file from Presentation

Server to Application Server.

5) GUI_UPLOAD, This is used from SAP R/3 4.7 version.

In this after calling a Call Function there is need of declaring FLAT FLIE NAME and PATH.