Application Development 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: 

getting the data from file

Former Member
0 Kudos

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

Former Member
0 Kudos

hi

use GUI_UPLOAD for files on your system

use OPEN DATASET for files present in your application server.

Regards

Winnie

former_member184119
Active Contributor
0 Kudos

>

> 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

bpawanchand
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi

use GUI_DOWNLOAD

Ranga

Former Member
0 Kudos

Hi

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

> Use GUI_UPLOAD for your requirement

regards

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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...

0 Kudos

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

0 Kudos

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.

former_member206396
Active Participant
0 Kudos

No need to use OPEN DATASET.....

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