<?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: Table data send to FTP location in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-data-send-to-ftp-location/m-p/7551702#M1563464</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 if LT_STRING is declared as an internal table ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of LT_STRING occurs 0,&lt;/P&gt;&lt;P&gt;text(250),&lt;/P&gt;&lt;P&gt;end of LT_STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Dec 2010 10:41:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-23T10:41:03Z</dc:date>
    <item>
      <title>Table data send to FTP location</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-data-send-to-ftp-location/m-p/7551701#M1563463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'FTP_CONNECT'
    EXPORTING
      USER            = WA_ZFTPPASSWORDS-FTPUSERID
      PASSWORD        = WA_ZFTPPASSWORDS-FTPPASSWORD
      HOST            = WA_ZFTPPASSWORDS-FTPURL
      RFC_DESTINATION = C_RFCDEST
    IMPORTING
      HANDLE          = L_HANDLE
    EXCEPTIONS
      NOT_CONNECTED   = 1
      OTHERS          = 2.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    CASE SY-SUBRC.
      WHEN 1.
        MESSAGE I000 WITH TEXT-027.                         "#EC *
      WHEN 2.
        MESSAGE I000 WITH TEXT-028.
    ENDCASE.
    SUBRC = SY-SUBRC.
    EXIT.
  ENDIF.


  CONCATENATE 'cd' 'IN' INTO L_COMMAND SEPARATED BY SPACE.
  CALL FUNCTION 'FTP_COMMAND'
    EXPORTING
      HANDLE        = L_HANDLE
      COMMAND       = L_COMMAND
    TABLES
      DATA          = LT_RESULT
    EXCEPTIONS
      TCPIP_ERROR   = 1
      COMMAND_ERROR = 2
      DATA_ERROR    = 3
      OTHERS        = 4.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    PERFORM ERROR_MESSAGE.
    SUBRC = SY-SUBRC.
    EXIT.
  ENDIF.

CALL FUNCTION 'FTP_R3_TO_SERVER'
          EXPORTING
            HANDLE         = L_HANDLE
            FNAME          = L_FNAME
            CHARACTER_MODE = C_VAR
          TABLES
            TEXT           = LT_STRING
          EXCEPTIONS
            TCPIP_ERROR    = 1
            COMMAND_ERROR  = 2
            DATA_ERROR     = 3
            OTHERS         = 4.
        IF SY-SUBRC &amp;lt;&amp;gt; 0.
          PERFORM ERROR_MESSAGE.
          SUBRC = SY-SUBRC.
          EXIT.
        ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code LT_STRING having charecter formated data.&lt;/P&gt;&lt;P&gt;we are sending to FTP location .The file name was moved to FTP but no data in that file .&lt;/P&gt;&lt;P&gt;please help on this .I tried all the documents in SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: subrahmanyam24 on Dec 23, 2010 3:50 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: subrahmanyam24 on Dec 23, 2010 3:56 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Dec 2010 08:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-data-send-to-ftp-location/m-p/7551701#M1563463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-23T08:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Table data send to FTP location</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-data-send-to-ftp-location/m-p/7551702#M1563464</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 if LT_STRING is declared as an internal table ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of LT_STRING occurs 0,&lt;/P&gt;&lt;P&gt;text(250),&lt;/P&gt;&lt;P&gt;end of LT_STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Dec 2010 10:41:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-data-send-to-ftp-location/m-p/7551702#M1563464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-23T10:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Table data send to FTP location</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-data-send-to-ftp-location/m-p/7551703#M1563465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Dec 2010 11:49:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-data-send-to-ftp-location/m-p/7551703#M1563465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-23T11:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Table data send to FTP location</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-data-send-to-ftp-location/m-p/7551704#M1563466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi subrahmanyam24,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the definition of LT_STRING. If it is a table of ABAP data type string, this may not work because ABAP strings are not compatible to text file records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use a table of recors which arte long enough, i.e. text1000 or so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Dec 2010 17:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-data-send-to-ftp-location/m-p/7551704#M1563466</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-12-26T17:00:25Z</dc:date>
    </item>
  </channel>
</rss>

