05-31-2013 8:55 AM
Hi Everyone,
I'm using FM "FTP_R3_TO_SERVER" to save data in FTP server and executing the program in background mode.
File is created on FTP server, but no data in that file. In foreground, in debugging mode I have checked the internal table contains data.
What may be the problem?
Please help me out to solve this issue.
Thanks & Regards,
Thangamani
05-31-2013 10:14 AM
05-31-2013 11:25 AM
Hi Ankit,
I have data in Internal table.
I want to download From internal table to FTP server.
Regards,
Thangamani
05-31-2013 1:28 PM
Hi,
What i meant by asking the previous question was that are you uploading file from presentation layer or application server? In background mode nothing can be uploaded from presentation server.
Thanks,
Ankit.
05-31-2013 1:40 PM
Hi Ankit,
I'm generating the spool number for a report, converting into internal table and then downloading into FTP server in background mode of execution.
Thanks & Regards,
Thangamani
05-31-2013 2:40 PM
Hi Thangamani,
Then my question has no significance....
Regards,
Ankit.
05-31-2013 10:19 AM
Hi,
Are you using BLOB or TEXT to pass the DATA ????
Try checking the standard RSFTP007
Also check SM59 for the connection and see if you have WRITE access for the user you are using.
BR
05-31-2013 11:46 AM
Hi Mohammed,
I'm using text data.
I have written below code in my program for download from internal to FTP server.
CALL FUNCTION 'FTP_R3_TO_SERVER'
EXPORTING
handle = lv_hdl
fname = lv_pathftp "file path of destination system
character_mode = 'X'
TABLES
text = lt_string
EXCEPTIONS
tcpip_error = 1
command_error = 2
data_error = 3
OTHERS = 4.
I'm able to create file in FTP server. Its not writing data into file. If write access is not there,I hope file can't be created in FTP server .
Please guide me on this issue.
Thanks & Regards,
Thangamani
05-31-2013 1:23 PM
Please run the program standard RSFTP007
If it is creating the file on the location with data then we can check the code.
If you are able to create the file with contents with this program run
Else there is a problem in communication [authorization].
Also check the table you are passing should have CHAR as line time with max length as 250.
BR
06-06-2013 3:15 PM
Hi Mohammed,
As you said, not able to write the data in file of FTP server, if data length is exceeding more than specific length.
For resolving this issue, I have created the file in Application server and using FM FTP_COMMAND and copied the file from Application server into FTP server.
Value for parameter cmd is : put <Source path> <Target path>.
Its working fine.
Thanks to all.
With Regards,
Thangamani A.