<?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 Create file on FTP server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-ftp-server/m-p/4002957#M956358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hy gurus,&lt;/P&gt;&lt;P&gt;It's possible to create a file on FTP server from internal table? How I can do it?&lt;/P&gt;&lt;P&gt;I've created an internal table in my program and I've to create a file in a specific path on FTP server.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jun 2008 08:27:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-13T08:27:43Z</dc:date>
    <item>
      <title>Create file on FTP server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-ftp-server/m-p/4002957#M956358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hy gurus,&lt;/P&gt;&lt;P&gt;It's possible to create a file on FTP server from internal table? How I can do it?&lt;/P&gt;&lt;P&gt;I've created an internal table in my program and I've to create a file in a specific path on FTP server.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 08:27:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-ftp-server/m-p/4002957#M956358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T08:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create file on FTP server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-ftp-server/m-p/4002958#M956359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this :&lt;/P&gt;&lt;P&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="5485730"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 08:31:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-ftp-server/m-p/4002958#M956359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T08:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create file on FTP server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-ftp-server/m-p/4002959#M956360</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;To read the SAP data from FTP server or vice versa, you need to configure the sender file/FTP adapter. But you should keep one thing in mind that this is possible only when files aren't read only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You configure the adapter on the Parameters tab page during the definition of a communication channel in the Integration Server or in the PCK. In addition to the adapter configuration, you can use the Module tab page in the module processor to specify generic modules, which give the adapter additional functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more details you can go through the thread below:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would be some help!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit Kabra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 08:31:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-ftp-server/m-p/4002959#M956360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T08:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create file on FTP server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-ftp-server/m-p/4002960#M956361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;You can write in to a file using :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get file path from transaction: FILE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 08:32:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-ftp-server/m-p/4002960#M956361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T08:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create file on FTP server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-ftp-server/m-p/4002961#M956362</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;you can use OPEN DATASET and CLOSE DATASET to create file on FTP server.The data from your internal table will be created in csv format on the application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;         i_field_seperator    = ';'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        I_LINE_HEADER        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        I_FILENAME           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        I_APPL_KEEP          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          i_tab_sap_data       = it_zproj_site_detl&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;         i_tab_converted_data =  it_trans&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        CONVERSION_FAILED    = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        OTHERS               = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e000(yw) WITH 'Data not Avilable for Selection Criteria.'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE paramval  FROM zmm_params&lt;/P&gt;&lt;P&gt;    INTO path&lt;/P&gt;&lt;P&gt;    WHERE pgmna = 'ZBTS_SAP_CLARITY'&lt;/P&gt;&lt;P&gt;    AND paramid = 'PATH'&lt;/P&gt;&lt;P&gt;    AND fromdt &amp;lt;= sy-datum&lt;/P&gt;&lt;P&gt;    AND todt &amp;gt;= sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-MANDT EQ '300'.&lt;/P&gt;&lt;P&gt;    path = '/statd40/'.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONDENSE path.&lt;/P&gt;&lt;P&gt;  CONCATENATE path 'SAPSITE_' sy-datum '.CSV' INTO dsn.&lt;/P&gt;&lt;P&gt;  CONDENSE dsn.&lt;/P&gt;&lt;P&gt;  OPEN DATASET dsn FOR OUTPUT IN TEXT MODE.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    LOOP AT it_trans INTO wt_trans.&lt;/P&gt;&lt;P&gt;      CLEAR line.&lt;/P&gt;&lt;P&gt;      TRANSLATE wt_trans-truxs_t_text_data USING ';,'.&lt;/P&gt;&lt;P&gt;      MOVE wt_trans-truxs_t_text_data TO line.&lt;/P&gt;&lt;P&gt;      TRANSFER line TO dsn.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;    CLOSE DATASET dsn.&lt;/P&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;    CLEAR : cmdtxt.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; concatenate 'chmod 777' '/infocomm/mm/getfile' into&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CONCATENATE  'chmod 777' dsn INTO&lt;/P&gt;&lt;P&gt;                        cmdtxt SEPARATED BY space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL 'SYSTEM' ID 'COMMAND' FIELD cmdtxt&lt;/P&gt;&lt;P&gt;                  ID 'TAB'     FIELD i_tty[].&lt;/P&gt;&lt;P&gt;    MESSAGE i001(yw) WITH 'File is downloaded successfully'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is an example code wher fle is downloaded to the application server and we are converting this file to csv format and then using open dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 08:51:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-ftp-server/m-p/4002961#M956362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T08:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create file on FTP server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-ftp-server/m-p/4002962#M956363</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;Go through the link given below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikunj Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 09:02:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-ftp-server/m-p/4002962#M956363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T09:02:45Z</dc:date>
    </item>
  </channel>
</rss>

