cancel
Showing results for 
Search instead for 
Did you mean: 

SAPFTPA from SAP Application Servers - Permission denied

Former Member
0 Kudos

Hi

Problem with SAPFTPA from SAP aplicationserver. ( release 700 )

For testing I use ABAP RSFTP006 with user, passw, host, RFC Destination SAPFTPA, and FTP command LS.

Error-message "Internal error in SAPFTP" comes up.

RFC destination SAPFTPA is created automatically, and when activating RFC trace, I can read in log that FTP user is logged in at FTP server, but error "Permission denied" comes up.

*******PART from log

[7068|https://forums.sdn.sap.com/] > USER SDJA

[7068|https://forums.sdn.sap.com/] FTP server : 331 Password required for SDJA.

[7068|https://forums.sdn.sap.com/] > *****

[7068|https://forums.sdn.sap.com/] FTP server : 230 User SDJA logged in.

[7068|https://forums.sdn.sap.com/] > TYPE I

[7068|https://forums.sdn.sap.com/] FTP server : 200 Type set to I.

[7068|https://forums.sdn.sap.com/] tmpfile \2

      • ERROR => [7068|https://forums.sdn.sap.com/] Open error: Permission denied [http://ftpmain.c 1709]

Tue Mar 17 09:36:03 2009

[7068|https://forums.sdn.sap.com/] FTP Stop

                  • End log

Check with RSFTP005 RFC destination's is ok.

QUESTION: Where is tmpfile \2 located - is it environmentvariable ( C:\Documents and Settings\SAPServiceSID\Local Settings\Temp ) or SAP-directory DIR_TEMP.

Permissions for SAPServiceSID seems to be okay ( user can manually create files )

SAPFTPA works on developmentsystem ( same patch/kernel level ).

Firewall is checked. It is possible to run FTP client from SAP server.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

SAP provide sample code to connect to FTP.

It provided in SAP function module, FTP_CONNECT (connect to FTP), FTP_COMMAND (send command by FTP), FTP_DISCONNECT (disconnect),FTP_R3_TO_SERVER (put file to FTP),FTP_SERVER_TO_R3 (get file from FTP).

Refer to the following link for more:

http://abap-gallery.blogspot.com/2007/07/ftp.html

Please see if this is of some good to you.

Regards

Chen

Former Member
0 Kudos

Hi Chen

Thank you for your reply.

I know the sampleprograms, and RSFTP006 which is mentioned above is a sample program as well.

This issue is not a programming issue, but more a basis issue.

The serviceuser has changed domain on OS, and some permissions was missing on OS level.

Regards

Peter