<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: FTP not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-not-working/m-p/1414180#M199329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can you look at the program &amp;lt;b&amp;gt;RSEPSFTP&amp;lt;/b&amp;gt;, you will understand where you are doing wrong..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jun 2006 13:02:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-27T13:02:19Z</dc:date>
    <item>
      <title>FTP not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-not-working/m-p/1414173#M199322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I am trying to transfer a file from my c drive file name c:\test.csv into a ftp location . I am using the below function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call 'AB_RFC_X_SCRAMBLE_STRING'&lt;/P&gt;&lt;P&gt;call function 'FTP_CONNECT'&lt;/P&gt;&lt;P&gt;call function 'FTP_COMMAND'&lt;/P&gt;&lt;P&gt;call function 'FTP_DISCONNECT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first two function modules are giving a sy-subrc value  of 0 but the third where we need to specify the ftp command which in my case is " put c:\test.csv " , is not working.&lt;/P&gt;&lt;P&gt;it is giving a command error (sy-subrc = 1) .&lt;/P&gt;&lt;P&gt;Kindy advice me what needs to be done for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expecting a quick help.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 08:59:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-not-working/m-p/1414173#M199322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-27T08:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: FTP not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-not-working/m-p/1414174#M199323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that command already defined in sm49?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 09:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-not-working/m-p/1414174#M199323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-27T09:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: FTP not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-not-working/m-p/1414175#M199324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RSFTP002&lt;/P&gt;&lt;P&gt;RSFTP003&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laxman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 09:03:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-not-working/m-p/1414175#M199324</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-06-27T09:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: FTP not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-not-working/m-p/1414176#M199325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample program for FTP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ZFTPSAP LINE-SIZE 132.

DATA: BEGIN OF MTAB_DATA OCCURS 0,
LINE(132) TYPE C,
END OF MTAB_DATA.

DATA: MC_PASSWORD(20) TYPE C,
MI_KEY TYPE I VALUE 26101957,
MI_PWD_LEN TYPE I,
MI_HANDLE TYPE I.

START-OF-SELECTION.

*-- Your SAP-UNIX FTP password (case sensitive)
MC_PASSWORD = 'password'.

DESCRIBE FIELD MC_PASSWORD LENGTH MI_PWD_LEN.

*-- FTP_CONNECT requires an encrypted password to work
CALL 'AB_RFC_X_SCRAMBLE_STRING'
     ID 'SOURCE' FIELD MC_PASSWORD ID 'KEY' FIELD MI_KEY
     ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD MC_PASSWORD
     ID 'DSTLEN' FIELD MI_PWD_LEN.

&amp;lt;b&amp;gt;CALL FUNCTION 'FTP_CONNECT'&amp;lt;/b&amp;gt;
     EXPORTING
*-- Your SAP-UNIX FTP user name (case sensitive)
       USER            = 'userid'
       PASSWORD        = MC_PASSWORD
*-- Your SAP-UNIX server host name (case sensitive)
       HOST            = 'unix-host'
       RFC_DESTINATION = 'SAPFTP'
     IMPORTING
       HANDLE          = MI_HANDLE
     EXCEPTIONS
       NOT_CONNECTED   = 1
       OTHERS          = 2.

CHECK SY-SUBRC = 0.

&amp;lt;b&amp;gt;CALL FUNCTION 'FTP_COMMAND'&amp;lt;/b&amp;gt;
     EXPORTING
       HANDLE = MI_HANDLE
       COMMAND = 'dir'
     TABLES
       DATA = MTAB_DATA
     EXCEPTIONS
       TCPIP_ERROR = 1

       COMMAND_ERROR = 2
       DATA_ERROR = 3
       OTHERS = 4.

IF SY-SUBRC = 0.
  LOOP AT MTAB_DATA.
    WRITE: / MTAB_DATA.
  ENDLOOP.
ELSE.
* do some error checking.
  WRITE: / 'Error in FTP Command'.
ENDIF.

&amp;lt;b&amp;gt;CALL FUNCTION 'FTP_DISCONNECT'&amp;lt;/b&amp;gt;
     EXPORTING
       HANDLE = MI_HANDLE
     EXCEPTIONS
       OTHERS = 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 09:08:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-not-working/m-p/1414176#M199325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-27T09:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: FTP not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-not-working/m-p/1414177#M199326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Basically I am using "put" command in order to transfer a file from my pc or application server to ftp location.&lt;/P&gt;&lt;P&gt;I did not find any entries of " put" command in sm49.&lt;/P&gt;&lt;P&gt;can you guide me how to go about this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 12:11:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-not-working/m-p/1414177#M199326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-27T12:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: FTP not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-not-working/m-p/1414178#M199327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think If you are using the FM : SXPG_COMMAND_EXECUTE, command has to be created in SM49, with FTP FM's you can directly pass the unix commands. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laxman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 12:19:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-not-working/m-p/1414178#M199327</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-06-27T12:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: FTP not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-not-working/m-p/1414179#M199328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the below 4 function modules &lt;/P&gt;&lt;P&gt;call 'AB_RFC_X_SCRAMBLE_STRING'&lt;/P&gt;&lt;P&gt;call function 'FTP_CONNECT'&lt;/P&gt;&lt;P&gt;call function 'FTP_COMMAND'&lt;/P&gt;&lt;P&gt;call function 'FTP_DISCONNECT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting error with 'FTP_COMMAND' function module.&lt;/P&gt;&lt;P&gt;the error is "command error".&lt;/P&gt;&lt;P&gt;When I debugged the function module 'ftp_command' the error description was&lt;/P&gt;&lt;P&gt;FTP subcommand: Local error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 12:36:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-not-working/m-p/1414179#M199328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-27T12:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: FTP not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-not-working/m-p/1414180#M199329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can you look at the program &amp;lt;b&amp;gt;RSEPSFTP&amp;lt;/b&amp;gt;, you will understand where you are doing wrong..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 13:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-not-working/m-p/1414180#M199329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-27T13:02:19Z</dc:date>
    </item>
  </channel>
</rss>

