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 subcommand:Server reports error

Former Member
0 Likes
3,947

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

1 ACCEPTED SOLUTION
Read only

former_member188827
Active Contributor
1,314

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

4 REPLIES 4
Read only

former_member188827
Active Contributor
1,315

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

Read only

0 Likes
1,314

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.

Read only

0 Likes
1,314

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

Read only

0 Likes
1,314

Hi,

I just confirmed with basis that it  was permissions to read/write to the file directory not assigned .


Thanks

Regards