<?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 File Transfer Using FTP Commands in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer-using-ftp-commands/m-p/5771767#M1306665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;         I have a file sitting in my SAP dir which i want to sent this file to a web server using 'FTP' any sample code would be helpfull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jun 2009 09:25:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-29T09:25:21Z</dc:date>
    <item>
      <title>File Transfer Using FTP Commands</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer-using-ftp-commands/m-p/5771767#M1306665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;         I have a file sitting in my SAP dir which i want to sent this file to a web server using 'FTP' any sample code would be helpfull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 09:25:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer-using-ftp-commands/m-p/5771767#M1306665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T09:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: File Transfer Using FTP Commands</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer-using-ftp-commands/m-p/5771768#M1306666</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;Refer to this link..http://docs.google.com/Doc?id=dfv2hmgs_21g5nmwkgw&amp;amp;hl=en&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 09:29:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer-using-ftp-commands/m-p/5771768#M1306666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T09:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: File Transfer Using FTP Commands</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer-using-ftp-commands/m-p/5771769#M1306667</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 u pls eloberate on the FM FTP_CONNECT , rfc_destination indicating to and the difference b/w FM FTP_R3_TO_SERVER and FM FTP_R3_TO_CLIENT. In my case which of the FM module should i use .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 10:26:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer-using-ftp-commands/m-p/5771769#M1306667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T10:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: File Transfer Using FTP Commands</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer-using-ftp-commands/m-p/5771770#M1306668</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;FM you need to use to transfer data from sap to FTP server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. HTTP_SCRAMBLE&lt;/P&gt;&lt;P&gt;2. FTP_CONNECT&lt;/P&gt;&lt;P&gt;3. FTP_COMMAND&lt;/P&gt;&lt;P&gt;4. FTP_R3_TO_SERVER&lt;/P&gt;&lt;P&gt;5. FTP_DISCONNECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more help you can check the demo progam RSFTP007 or RSFTP*&lt;/P&gt;&lt;P&gt;Refer to this link..http://abap-gallery.blogspot.com/2007/07/ftp.html&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 10:34:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer-using-ftp-commands/m-p/5771770#M1306668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T10:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: File Transfer Using FTP Commands</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer-using-ftp-commands/m-p/5771771#M1306669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Check the Below code to Transfer File using FTP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;Specify FTP Username, password and Host&lt;/STRONG&gt;  and &lt;STRONG&gt;Specify Destination Directory&lt;/STRONG&gt;(Where you want to Place the file )&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*Program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: w_password(30)     TYPE c,&lt;/P&gt;&lt;P&gt;        w_length       TYPE i,&lt;/P&gt;&lt;P&gt;        w_key          TYPE i                  VALUE 26101957,&lt;/P&gt;&lt;P&gt;        w_handle       TYPE i,&lt;/P&gt;&lt;P&gt;        w_command(500) TYPE c,&lt;/P&gt;&lt;P&gt;        slen type i.&lt;/P&gt;&lt;P&gt;data : source_path(250),&lt;/P&gt;&lt;P&gt;       dest_path(250).&lt;/P&gt;&lt;P&gt;types: begin of text,&lt;/P&gt;&lt;P&gt;        line(800) type c,&lt;/P&gt;&lt;P&gt;       end of text.&lt;/P&gt;&lt;P&gt;data: IT_INPUT type table of text with header line.&lt;/P&gt;&lt;P&gt;data: ftp_session type table of text with header line.&lt;/P&gt;&lt;P&gt;DATA : V_FILE_NAME LIKE rlgrap-filename.&lt;/P&gt;&lt;P&gt;data: v_docid(20) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK ONE WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;parameters: P_USER(30) type c lower case obligatory,&lt;/P&gt;&lt;P&gt;            P_PWD(30) type c lower case obligatory,&lt;/P&gt;&lt;P&gt;            P_HOST(64) type c lower case obligatory.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN :  END OF BLOCK ONE .&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK TWO WITH FRAME TITLE TEXT-002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS P_INFILE LIKE V_FILE_NAME.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN :  END OF BLOCK TWO .&lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt;parameters: dest type rfcdes-rfcdest default 'SAPFTPA' obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Scramble Password&lt;/P&gt;&lt;P&gt; w_length = STRLEN( P_PWD ).&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'HTTP_SCRAMBLE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      SOURCE      = 'mainframe'&lt;/P&gt;&lt;P&gt;      sourcelen   = w_length&lt;/P&gt;&lt;P&gt;      key         = w_key&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      destination = w_password.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Connect to FTP destination (DEST_HOST)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; CALL FUNCTION 'FTP_CONNECT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      USER            = P_USER&lt;/P&gt;&lt;P&gt;      password        = w_password&lt;/P&gt;&lt;P&gt;      HOST            = P_HOST&lt;/P&gt;&lt;P&gt;      rfc_destination = DEST&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      handle          = w_handle&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_connected   = 1&lt;/P&gt;&lt;P&gt;      OTHERS          = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc  &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4&lt;/P&gt;&lt;P&gt;      RAISING cannot_connect.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt; REFRESH ftp_session.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Navigate to destination directory&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  dest_path = 'Your Dest Directory on web server'.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'cd' dest_path INTO w_command SEPARATED BY space.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'FTP_COMMAND'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      handle        = w_handle&lt;/P&gt;&lt;P&gt;      command       = w_command&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data          = ftp_session&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      command_error = 1&lt;/P&gt;&lt;P&gt;      tcpip_error   = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'FTP command failed:' w_command&lt;/P&gt;&lt;P&gt;      INTO w_command SEPARATED BY space.&lt;/P&gt;&lt;P&gt;    MESSAGE ID 'ZW' TYPE 'E' NUMBER '042'&lt;/P&gt;&lt;P&gt;        WITH w_command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Read Input file&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data : vl_filepath(200).&lt;/P&gt;&lt;P&gt; refresh IT_INPUT.&lt;/P&gt;&lt;P&gt;*Read File from Appserver&lt;/P&gt;&lt;P&gt;   OPEN DATASET FP_INFIL FOR INPUT IN TEXT MODE TYPE 'NT'.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      WRITE : / 'ERROR OPENING FILE :' , FP_INFIL COLOR COL_NEGATIVE.&lt;/P&gt;&lt;P&gt;      STOP.&lt;/P&gt;&lt;P&gt;    ENDIF .&lt;/P&gt;&lt;P&gt;**********READ THE DATA TO TABLE FP_DATA_TAB&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      READ DATASET FP_INFIL INTO IT_INPUT.&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Transfer Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; slen =  800.&lt;/P&gt;&lt;P&gt; docid = FP_FILENAME.&lt;/P&gt;&lt;P&gt;call function 'FTP_R3_TO_CLIENT'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    fname           = docid&lt;/P&gt;&lt;P&gt;    rfc_destination = dest&lt;/P&gt;&lt;P&gt;    blob_length     = slen&lt;/P&gt;&lt;P&gt;    character_mode  = 'X'&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    text            = IT_INPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   blob            = bindata.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt; refresh IT_INPUT.&lt;/P&gt;&lt;P&gt; return.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Command&lt;/P&gt;&lt;P&gt;concatenate 'put' docid into cmd separated by ' '.&lt;/P&gt;&lt;P&gt;  refresh result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'FTP_COMMAND'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      handle        = w_handle&lt;/P&gt;&lt;P&gt;      command       = cmd&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      data          = result&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      tcpip_error   = 1&lt;/P&gt;&lt;P&gt;      command_error = 2&lt;/P&gt;&lt;P&gt;      data_error    = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   error = 1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at result.&lt;/P&gt;&lt;P&gt;    write: / result-line.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  skip 1.&lt;/P&gt;&lt;P&gt;*Disconnect Host&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'FTP_DISCONNECT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      handle = w_handle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND IT_INPUT.&lt;/P&gt;&lt;P&gt;      CLEAR IT_INPUT.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;**********&lt;STRONG&gt;CLOSE THE FILE FP_INFIL&lt;/STRONG&gt;**************&lt;/P&gt;&lt;P&gt;    CLOSE DATASET FP_INFIL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        RAISING dest_path_unknown.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 11:07:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer-using-ftp-commands/m-p/5771771#M1306669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T11:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: File Transfer Using FTP Commands</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer-using-ftp-commands/m-p/5771772#M1306670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check part of sample code below for reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:
  FTP_USER(64) value 'sielroot', "Case sensitive
  FTP_PWD(64) value 'siel//?!',  "Case Sensitive
  FTP_HOST(50) value '107.10.86.162', "I.P add of FTP server
  RFC_DEST LIKE RSCAT-RFCDEST value 'SAPFTPA'.  "Case sensitive
