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

Uploading CSV file from FTP

Former Member
0 Likes
1,943

Hello All,

I have a requirement of uploading .CSV file from FTP path. I am using the FM, TEXT_CONVERT_CSV_TO_SAP. But only the first column is getting uploaded into the internal table. The FMs I am using are

HTTP_SCRAMBLE

FTP_CONNECT

FTP_COMMAND

FTP_SERVER_TO_R3

TEXT_CONVERT_CSV_TO_SAP

and the file format is :

2,21.01.2014,ST,TCL,PHAL,W02,2489,170,95214020101.........

only 2 is getting uploaded in the first column of the output internal table.

Please suggest me if anyone has come across such scenario.

Regards,

Supratim

Hello All,

I have a requirement of uploading .CSV file from FTP path. I am using the FM, TEXT_CONVERT_CSV_TO_SAP. But only the first column is getting uploaded into the internal table. The FMs I am using are

HTTP_SCRAMBLE

FTP_CONNECT

FTP_COMMAND

FTP_SERVER_TO_R3

TEXT_CONVERT_CSV_TO_SAP

and the file format is :

2,21.01.2014,ST,TCL,PHAL,W02,2489,170,95214020101.........

only 2 is getting uploaded in the first column of the output internal table.

Please suggest me if anyone has come across such scenario.

Regards,

Supratim

4 REPLIES 4
Read only

FredericGirod
Active Contributor
0 Likes
1,235

Hi,

I never used FTP with SAP, but maybe you have the option MODE : Binary or Ascii. If you have it, use the option Ascii for transferring text file format.

regards

Fred

Read only

Former Member
Read only

Former Member
0 Likes
1,235

Hi All,

I have solved these issue by using FM, TEXT_CONVERT_TEX_TO_SAP.

Read only

0 Likes
1,235

Can you tell me how u done this fm and could you share the code logic ?