04-04-2006 6:29 AM
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.
04-04-2006 6:34 AM
04-04-2006 6:34 AM
04-04-2006 6:57 AM
04-04-2006 6:46 AM
04-04-2006 6:53 AM
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
04-04-2006 8:52 AM
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