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: 

Transfer file in application server to another file

Former Member
0 Kudos

Hello guys I have another major hurdle I am encountering for a little task I am doing.

I need to send a downloaded file within the SAP application server to another file automatically using ABAP via Background Processing(most preferable a directory in the <b>newtwork</b>).

What I need to do is, after saving a list from an abap report and saves in the application server (which I have already done), I need it to transport to a the web server. All done in background.

I really appreciate the help you guys have given to me thus far. Thank you guys and take care.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Refer this thread:

Will give you an idea.

Regards,

Gayathri

5 REPLIES 5

Former Member
0 Kudos

Hi,

Refer this thread:

Will give you an idea.

Regards,

Gayathri

0 Kudos

Hi,

Check out this thread ..

here you can see two examples one is copy one file to another in local PC or Copy one file to another in application server.

Regards

vijay

Former Member
0 Kudos

HI Chad,

Please find this ref. thread.

This may help you to understand how it can be done.

say you can create a background report for the same.

Cheers

sunny

rewrd points , if found helpful

vinod_gunaware2
Active Contributor
0 Kudos

Hi

U have to use unix command for same

i have seen some function module just check it out

SXPG_CALL_SYSTEM you can check the user's authorization for the specified command and run the command. The command runs on the host system on which the function module is executed. The function module is RFC capable. It can therefore be run on the host system at which a user happens to be active or on another designated host system at which an R/3 server is active.

<b>SXPG_COMMAND_CHECK</b> Check whether the user is authorized to execute the specified command on the target host system with the specified arguments.

<b>SXPG_COMMAND_DEFINITION_GET</b> Read the definition of a single external OS command from the R/3 System's database.

<b>

SXPG_COMMAND_EXECUTE</b> Check a user's authorization to use a command, as in SXPG_COMMAND_CHECK. If the authorization check is successful, then execute the command on the target host system.

<b>SXPG_COMMAND_LIST_GET</b> Select a list of external OS command definitions.

<b>RZL_READ_DIR_LOCAL</b> Read a directory on the Application Server

<b>SUBST_GET_FILE_LIST</b> Return table with file list for the given directory (pattern allowed)

regards

vinod

Former Member
0 Kudos

Hello Chad,

I'm assuming that your target directory, when you say it's on the network, is on a Windows machine and not a Unix one. Is this correct?

In that case, you may have to ftp the file from the application server to the web server. To do this, take a look at the functions in function group SFTP.

Another options is to look at Microsoft Unix Services, with which you could export an NFS directory from the Windows machine which you can mount directly in Unix on the Application server, and then save your file to there. This would eliminate the need for any additional ftp-ing.

I'm making a lot of assumptions here, so maybe you should just clarify your requirement if this didn't help.

Cheers,

Martin