DATA:
  HDL TYPE I,
  KEY TYPE I VALUE 26101957,
  DSTLEN TYPE I,
  cmd(255).
DATA:
  BEGIN OF FTP_DATA OCCURS 0,
    LINE(132) TYPE C,
  END OF FTP_DATA.

DESCRIBE FIELD FTP_PWD LENGTH DSTLEN.

FORM FTP.
***Encrypt Password.
CALL 'AB_RFC_X_SCRAMBLE_STRING'
      ID 'SOURCE' FIELD FTP_PWD
      ID 'KEY' FIELD KEY
      ID 'SCR' FIELD 'X'
      ID 'DESTINATION' FIELD FTP_PWD
      ID 'DSTLEN' FIELD DSTLEN.

***Connect to FTP
CALL FUNCTION 'FTP_CONNECT'
     EXPORTING
          USER            = FTP_USER
          PASSWORD        = FTP_PWD
          HOST            = FTP_HOST
          RFC_DESTINATION = RFC_DEST
     IMPORTING
          HANDLE          = HDL
     EXCEPTIONS
          NOT_CONNECTED   = 1
          OTHERS          = 2.
IF SY-SUBRC NE 0.
  WRITE:/ 'COULD NOT CONNECT TO', FTP_HOST.
ELSE.

