‎2013 Jul 03 9:55 AM
Hi All ,
I have checked all SAP forums concerning this error but no solution to it.
Has anyone out there encountered this error while using this function and
managed to resolve it.If so please share how you went about it ,
perhaps it can trigger a solution in my brain too,
CALL FUNCTION 'FTP_R3_TO_SERVER'
EXPORTING
handle = hdl
fname = fname
character_mode = 'X'
TABLES
text = itttab
EXCEPTIONS
tcpip_error = 1
command_error = 2
data_error = 3
OTHERS = 4.
Regards
student of abap
‎2013 Jul 03 10:51 AM
Have you checked sample programs:
RSFTP001 SAPFTP Version
RSFTP002 Execute FTP Command
RSFTP003 FTP put / get Test
RSFTP004 FTP Copy
RSFTP005 SAPFTP check
RSFTP006 FTP command list
RSFTP007 Test FB:FTP_SERVER_TO_R3 / FTP_R3_TO_SERVER
RSFTP008 Test FB:FTP_CLIENT_TO_R3 / FTP_R3_TO_CLIENT
RSFTP009 Test FTP put with Verify
Regards
‎2013 Jul 03 10:51 AM
Have you checked sample programs:
RSFTP001 SAPFTP Version
RSFTP002 Execute FTP Command
RSFTP003 FTP put / get Test
RSFTP004 FTP Copy
RSFTP005 SAPFTP check
RSFTP006 FTP command list
RSFTP007 Test FB:FTP_SERVER_TO_R3 / FTP_R3_TO_SERVER
RSFTP008 Test FB:FTP_CLIENT_TO_R3 / FTP_R3_TO_CLIENT
RSFTP009 Test FTP put with Verify
Regards
‎2013 Jul 03 11:45 AM
Yes , i did do testing with RSFTP007 which also gave me that error on the FM FTP_R3_TO_SERVER.
The function FTP command doesnt return error so its connecting oK,i reconfirmed with RSFTP002 .
But now to transfer the internal table as file to FTP server in FM
FTP_R3_TO_SERVER. is where i get the C_error = 4 : FTP subcommand:Server reports error.
‎2013 Jul 04 10:18 AM
Hi
Have you ruled out the possibility that it is a permissions problem on the user connecting to the FTP. The commands can be restricted by user.
Regards
‎2013 Jul 04 10:40 AM
Hi,
I just confirmed with basis that it was permissions to read/write to the file directory not assigned .
Thanks
Regards