Application Development 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: 

SXPG_COMMAND_EXECUTE - FTP problem

Former Member
0 Kudos

Hi Guys,

I am transferring file from FTP server to SAP server using the F.M SXPG_COMMAND_EXECUTE but the same same program executes in QAS server but not in DEV server.

I have checked in External command in SM69 and SM49 in both the systems both are same and I debugged and found that CALL FUNCTION 'SAPXPG_END_XPG' in side the

SXPG_COMMAND_EXECUTE gives the error in DEV server.

I am using a .BAT file and additional parametes I am using the FTP command with primary- proxy

Pls find the log

ftp> Invalid command.#

ftp> *****************

Invalid command.#

ftp> *************

Not connected.#

ftp> cd *********

Not connected.#

ftp> ls

quit

> ftp: connect :Connection refused

where as in QAS server the BAT file executes and gives me the list of files which is in the respective FTP server.

Please let me know the error and I hope some thing to do with server profile setup.

regards,

Prabhu

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Check if you have enough authorizations to execute ..

you might be getting NO_PERMISSION exception ..

2 REPLIES 2

Former Member
0 Kudos

Check if you have enough authorizations to execute ..

you might be getting NO_PERMISSION exception ..

0 Kudos

Hi,

I am using the same FTP server logon id and password and after the the FM SXPG_COMMAND_EXECUTE if there is no permission it should return me sy-subrc = 1 but here in my case the Sy-subrc = 0 but I get the log as not connected.

Regards

Prabhu

Edited by: prabhu jayaraman on Mar 11, 2009 8:57 AM