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

OPEN DATASET

Former Member
0 Likes
915

What is the difference between downloading data using GUI_Download and using Open dataset ?

What exactly needs to be done to download data from sap tables and store it on an application server ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
860

Gui_download is used for download data to presentation server.

while open dataset is using for application server downloading.

Amit.

7 REPLIES 7
Read only

Former Member
0 Likes
861

Gui_download is used for download data to presentation server.

while open dataset is using for application server downloading.

Amit.

Read only

bpawanchand
Active Contributor
0 Likes
860

HI

GUI_DOWNLOAD is a FM which downloads the data to the presentation server.But when it comes to OPEN DATA SET you are trying to open a file which is stored on the application server.

to store the data od SAP tables of the application server all you have to do is read the data into a internal table and use OPEN DATA SET statement to open a file on application server and use TRANSFER statement to store the contents of the internal table data to teh file created on application server and CLOSE DATASET

Regards

Pavan

Edited by: Pavan Bhamidipati on Jul 7, 2008 3:22 PM

Read only

Former Member
0 Likes
860

Open dataset is to get the data from Application Server to SAP. and GUI_DOWNLOAD is to download the data from SAP to Presentation server.

Read only

Former Member
0 Likes
860

Hi Shreya,

GUI_DOWNLOAD - this is used to download data from a table into a file in the presentation server.

OPEN DATASET - This is used to download or upload from a table into a file in the application server.

Hope this helps you.

Regards,

Chandra Sekhar

Read only

Former Member
0 Likes
860

hi....

gui_upload is used to upload the file from local pc whereas open dataset is used to upload or download the file on the application server.

thats the main difference.

Read only

Former Member
0 Likes
860

Hello,

data: itab type table of mara with header line.

select * from mara into itab where matnr in s_matnr.

OPEN DATASET p_ofile FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

loop at itab.

transfer itab.

endloop.

close dataset.

Here we are sending data to application server with the file name p_ofile. U can see the file in AL11.

Regards,

Subbu