<?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: create file on application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-application-server/m-p/2266398#M491829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can create a File in Application Server by using a program with &lt;/P&gt;&lt;P&gt; OPEN DATA SET INPUT  Statement &amp;amp; &lt;/P&gt;&lt;P&gt;OPEN DATA SET OUTPUT statement in the BDC program for retrivng the data ino Internal table in the BDC program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikram.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2007 09:25:19 GMT</pubDate>
    <dc:creator>vikram_maduri2</dc:creator>
    <dc:date>2007-05-15T09:25:19Z</dc:date>
    <item>
      <title>create file on application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-application-server/m-p/2266396#M491827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt; how to create a file on application server and use it in a bdc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In Advance&lt;/P&gt;&lt;P&gt;Assad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 09:19:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-application-server/m-p/2266396#M491827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T09:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: create file on application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-application-server/m-p/2266397#M491828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi u can create a file on app server using tcode CG3Z...&lt;/P&gt;&lt;P&gt;U CAN use that file in BDC by reading the file(read dataset.....) and uploading the data into an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Premalatha G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 09:22:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-application-server/m-p/2266397#M491828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T09:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: create file on application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-application-server/m-p/2266398#M491829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can create a File in Application Server by using a program with &lt;/P&gt;&lt;P&gt; OPEN DATA SET INPUT  Statement &amp;amp; &lt;/P&gt;&lt;P&gt;OPEN DATA SET OUTPUT statement in the BDC program for retrivng the data ino Internal table in the BDC program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikram.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 09:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-application-server/m-p/2266398#M491829</guid>
      <dc:creator>vikram_maduri2</dc:creator>
      <dc:date>2007-05-15T09:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: create file on application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-application-server/m-p/2266399#M491830</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 copy a local file from presentation server to the application server using transaction USS_FAS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ABAP code to create and write to a file:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check whether file already exists&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      OPEN DATASET g_out_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;      IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;File g_out_file already exists. Do not write to an existing file&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Error message        &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;        STOP.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;open outbound file for writing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      OPEN DATASET g_out_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;write detail record to outbound file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      LOOP AT t_iout INTO g_out.&lt;/P&gt;&lt;P&gt;        TRANSFER g_out TO g_out_file.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLOSE DATASET g_out_file.&lt;/P&gt;&lt;P&gt;      IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Success message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    CATCH cx_root INTO l_oref.&lt;/P&gt;&lt;P&gt;      l_text = l_oref-&amp;gt;get_text( ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;log free text message if exception is catched&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Error message      &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      STOP.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 09:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-application-server/m-p/2266399#M491830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T09:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: create file on application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-application-server/m-p/2266400#M491831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi assad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can directly upload the data in the Applocation layer with the help of transaction...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CG3Z is the transaction to upload data from Presentation server to Application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CG3Y is the transaction to upload data from Application server toPresentation server.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see whether the data has been uploaded or not thr Al11 transaction... an going on to that particular dierctly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for uploading the same data inthe internal table, yo have to use ..opendata set and close dataset...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jayant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 10:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-application-server/m-p/2266400#M491831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T10:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: create file on application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-application-server/m-p/2266401#M491832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;APPLICATION FILE CREATION.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Check whether file already exists vkont&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    OPEN DATASET c_filepath_fpb3 "/tmp/file_FI009_01_fpb3.txt&lt;/P&gt;&lt;P&gt;         FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    File c_filepath_fpb3 already exists then delete that file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      DELETE DATASET c_filepath_fpb3. "/tmp/file_FI009_01_fpb3.txt&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Open the filepath / dataset on the application server for writing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    OPEN DATASET c_filepath_fpb3  "/tmp/file_FI009_01_fpb3.txt&lt;/P&gt;&lt;P&gt;         FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Check if the OPEN has been successful&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Transfer file header data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TRANSFER wa_bfkkzgr00 TO c_filepath_fpb3.&lt;/P&gt;&lt;P&gt;           "/tmp/file_FI009_01_fpb3.txt&lt;/P&gt;&lt;P&gt;      CLEAR: wa_bfkkzgr00.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Transfer paymentlot header data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TRANSFER wa_bfkkzk TO c_filepath_fpb3.&lt;/P&gt;&lt;P&gt;           "/tmp/file_FI009_01_fpb3.txt&lt;/P&gt;&lt;P&gt;      CLEAR: wa_bfkkzk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT it_bfkkzp INTO wa_bfkkzp.&lt;/P&gt;&lt;P&gt;        TRANSFER wa_bfkkzp TO c_filepath_fpb3.&lt;/P&gt;&lt;P&gt;                       "/tmp/file_FI009_01_fpb3.txt&lt;/P&gt;&lt;P&gt;        CLEAR: wa_bfkkzp.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Close the dataset / filepath&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CLOSE DATASET c_filepath_fpb3.&lt;/P&gt;&lt;P&gt;              "/tmp/file_FI009_01_fpb3.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Call the report for creating the payment lots(Transaction FPB3)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Submit the data to park the document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    SUBMIT rfkkze00 WITH as_fname   = c_filepath_fpb3&lt;/P&gt;&lt;P&gt;                   "/tmp/file_FI009_01_fpb3.txt&lt;/P&gt;&lt;P&gt;                     AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 12:41:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-file-on-application-server/m-p/2266401#M491832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T12:41:37Z</dc:date>
    </item>
  </channel>
</rss>

