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

getting the data from file

Former Member
0 Likes
1,171

Hi,

I am getting the data from a file which stores on a network drive. For this can I use GUI_DOWNLOAD or else only I need to use OPEN DATASET FILE.

Thanks,

Ravi

11 REPLIES 11
Read only

Former Member
0 Likes
1,133

hi

use GUI_UPLOAD for files on your system

use OPEN DATASET for files present in your application server.

Regards

Winnie

Read only

Former Member
0 Likes
1,133

>

> Hi,

> I am getting the data from a file which stores on a network drive. For this can I use GUI_DOWNLOAD or else only I need to use OPEN DATASET FILE.

>

> Thanks,

> Ravi

For getting data from AL11 (application server ) we use open dataset file.

for getting data from presentation server (Ur network is also the same ) we use the GUI_UPLOAD FM

Regards

SAS

Read only

bpawanchand
Active Contributor
0 Likes
1,133

It depends on from where you are reading the data if you want to download the data from the application server then first read the data from the application server into a internal table of the ABAP program then you have to use the FM GUI_DOWNLOAD.

Read only

Former Member
0 Likes
1,133

Hi

use GUI_DOWNLOAD

Ranga

Read only

Former Member
0 Likes
1,133

Hi

> You cannot use OPEN DATASET if you want to upload from Presentation Server(Network Drive)

> Use GUI_UPLOAD for your requirement

regards

Read only

Former Member
0 Likes
1,133

HI,

You can use GUI_DOWNLOAD as long as you are not running the program

in background mode. However the path has to be modified suitably.

Also make sure you have proper authorisation for the network drive.

Regards,

Rajat

Read only

Former Member
0 Likes
1,133

Hi Ravi,

I think you need to use this.

DATA: server type string VALUE '

  • Read the data.

Server Path'. CLEAR itab. REFRESH itab. OPEN DATASET dsn FOR INPUT IN BINARY MODE. DO. READ DATASET dsn INTO str. IF sy-subrc = 0. APPEND itab. ELSE. EXIT. ENDIF. ENDDO. CLOSE DATASET dsn.

If you mean application server by network drive.

Thanks,

Sai

Edited by: Sai Krishna Kowluri on Dec 3, 2008 11:13 AM

Read only

Former Member
0 Likes
1,133

Hi,

We use GUI_DOWNLOAD to get from AS

use OPEN DATASET to get from PS.


open dataset file_name for input in text mode encoding default.

Thanks & Regards,

Krishna...

Read only

0 Likes
1,133

Thanks for all your replies. Let me explain, there are 2 programs in one program they used open data set and in the other program they used GUI_UPLOAD. And we are accessing the file from the same location, that is from network drive. The one which used Open Datset works fine, but the one which uses

GUI_UPLOAD is not workingg.

Thanks,

Ravi

Read only

0 Likes
1,133

GUI_UPLOAD Fm is used to uplaod the file from the Presentation server and could let us know is there any dependencies between these two programs,

I ean once the GUI_UPLAOD fm execution compltes then the internal table with the data is transferede to the application server.

Read only

former_member206396
Active Participant
0 Likes
1,133

No need to use OPEN DATASET.....

Are u placing the file in SERVER? if so, u have to use open dataset.