<?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 Getting Data Error while calling FM FTP_R3_TO_SERVER in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-error-while-calling-fm-ftp-r3-to-server/m-p/12723723#M2019946</link>
    <description>&lt;P&gt;Hello experts,&lt;/P&gt;
  &lt;P&gt;I am getting exception code data error while calling &lt;STRONG&gt;FM: FTP_R3_TO_SERVER&lt;/STRONG&gt;, below is the piece of code.&lt;/P&gt;
  &lt;P&gt;Could you please let me know what is wrong with the code ?&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;FORM download_xml.&lt;BR /&gt;  IF d_xml IS NOT INITIAL.&lt;BR /&gt;    slen = strlen( pswd ).&lt;BR /&gt;    CALL FUNCTION 'HTTP_SCRAMBLE'&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        source      = pswd&lt;BR /&gt;        sourcelen   = slen&lt;BR /&gt;        key         = key&lt;BR /&gt;      IMPORTING&lt;BR /&gt;        destination = pswd.&lt;BR /&gt;&lt;BR /&gt;    CALL FUNCTION 'FTP_CONNECT'&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        user            = user&lt;BR /&gt;        password        = pswd&lt;BR /&gt;        host            = host&lt;BR /&gt;        rfc_destination = dest&lt;BR /&gt;      IMPORTING&lt;BR /&gt;        handle          = lv_handle&lt;BR /&gt;      EXCEPTIONS&lt;BR /&gt;        not_connected   = 1&lt;BR /&gt;        OTHERS          = 2.&lt;BR /&gt;&lt;BR /&gt;    CONCATENATE wa_edidc-docnum '.xml'&lt;BR /&gt;    INTO lv_command.&lt;BR /&gt;&lt;BR /&gt;    CALL FUNCTION 'FTP_R3_TO_SERVER'&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        handle         = lv_handle&lt;BR /&gt;        fname          = lv_command&lt;BR /&gt;        character_mode = 'X'&lt;BR /&gt;      TABLES&lt;BR /&gt;        text           = gt_data_tab&lt;BR /&gt;      EXCEPTIONS&lt;BR /&gt;        tcpip_error    = 1&lt;BR /&gt;        command_error  = 2&lt;BR /&gt;        data_error     = 3&lt;BR /&gt;        OTHERS         = 4.&lt;BR /&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;      RAISE data_error.&lt;BR /&gt;    ENDIF.&lt;BR /&gt;&lt;BR /&gt;    CALL FUNCTION 'FTP_DISCONNECT'&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        handle = lv_handle.&lt;BR /&gt;&lt;BR /&gt;    CALL FUNCTION 'RFC_CONNECTION_CLOSE'&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        destination          = dest&lt;BR /&gt;      EXCEPTIONS&lt;BR /&gt;        destination_not_open = 1&lt;BR /&gt;        OTHERS               = 2.&lt;BR /&gt;  ENDIF.&lt;BR /&gt;ENDFORM.                        "download_xml&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 24 Jan 2023 12:31:56 GMT</pubDate>
    <dc:creator>susrith2021</dc:creator>
    <dc:date>2023-01-24T12:31:56Z</dc:date>
    <item>
      <title>Getting Data Error while calling FM FTP_R3_TO_SERVER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-error-while-calling-fm-ftp-r3-to-server/m-p/12723723#M2019946</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;
  &lt;P&gt;I am getting exception code data error while calling &lt;STRONG&gt;FM: FTP_R3_TO_SERVER&lt;/STRONG&gt;, below is the piece of code.&lt;/P&gt;
  &lt;P&gt;Could you please let me know what is wrong with the code ?&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;FORM download_xml.&lt;BR /&gt;  IF d_xml IS NOT INITIAL.&lt;BR /&gt;    slen = strlen( pswd ).&lt;BR /&gt;    CALL FUNCTION 'HTTP_SCRAMBLE'&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        source      = pswd&lt;BR /&gt;        sourcelen   = slen&lt;BR /&gt;        key         = key&lt;BR /&gt;      IMPORTING&lt;BR /&gt;        destination = pswd.&lt;BR /&gt;&lt;BR /&gt;    CALL FUNCTION 'FTP_CONNECT'&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        user            = user&lt;BR /&gt;        password        = pswd&lt;BR /&gt;        host            = host&lt;BR /&gt;        rfc_destination = dest&lt;BR /&gt;      IMPORTING&lt;BR /&gt;        handle          = lv_handle&lt;BR /&gt;      EXCEPTIONS&lt;BR /&gt;        not_connected   = 1&lt;BR /&gt;        OTHERS          = 2.&lt;BR /&gt;&lt;BR /&gt;    CONCATENATE wa_edidc-docnum '.xml'&lt;BR /&gt;    INTO lv_command.&lt;BR /&gt;&lt;BR /&gt;    CALL FUNCTION 'FTP_R3_TO_SERVER'&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        handle         = lv_handle&lt;BR /&gt;        fname          = lv_command&lt;BR /&gt;        character_mode = 'X'&lt;BR /&gt;      TABLES&lt;BR /&gt;        text           = gt_data_tab&lt;BR /&gt;      EXCEPTIONS&lt;BR /&gt;        tcpip_error    = 1&lt;BR /&gt;        command_error  = 2&lt;BR /&gt;        data_error     = 3&lt;BR /&gt;        OTHERS         = 4.&lt;BR /&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;      RAISE data_error.&lt;BR /&gt;    ENDIF.&lt;BR /&gt;&lt;BR /&gt;    CALL FUNCTION 'FTP_DISCONNECT'&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        handle = lv_handle.&lt;BR /&gt;&lt;BR /&gt;    CALL FUNCTION 'RFC_CONNECTION_CLOSE'&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        destination          = dest&lt;BR /&gt;      EXCEPTIONS&lt;BR /&gt;        destination_not_open = 1&lt;BR /&gt;        OTHERS               = 2.&lt;BR /&gt;  ENDIF.&lt;BR /&gt;ENDFORM.                        "download_xml&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Jan 2023 12:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-error-while-calling-fm-ftp-r3-to-server/m-p/12723723#M2019946</guid>
      <dc:creator>susrith2021</dc:creator>
      <dc:date>2023-01-24T12:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Data Error while calling FM FTP_R3_TO_SERVER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-error-while-calling-fm-ftp-r3-to-server/m-p/12723724#M2019947</link>
      <description>&lt;P&gt;Communication error, password error, URL error, software error, authorization error, ... Who knows?&lt;/P&gt;&lt;P&gt;By the way, you don't handle all the exceptions, and you also lose information about the exact reason like tcpip_error, command_error, etc.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Check that the FTP works by using the program RSFTP001. There are other RSFTP* utility programs.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 12:53:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-error-while-calling-fm-ftp-r3-to-server/m-p/12723724#M2019947</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-01-24T12:53:32Z</dc:date>
    </item>
  </channel>
</rss>

