<?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 in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-in-background/m-p/2496264#M563756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use destination SAPFTPA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;SAPFTP utilizes ftp from the desptop gui and SAPFTPA uses ftp from the application server. Since your job is running in the background SAPFTP would not work as there is no connection of a background job to the desktop gui. If you were to run your program in the foreground then SAPFTP would work.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at OSS &amp;lt;a href="https://service.sap.com/sap/support/notes/93042"&amp;gt;Note 93042 - Problems with SAPFTP&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jul 2007 12:42:36 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2007-07-16T12:42:36Z</dc:date>
    <item>
      <title>FTP in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-in-background/m-p/2496263#M563755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi freinds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement, where data needs to be download to an ftp server hourly basis. So i have written a programs and used to ftp the text file in to FTP server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue the ftp programs is working fine in the foreground, but it is not working in background.  What do I have to do. With here I am attaching the FTP part pf the program which I used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help on this, thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Thanura&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE(132) TYPE C,&lt;/P&gt;&lt;P&gt;END OF MTAB_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: MC_PASSWORD(20) TYPE C,&lt;/P&gt;&lt;P&gt;MI_KEY TYPE I VALUE 26101957,&lt;/P&gt;&lt;P&gt;MI_PWD_LEN TYPE I,&lt;/P&gt;&lt;P&gt;MI_HANDLE TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MC_PASSWORD = 'password'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE FIELD MC_PASSWORD LENGTH MI_PWD_LEN IN CHARACTER MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- FTP_CONNECT requires an encrypted password to work&lt;/P&gt;&lt;P&gt;CALL 'AB_RFC_X_SCRAMBLE_STRING'&lt;/P&gt;&lt;P&gt;     ID 'SOURCE' FIELD MC_PASSWORD ID 'KEY' FIELD MI_KEY&lt;/P&gt;&lt;P&gt;     ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD MC_PASSWORD&lt;/P&gt;&lt;P&gt;     ID 'DSTLEN' FIELD MI_PWD_LEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FTP_CONNECT'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       USER            = 'thanura'&lt;/P&gt;&lt;P&gt;       PASSWORD        = MC_PASSWORD&lt;/P&gt;&lt;P&gt;       HOST            = &amp;lt;server ip&amp;gt;'&lt;/P&gt;&lt;P&gt;       RFC_DESTINATION = 'SAPFTP'&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       HANDLE          = MI_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;&lt;/P&gt;&lt;P&gt;CHECK SY-SUBRC = 0.&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 = MI_HANDLE&lt;/P&gt;&lt;P&gt;       COMMAND = 'cd /usr/sap/dbi/'&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;       DATA = MTAB_DATA&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;       OTHERS = 4.&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 = MI_HANDLE&lt;/P&gt;&lt;P&gt;       COMMAND = &amp;lt;get the file&amp;gt;&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;       DATA = MTAB_DATA&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;       OTHERS = 4.&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 = MI_HANDLE&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       OTHERS = 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 11:04:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-in-background/m-p/2496263#M563755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-16T11:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: FTP in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-in-background/m-p/2496264#M563756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use destination SAPFTPA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;SAPFTP utilizes ftp from the desptop gui and SAPFTPA uses ftp from the application server. Since your job is running in the background SAPFTP would not work as there is no connection of a background job to the desktop gui. If you were to run your program in the foreground then SAPFTP would work.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at OSS &amp;lt;a href="https://service.sap.com/sap/support/notes/93042"&amp;gt;Note 93042 - Problems with SAPFTP&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 12:42:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-in-background/m-p/2496264#M563756</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-07-16T12:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: FTP in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-in-background/m-p/2496265#M563757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For backgroud FTP we have SAPFTPA as RFC destination..&lt;/P&gt;&lt;P&gt;Use that..&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>Mon, 16 Jul 2007 13:18:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-in-background/m-p/2496265#M563757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-16T13:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: FTP in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-in-background/m-p/2496266#M563758</link>
      <description>&lt;P&gt;Please give a solution to my foreground job working and I added in logic SAPFTA also but file not transferring background working but file not transfer to FileZilla FTP.&lt;/P&gt;&lt;P&gt;93042 - Problems with SAP FTP whether its will works  if I implement SAP note 93042 for background job.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 12:55:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-in-background/m-p/2496266#M563758</guid>
      <dc:creator>amolnamjoshi_1</dc:creator>
      <dc:date>2019-10-30T12:55:46Z</dc:date>
    </item>
  </channel>
</rss>

