‎2008 Apr 18 8:41 PM
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
‎2008 Jun 10 12:25 AM
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
‎2008 Jun 10 9:44 AM
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