12-03-2008 10:07 AM
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
12-03-2008 10:09 AM
hi
use GUI_UPLOAD for files on your system
use OPEN DATASET for files present in your application server.
Regards
Winnie
12-03-2008 10:09 AM
>
> 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
12-03-2008 10:10 AM
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.
12-03-2008 10:10 AM
12-03-2008 10:11 AM
Hi
> You cannot use OPEN DATASET if you want to upload from Presentation Server(Network Drive)
> Use GUI_UPLOAD for your requirement
regards
12-03-2008 10:11 AM
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
12-03-2008 10:12 AM
Hi Ravi,
I think you need to use this.
DATA:
server type string VALUE '
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
12-03-2008 10:13 AM
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...
12-03-2008 10:22 AM
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
12-03-2008 10:26 AM
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.
12-03-2008 10:14 AM
No need to use OPEN DATASET.....
Are u placing the file in SERVER? if so, u have to use open dataset.