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

Command error issue from FTP_R3_TO_SERVER for CSV data

former_member683747
Participant
0 Likes
1,391

I have used ftp mode of file transfer and set passive mode on in the FTP_COMMAND function module. Yet I'm getting command error in ftp_r3_to_server function module. The extension used is CSV. What could have possibly gone wrong?

4 REPLIES 4
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,228

Anything can go wrong but please give some details if you want to be helped: it raises COMMAND_ERROR, but what message is it, 207 or 209? (SY-MSGNO) What exact parameters do you pass to the function module? (values and types) Did you try to write to an invalid path or to another valid path, what happens? Etc.

Read only

former_member683747
Participant
0 Likes
1,228

Could u give me a solution for 207 and 209 msg no. How do I find the message no?

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,228

In debug, display the variable SY-MSGNO. It's just part to help troubleshooting. Answer also the other questions please.

Read only

JackGraus
Active Contributor
0 Likes
1,228

The message class is the one from the function module and is 04. Message 207 is 'FTP subcommand: Local error'. Message 209 is 'FTP subcommand: Server reports error'.