<?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_command in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-command/m-p/2497033#M564014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Following are the ftp commands,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-? - use -? by itself to display a list of commands or add the -? switch to any command to obtain help on the syntax and use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dir - displays contents of the directory &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cd - change directory &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get - the command get \&amp;lt;filename&amp;gt; allows the download of a file &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mget - allows download of multiple files &amp;#150; this command and those above may be performed with read permissions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put - the command put \&amp;lt;filename&amp;gt; uploads a file from the client host to the server. This and all subsequent commands require appropriate user permissions to write to the directory &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mput - allows upload of multiple files &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete - entered as delete \&amp;lt;filename&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mkdir - entered as mkdir \&amp;lt;directoryname&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rename - entered as rename \&amp;lt;old_filename&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;rewards pint if helpful....&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AbhaySingh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jul 2007 13:23:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-17T13:23:27Z</dc:date>
    <item>
      <title>ftp_command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-command/m-p/2497031#M564012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i tried to call ftp_command fn module This is the error mentioned in the SAP job log:&lt;/P&gt;&lt;P&gt;Attempting to perform FTP transfer&lt;/P&gt;&lt;P&gt;Command Error&lt;/P&gt;&lt;P&gt;ascii&lt;/P&gt;&lt;P&gt;FTP transfer failed !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 13:16:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-command/m-p/2497031#M564012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T13:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: ftp_command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-command/m-p/2497032#M564013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here is the sample Program &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.

CALL FUNCTION 'FTP_CONNECT'
     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.

CALL FUNCTION 'FTP_COMMAND'
     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.

CALL FUNCTION 'FTP_DISCONNECT'
     EXPORTING
       HANDLE = MI_HANDLE
     EXCEPTIONS
       OTHERS = 1.    
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 13:18:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-command/m-p/2497032#M564013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T13:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: ftp_command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-command/m-p/2497033#M564014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Following are the ftp commands,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-? - use -? by itself to display a list of commands or add the -? switch to any command to obtain help on the syntax and use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dir - displays contents of the directory &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cd - change directory &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get - the command get \&amp;lt;filename&amp;gt; allows the download of a file &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mget - allows download of multiple files &amp;#150; this command and those above may be performed with read permissions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put - the command put \&amp;lt;filename&amp;gt; uploads a file from the client host to the server. This and all subsequent commands require appropriate user permissions to write to the directory &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mput - allows upload of multiple files &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete - entered as delete \&amp;lt;filename&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mkdir - entered as mkdir \&amp;lt;directoryname&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rename - entered as rename \&amp;lt;old_filename&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;rewards pint if helpful....&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AbhaySingh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 13:23:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-command/m-p/2497033#M564014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T13:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: ftp_command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-command/m-p/2497034#M564015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plz give point if u feel that our answer is satisfying....&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Abhay SIngh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 13:37:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-command/m-p/2497034#M564015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T13:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: ftp_command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-command/m-p/2497035#M564016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First Check with Standard program : RSFTP002 and RSFTP00*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then see if ftp is connecting there ..&lt;/P&gt;&lt;P&gt;if not then there some correct parameter input error..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prax&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 14:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-command/m-p/2497035#M564016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T14:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: ftp_command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-command/m-p/2497036#M564017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To the ftp command module i am passing the handle as 1 and command as &lt;/P&gt;&lt;P&gt;put physicalfilename ftppath and verify as X . Now it is giving command error .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply its urgent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 06:41:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-command/m-p/2497036#M564017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T06:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: ftp_command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-command/m-p/2497037#M564018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error is : FTP subcommand: Server reports error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 06:51:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-command/m-p/2497037#M564018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T06:51:45Z</dc:date>
    </item>
  </channel>
</rss>