***Create File on Application Server
  PERFORM CREATE_FILE_ON_APP_SER.

  CALL FUNCTION 'FTP_DISCONNECT'
       EXPORTING
            HANDLE = HDL
       EXCEPTIONS
            OTHERS = 1.
  IF SY-SUBRC NE 0.
    WRITE:/ 'COULD NOT DISCONNECT FROM FTP SERVER'.
  ELSE.
    WRITE:/ 'DISCONNECTED FROM FTP SERVER'.
  ENDIF.

ENDIF.
ENDFORM.                    " FTP
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 11:21:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer-using-ftp-commands/m-p/5771772#M1306670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T11:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: File Transfer Using FTP Commands</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer-using-ftp-commands/m-p/5771773#M1306671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;continue... PART II&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM CREATE_FILE_ON_APP_SER.
data:
  file type string,
  ftp_file type string.

***Choose/Create a path on Application Server through TCode AL11
***and assign it to FILE variable, as an e.g. i have taken '/tmp'
file = '/tmp'.  "Path
concatenate file '/itab.txt' into file. "Path with filename
ftp_file = '/Product_DEV/itab.txt'.

open dataset file for output in text mode.
if SY-SUBRC = 0.
  write : /  'File opened on application server' .
else.
  write : /  'Unable to open file on application server'.
endif.

  loop at itab.
    transfer itab to file.
  endloop.
  if SY-SUBRC = 0.
    write : /  'Data transfer to file on application server complete.' .
  else.
    write : /  'Unable to transfer data to file on application server.'.
  endif.

  close dataset file.
  if SY-SUBRC = 0.
    write : /  'File closed on application server' .
  else.
    write : /  'Unable to close file on application server'.
  endif.

***Copy file from application server to FTP
concatenate 'put' file ftp_file into cmd SEPARATED by space.
CALL FUNCTION 'FTP_COMMAND'
     EXPORTING
          HANDLE        = hdl
          COMMAND       = cmd
     TABLES
          DATA          = FTP_DATA
    EXCEPTIONS
         TCPIP_ERROR   = 1
         COMMAND_ERROR = 2
         DATA_ERROR    = 3
         OTHERS        = 4          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

***Delete file from App. Server
  delete dataset file.
  if SY-SUBRC = 0.
    write : /  'File deleted from application server' .
  else.
    write : /  'Unable to delete file from application server'.
  endif.

ENDFORM.                    " CREATE_FILE_ON_APP_SER
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 11:29:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer-using-ftp-commands/m-p/5771773#M1306671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T11:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: File Transfer Using FTP Commands</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer-using-ftp-commands/m-p/5771774#M1306672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check with this Fm too SXPG_COMMAND_EXECUTE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 11:30:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer-using-ftp-commands/m-p/5771774#M1306672</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-06-29T11:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: File Transfer Using FTP Commands</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer-using-ftp-commands/m-p/5771775#M1306673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;issue closed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2009 14:50:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer-using-ftp-commands/m-p/5771775#M1306673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-10T14:50:36Z</dc:date>
    </item>
  </channel>
</rss>

