09-24-2008 3:07 AM
Hi,
I have a program which creates a file from the master data in one system (Logistics), and I have another program in another system (HR) which writes the contents from this file to a custom table.
I want to the avoid manual movement of the file among the systems. One option would be to create a common location on the file system which is accessible from both these systems.
But, could someone help me on doing a FTP of this file to HR system.
Appreciate your inputs.
Thanks
M
09-24-2008 4:02 AM
Hi,
I've never worked with it but check reports RSFTP* which contain some FTP examples. Those examples use functions from function group SFTP so check how are these functions used in SAP as well.
09-24-2008 4:02 AM
Hi,
I've never worked with it but check reports RSFTP* which contain some FTP examples. Those examples use functions from function group SFTP so check how are these functions used in SAP as well.
09-24-2008 4:21 AM
09-24-2008 4:47 AM
Thanks for the suggestions Martin/Deepika.
I will try this when I get to work tomorrow and update the post.
Thanks
M
09-24-2008 4:46 AM
Mark,
Check if this can give you any lead.
data:host(64) TYPE c VALUE 'ip address here',
dest LIKE rfcdes-rfcdest VALUE 'ZFTP',
User and password can be harcoded in the program
*CONNECT TO SERVER
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
user = user
password = pwd
host = host
rfc_destination = dest
IMPORTING
handle = hdl
EXCEPTIONS
not_connected = 1
OTHERS = 2.
K.Kiran.
09-24-2008 4:50 AM
09-24-2008 4:54 AM
Mark,
Just now I had checked my ZPROGRAM which has used this FTP concept is based on the report RSFTP007 itself.I guess this program as mentioned by them will give you a lead.
K.Kiran.
09-24-2008 4:56 AM
Hello Mark
Are the two systems accessible via RFC to each other? If so you can use one of the following function modules:
EPS_FTP_GET
EPS_FTP_PUT
EPS_FTP_MGET
EPS_FTP_MPUT
Regards
Uwe
12-20-2008 3:56 AM
Solved......
I had added another step in the background job to copy the file over to the other system.This second step has some unix code in it.
Thanks for all your suggestions.
MM