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: 

Problem with FTP_R3_TO_SERVER function module while downloading excel sheet in background

pbabitha
Explorer
0 Kudos

Hi All,

I have created a zreport to download equipment details into excel sheet while running background.I have used the following function modules to download excel file into FTP path

HTTP_SCRAMBLE

FTP_CONNECT

FTP_R3_TO_SERVER

FTP_DISCONNECT

RFC_CONNECTION_CLOSE

But it is downloading internal table row into single cell and also when i try to download multiple rows it is not downloading correct data. I have passed blob_length as 122 * 30 and blob as internal table.

Please help me out to solve this issue as it is an urgent requirement.

Thanks & Regards,

Babitha

3 REPLIES 3

Tomas_Buryanek
Active Contributor
0 Kudos

1) I think you are not creating "Excel sheet" but simple text file? Is it tab delimited, or CSV, or...?

2) I recommend to use FTP_R3_TO_SERVER in its binary (default) mode. I.E. work with binary data. And every time you work with binary data in internal table (BLOB), you need to know its size (fill it into BLOB_LENGTH parameter).

-- Tomas --

pbabitha
Explorer
0 Kudos

Thanks Tomas,

I have made it as tab delimited file and it got successfully downloaded into text file and i am working on excel file download following your points.

Regards,

Babitha

srikanthnalluri
Active Participant
0 Kudos

Check the standard program - RSFTP007, it may help you.