Application Development and Automation 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: 
Read only

FTP connection problem

Former Member
0 Likes
359

Hi all,

I am placing file in different IP address 150.150.120.123 successfully by using FMs

HTTP_SCRAMBLE

FTP_CONNECT

FTP_COMMAND

FTP_COMMAND

FTP_R3_TO_CLIENT

But i am getting problem of all are not coming line by line.

the file is placing but records are all line items placing continuously continuation with ','. Actually i have to get file records like this

0001000265,070914,,,1000,16.0000,67322.00,2.0000,1346.00,HRCF

0001000267,070914,,,1000,16.0000,67322.00,2.0000,3446.00,HRSCF

0001000278,070916,,,1000,16.0000,67322.00,2.0000,4546.00,HRPO

But i am getting now file records as

0001000265,070914,,,1000,16.0000,67322.00,2.0000,1346.00,HRCF,0001000267,070914,,,1000,16.0000,67322.00,2.0000,3446.00,HRSCF,0001000278,070916,,,1000,16.0000,67322.00,2.0000,4546.00,HRPO

Just like coming records continuing with ','.

Pls if any one knows solution how to get records item wise without continuation all records with ','.

Pls help me

Regards,

J.Lokesh

2 REPLIES 2
Read only

Former Member
0 Likes
338

Hi...

Using this...

data : begin of it_data occurs 0 ,

data(350)

end_flag type x

end of it_data.

Put the data in the line and then end of the line

it_data-data = 0001000265,070914,,,1000,16.0000,67322.00,2.0000,1346.00,HRCF

it_data-end_flag = '0A'.

Good luck

Read only

vallamuthu_madheswaran2
Active Contributor
0 Likes
338

Hi,

You build your internal table the following.

data: begin of itab_final occurs 0,

vbeln like vbak-vbeln,

sapce1(1),

posnr type posnr,

sapce2(1),

ktext type ktext,

end of itab_final.

move: ',' to sapce1.

move ',' to sapce 2.

Thanks & Regards

Vallamuthu.M