<?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 Uplaoding a file to external server using FTP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-a-file-to-external-server-using-ftp/m-p/2619691#M601511</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 need to get the data from the internal table and then convert into a ASCII file format with ' | ' seperator...then i need to upload the file to the Server using FTP..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;jaideep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2007 11:33:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-24T11:33:40Z</dc:date>
    <item>
      <title>Uplaoding a file to external server using FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-a-file-to-external-server-using-ftp/m-p/2619691#M601511</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 need to get the data from the internal table and then convert into a ASCII file format with ' | ' seperator...then i need to upload the file to the Server using FTP..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;jaideep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 11:33:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-a-file-to-external-server-using-ftp/m-p/2619691#M601511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T11:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Uplaoding a file to external server using FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-a-file-to-external-server-using-ftp/m-p/2619692#M601512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Jaideep,&lt;/P&gt;&lt;P&gt;Use this function module to download data to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BIN_FILESIZE =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;filename = ws_c_nam " Assigning file path to where the report program to download&lt;/P&gt;&lt;P&gt;filetype = 'ASC' " Type of file Whether it is ASCII or BINARY&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;APPEND = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;write_field_separator = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;HEADER = '00'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TRUNC_TRAILING_BLANKS = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WRITE_LF = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;COL_SELECT = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;COL_SELECT_MASK = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DAT_MODE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FILELENGTH =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = i_report[] " Assigning internal table which contains report program&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;file_write_error = 1&lt;/P&gt;&lt;P&gt;no_batch = 2&lt;/P&gt;&lt;P&gt;gui_refuse_filetransfer = 3&lt;/P&gt;&lt;P&gt;invalid_type = 4&lt;/P&gt;&lt;P&gt;no_authority = 5&lt;/P&gt;&lt;P&gt;unknown_error = 6&lt;/P&gt;&lt;P&gt;header_not_allowed = 7&lt;/P&gt;&lt;P&gt;separator_not_allowed = 8&lt;/P&gt;&lt;P&gt;filesize_not_allowed = 9&lt;/P&gt;&lt;P&gt;header_too_long = 10&lt;/P&gt;&lt;P&gt;dp_error_create = 11&lt;/P&gt;&lt;P&gt;dp_error_send = 12&lt;/P&gt;&lt;P&gt;dp_error_write = 13&lt;/P&gt;&lt;P&gt;unknown_dp_error = 14&lt;/P&gt;&lt;P&gt;access_denied = 15&lt;/P&gt;&lt;P&gt;dp_out_of_memory = 16&lt;/P&gt;&lt;P&gt;disk_full = 17&lt;/P&gt;&lt;P&gt;dp_timeout = 18&lt;/P&gt;&lt;P&gt;file_not_found = 19&lt;/P&gt;&lt;P&gt;dataprovider_exception = 20&lt;/P&gt;&lt;P&gt;control_flush_error = 21&lt;/P&gt;&lt;P&gt;OTHERS = 22&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;If Download completes successfully then Operation Successful success message is displayed otherwise corresponding error id displayed&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;ELSE.&lt;/P&gt;&lt;P&gt;MESSAGE i000 WITH 'Operation Successful'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And refer these threads for Upload thru FTP,&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/groups/technical-functional/sap-dev/ftp-help-742555" target="test_blank"&gt;http://sap.ittoolbox.com/groups/technical-functional/sap-dev/ftp-help-742555&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3639040"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 11:44:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-a-file-to-external-server-using-ftp/m-p/2619692#M601512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T11:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Uplaoding a file to external server using FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-a-file-to-external-server-using-ftp/m-p/2619693#M601513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sathiya,&lt;/P&gt;&lt;P&gt;i have done that...for example...this is my code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables spfli.&lt;/P&gt;&lt;P&gt;data itab type standard table of spfli with header line.&lt;/P&gt;&lt;P&gt;select carrid connid from spfli into corresponding fields of table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output :&lt;/P&gt;&lt;P&gt;aa 12&lt;/P&gt;&lt;P&gt;bb 23 etc..here i need to add a sepeartor/delimiter such as PIPE symbol '|'...how to add this in the FM...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;jaideep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 11:53:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-a-file-to-external-server-using-ftp/m-p/2619693#M601513</guid>
      <dc:creator>jaideeps</dc:creator>
      <dc:date>2007-07-24T11:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Uplaoding a file to external server using FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-a-file-to-external-server-using-ftp/m-p/2619694#M601514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jaideep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the following....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;           EXPORTING&lt;/P&gt;&lt;P&gt;                filename                = filestring&lt;/P&gt;&lt;P&gt;               &amp;lt;b&amp;gt; write_field_separator   = ','&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;           TABLES&lt;/P&gt;&lt;P&gt;                data_tab                = itab_data&lt;/P&gt;&lt;P&gt;           EXCEPTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get the field separator .... in your case ' | '....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use the &amp;lt;b&amp;gt;'FTP_CONNECT', 'FTP_COMMAND', 'FTP_DISCONNECT'&amp;lt;/b&amp;gt; function modules to send the file using FTP...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that solves your problem!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*&lt;STRONG&gt;Reward Points if Useful&lt;/STRONG&gt;*&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naveenan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 12:06:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-a-file-to-external-server-using-ftp/m-p/2619694#M601514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T12:06:46Z</dc:date>
    </item>
  </channel>
</rss>

