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

Read text file in a shared folder in another PC

Former Member
0 Likes
1,517

Hi All,

Is it posible to use OPEN DATASET, READ DATASET, CLOSE DATASET to read a text file in a shared folder in a another PC (Not the Application server)

Pradeep

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,037

Hi,

It is not possible.

these are used to process the file in application server only.

if you want to process the file in your desktop or your shared folder you have to use GUI_DOWNLOAD FM.

Regards,

Boobalan S

Hi All,

Is it posible to use OPEN DATASET, READ DATASET, CLOSE DATASET to read a text file in a shared folder in a another PC (Not the Application server)

Pradeep

4 REPLIES 4
Read only

Former Member
0 Likes
1,038

Hi,

It is not possible.

these are used to process the file in application server only.

if you want to process the file in your desktop or your shared folder you have to use GUI_DOWNLOAD FM.

Regards,

Boobalan S

Read only

Former Member
1,037

Hi pradeep,

1. Normally any PC is restricted by username and password,

and it may happen that folders / files are not shared on that machine.

2. So there are two approaches, if we want to use

OPEN DATASET commands to read file from other machine.

a) Basis team will MAP that computer and folder

on the application server

at the OS Level (Unix/AIX/Windows etc)

and that logical drive+path we can in our abap syntax

just like we use other normal path on application server.

This may also require the basis team to know

the username and password of other computer for mapping purpose.

b) Another approach is we use FTP_OPEN function modules

and other related FTP_* Fms.

But the pre-requisite for this is that the FTP server

should be running on the other computer.

Also we should know the ftp username and password for it.

regards,

amit m.

Read only

Former Member
0 Likes
1,037

Hi,

If you are accessing file from shared folder on PC, you are reading file from presentation layer, hence you need to use FM GUI_UPLOAD.

Give path you use to access using run command.

See that you have Read access to folder and file you are reading.

Regards,

Mohaiyuddin

Read only

0 Likes
1,037

Pls use GUI_DOWNLOAD fm

Tks

Venkat

Ananth Technologies

Edited by: Venkata Reddy Avula on Aug 12, 2008 12:00 PM