08-28-2009 7:57 PM
Running RSFTP003 with valid user/pw results in "User ... has no access authorization for computer ..." error. I am able to connection test SAPFTP successfully and connect from desktop using SFTP from command window (also FileZilla, etc.. work fine). I found a few other posts on this error but they all said "resolved" without any explanation as to how :).
The server requires SFTP (SSH). Is there something special I need to do when calling FTP_CONNECT for SFTP or is it all setup in the RFC/Linux side?
Also, is there a simple way move a file from local PC to a directory on the app server (Linux) WITHOUT loading it into ABAP with GUI_UPLOAD and then output...
Thanks,
Brian
08-28-2009 8:03 PM
Are you looking for a one time deal or an ongoing process? If it is just one time, then you can use the transaction CG3Z. For moving files from server to desktop, you can use CG3Y.
08-28-2009 8:03 PM
Are you looking for a one time deal or an ongoing process? If it is just one time, then you can use the transaction CG3Z. For moving files from server to desktop, you can use CG3Y.
08-28-2009 8:09 PM
Instead of using RSFT003
use RSFTP002 and give Unix command for move files and check
User anonymous " Give User name
Password ******************************
Host 999.999.99.999 " Give your IP for FTP
Command 1 ls /pub
Command 2
Command 3
RFC Destination SAPFTPA
Compress N
For moving files from frontend to app server use transaction code CG3Z
a®
08-28-2009 9:01 PM
Thanks for the replies.
This is for an ongoing process.
I tried RSFTP002 - same error message. Also, CG3Z uses GUI_UPLOAD behind the scenes (it is reading the data in to memory then simply writing out with OPEN DATASET) - this is what I am trying to avoid...
08-28-2009 10:32 PM
That is why I asked if it is an ongoing process. I am assuming this will always be run online(not in batch and not in background) because there is no desktop if it is not online/dialog unless your desktop has a static address/name which is available in your network as a network drive.
You can create your FTP script in Linux on the application server and keep all your FTP commands and login information in that script. Then you create a logical command in SAP using transaction code SM69. Once you create your logical command, you can then execute this logical command using the function module SXPG_COMMAND_EXECUTE. You can even get adventurous with this by having file name and desktop directory as parameters in your script, have the same parameters defined in your program and pass them to the function module.
08-28-2009 10:56 PM
I was afraid of that - was hoping to avoid using scripts. Thanks Srinivas.
08-31-2009 6:03 PM
Well, at least you can keep the login information outside of your ABAP code. Typically the application server network folders have much more tighter access controls than your SE38 ABAP display access. So you can feel much safer to write a script.
08-31-2009 6:16 PM
I agree - security is better/tighter on the app server folders.
I'm going to leave this open for another day or two to see if any more ideas surface, then close it. Thanks again.
09-02-2009 1:37 PM
...marking as answered. I may open a separate thread with a better title to re-ask the unanswered portion:
"Also, is there a simple way to move a file from local PC to a directory on the app server (Linux) WITHOUT loading it into ABAP with GUI_UPLOAD and then output..."
09-02-2009 3:05 PM
if you didn't post a new question yet, use transaction CG3Y to copy from frontend to server (and CG3Z for the opposite)
09-02-2009 3:16 PM
See my earlier response...
"Also, CG3Z uses GUI_UPLOAD behind the scenes (it is reading the data in to memory then simply writing out with OPEN DATASET) - this is what I am trying to avoid..."