<?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 Reg: Transferring data from internal table to Application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-transferring-data-from-internal-table-to-application-server/m-p/3816525#M917925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i transfer data from internal table to a file in application server without using open dataset, close dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2008 08:37:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-21T08:37:47Z</dc:date>
    <item>
      <title>Reg: Transferring data from internal table to Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-transferring-data-from-internal-table-to-application-server/m-p/3816525#M917925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i transfer data from internal table to a file in application server without using open dataset, close dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 08:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-transferring-data-from-internal-table-to-application-server/m-p/3816525#M917925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T08:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Transferring data from internal table to Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-transferring-data-from-internal-table-to-application-server/m-p/3816526#M917926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JUst use FM GUI_DOWNLOAD and try...i guess it will throw a error    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since no FM resides in the application server..its not possible i think...Open data sets work fine in this case..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 08:40:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-transferring-data-from-internal-table-to-application-server/m-p/3816526#M917926</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-05-21T08:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Transferring data from internal table to Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-transferring-data-from-internal-table-to-application-server/m-p/3816527#M917927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have no option other than OPENDATA SET to store the data of your internal table to your appl server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 08:42:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-transferring-data-from-internal-table-to-application-server/m-p/3816527#M917927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T08:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Transferring data from internal table to Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-transferring-data-from-internal-table-to-application-server/m-p/3816528#M917928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt; I guess it wont work if you dont use Open Dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To write data to a file on the application server, use the TRANSFER statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Syntax&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TRANSFER &amp;lt;f&amp;gt; to &amp;lt;dsn&amp;gt; [LENGTH &amp;lt;len&amp;gt;].&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This statement writes the values of the field &amp;lt;f&amp;gt; into the file &amp;lt;dsn&amp;gt;. You can specify the transfer mode in the OPEN DATASET statement. If you have not already opened the file for writing, the system tries to open it either in binary mode, or using the additions from the last OPEN DATASET statement. However, it is good practice only to open files using the OPEN DATASET statement. For further information about the OPEN DATASET statement and the naming conventions for files, refer to Opening a File. &amp;lt;f&amp;gt; can have an elementary data type, but may also be a structure, as long as it does not contain an internal table. You cannot write internal tables into files in a single step. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can specify the length of the data you want to transfer using the LENGTH addition. The system then transfers the first &amp;lt;len&amp;gt; bytes into the file. If &amp;lt;len&amp;gt; is too short, excess bytes are truncated. If &amp;lt;len&amp;gt; is greater than the length of the field, the system adds trailing blanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following program shows how you can write internal tables into a file: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA FNAME(60) VALUE 'myfile'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF LINE,&lt;/P&gt;&lt;P&gt;         COL1 TYPE I,&lt;/P&gt;&lt;P&gt;         COL2 TYPE I,&lt;/P&gt;&lt;P&gt;       END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES  ITAB TYPE LINE OCCURS 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: LIN TYPE LINE,&lt;/P&gt;&lt;P&gt;      TAB TYPE ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 5 TIMES.&lt;/P&gt;&lt;P&gt;  LIN-COL1 = SY-INDEX.&lt;/P&gt;&lt;P&gt;  LIN-COL2 = SY-INDEX ** 2.&lt;/P&gt;&lt;P&gt;  APPEND LIN TO TAB.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET FNAME FOR OUTPUT.&lt;/P&gt;&lt;P&gt;LOOP AT TAB INTO LIN.&lt;/P&gt;&lt;P&gt;  TRANSFER LIN TO FNAME.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;CLOSE DATASET FNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET FNAME FOR INPUT.&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;  READ DATASET FNAME INTO LIN.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  WRITE: / LIN-COL1, LIN-COL2.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET FNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 1&lt;/P&gt;&lt;P&gt;2 4&lt;/P&gt;&lt;P&gt;3 9&lt;/P&gt;&lt;P&gt;4 16&lt;/P&gt;&lt;P&gt;5 25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example, a structure LIN and an internal table TAB with line type LINE are created. Once the internal table TAB has been filled, it is written line by line into the file "myfile". The file is then read into the structure LIN, whose contents are displayed on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward If Helpfull,&lt;/P&gt;&lt;P&gt; Naresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 08:42:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-transferring-data-from-internal-table-to-application-server/m-p/3816528#M917928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T08:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Transferring data from internal table to Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-transferring-data-from-internal-table-to-application-server/m-p/3816529#M917929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TABLES: BSEG.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*DATA: BEGIN OF INT_TAB OCCURS 1000.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       INCLUDE STRUCTURE BSEG.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*DATA:      END OF INT_TAB.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*DATA:W_DATASET(50) VALUE '/USERS/TESTDAT.TXT'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*SELECT * FROM BSEG INTO TABLE INT_TAB WHERE GJAHR = '1996'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*OPEN DATASET W_DATASET FOR OUTPUT IN TEXT MODE.&lt;/P&gt;&lt;P&gt;*LOOP AT INT_TAB.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; TRANSFER INT_TAB TO w_dataset.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*ENDLOOP.&lt;/P&gt;&lt;P&gt;*CLOSE DATASET W_DATASET.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 08:48:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-transferring-data-from-internal-table-to-application-server/m-p/3816529#M917929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T08:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Transferring data from internal table to Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-transferring-data-from-internal-table-to-application-server/m-p/3816530#M917930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got a very simple procedure for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First download the flat file into a file in presentation server using &lt;STRONG&gt;GUI_DOWNLOAD.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then using the tcode &lt;STRONG&gt;CG3Z&lt;/STRONG&gt; you can put that file into the application server . You just need to give the source and destination file names in that tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward if useful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Khan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 08:48:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-transferring-data-from-internal-table-to-application-server/m-p/3816530#M917930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T08:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Transferring data from internal table to Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-transferring-data-from-internal-table-to-application-server/m-p/3816531#M917931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;very good khan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;uday&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 09:36:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-transferring-data-from-internal-table-to-application-server/m-p/3816531#M917931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T09:36:04Z</dc:date>
    </item>
  </channel>
</rss>

