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: 

File is not saving in FTP server using FM FTP_R3_TO_SERVER

Former Member
0 Kudos

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

9 REPLIES 9

Former Member
0 Kudos

Hi,

From where are you uploading the file ?

Regards,

Ankit.

0 Kudos

Hi Ankit,

I have data in Internal table.

I want to download From internal table to FTP server.

Regards,

Thangamani

0 Kudos

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.

0 Kudos

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

0 Kudos

Hi Thangamani,

Then my question has no significance....

Regards,

Ankit.

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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


0 Kudos

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.