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

download to diff pc

Former Member
0 Likes
1,094

Hi.

am downloading some data to C drive & i want to save the data file in different PC. is this possible to do , if so how to do this .

i tried to give file name like this '
192.168.1.111\c:\pra.txt' but its not working.

please help me.

Regards

prajwal.

9 REPLIES 9
Read only

Former Member
0 Likes
1,060

Hi Prajwal,

I think you cant download a file onto to other PC until unless it is FTP enabled.

Thanks,

Vinay

Read only

Former Member
0 Likes
1,060

do one thing your list output will be having standard menu bar.

from menu go to list-->print.

just click on that you will be gettting a number in the status bar, bottom of the sap window.

note down the number. i.e. spool request number.

Now go to the TCode: SP01.

and provide your spool request number . press F8 and getting the object list.

from that select your object checkbox and click on display button.

Now run the standard program RSTXPDFT4 by providing the spool request number

execute F8 then it opens up the File path window there you can easily select your desired drive and place to sace the file ..

It may solve you problem.

Award points if proper solution you will recieve

Read only

0 Likes
1,060

Hi kasturi

is there any other way so that i can write a code.

Read only

0 Likes
1,060

I prajwal,

why don't you download it on an network-storage where all

relevant member have access?

Regards, Dieter

Read only

0 Likes
1,060

Hi dieter.

i cant do that. thanks .

Read only

0 Likes
1,060

Hi friends.

is it possible do using RFC or IDOC.

Read only

0 Likes
1,060

Hi,

if you don't have a network, you can send it by email,

Look via SE38 for BCS_EXAMPLE_*. There a good and simple example

how to do it.

Regards, Dieter

Read only

0 Likes
1,060

Hi dieter .

thanks for u r ANS , i want to save the data in a folder in (like bin folder) with out user interaction.

Read only

Former Member
0 Likes
1,060

Hi Prajwal,

it depends on how the solution should look like. Basically you can store the data you download by using a GUI_DOWNLOAD on any drive that is accessible from your PC. Dependent on the configuration the filename has to look slightly different.

1. You have mounted the drive to your PC e.g. as drive z: then the path has to look like z:\filename.extension

2. There is a share that can be accessed (e.g. the administrative share of Windows if enabled) then you should use the UNC-name to store the stuff which would look like
pcname\c$\filename.extension

Both ways only work if the user currently logged on to the PC has authorization to write on the remote location.

Another option is that you write directly from the application server to the remote location by using the open dataset command. This option might be a good choice if the share to write to is located on a file server but it has some pitfalls that often render this solution unusable. For this solution it is important to have the following always in mind:

The user that writes the file and whose authorizations are checked is the user under which the System is running on the server (sidadm). The location where to store the file has to be entered in a way how you would enter it when you'd be working directly on the respective appserver (so in most cases UNC-paths).

Here some of the most common Pitfalls (in case of Windows Appserver, for Linux/Unix the basic rules also apply)

- Unable to authenticate sidadm against the share. Often the sidadm is in a different domain or not even within a domain so he cannot be entered as authorized for the share.

- Unable to resolve PC-Name. Often DHCP is used for assigning IP-adresses to PC's. In most of such cases the name-resolution only works from PC to PC but not from server to PC so the Appserver cannot resolve the pc-name to ip-address.

- Firewall blocks. Important systems are often placed behind firewall's and the ports for file transfer on OS-level between the Server-Network and the PC's Network are blocked.

- Wrong OS, e.g. Appserver runs on Linux/Unix while PC on Windows (or vice versa). Linux/Unix uses NFS, Windows SMB and you would need either NFS-services or SAMBA.

Besides the above mentioned ways to place the files on a different machine you can of course also use FTP or HTTP to place the file somewhere else. For such cases you need to change the coding to perform ftp/http-calls from the appserver and you need to have a suited server (ftp-server or webserver with script) installed that can take the request from the Appserver and place the file in the desired destination.

Hope that helps.

Best Regards

Michael