<?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: Uploading File in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/3597210#M866271</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 read the file in internal table just by mentioning only one field with maximum length or string.&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;STRONG&gt;Award Points If Useful&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Apr 2008 06:43:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-01T06:43:39Z</dc:date>
    <item>
      <title>Uploading File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/3597208#M866269</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;&lt;/P&gt;&lt;P&gt;I have to upload a file from application server into internal file.&lt;/P&gt;&lt;P&gt;The data in the file are not tab delimited, So Split at command will not work.&lt;/P&gt;&lt;P&gt;Since the exact length of each fileds are not known is there any other way to upload file into my internal table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dhurga R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 06:37:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/3597208#M866269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T06:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/3597209#M866270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;report zamtest&lt;/P&gt;&lt;P&gt;line-size 170&lt;/P&gt;&lt;P&gt;line-count 65 no standard page heading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : fname(30) value 'C:\ZFCHR1.TXT'.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : str(255).
open dataset fname for input in binary mode .
read dataset fname into itab.
do.
  if sy-subrc ne 0.
           exit.
  endif.
  append itab.
enddo
close dataset fname.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V.Balaji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if Usefull...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Balaji V on Apr 1, 2008 8:44 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 06:43:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/3597209#M866270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T06:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/3597210#M866271</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 read the file in internal table just by mentioning only one field with maximum length or string.&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;STRONG&gt;Award Points If Useful&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 06:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/3597210#M866271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T06:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/3597211#M866272</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;U want to split the data from the file and want to store it into an internal table. But for storing also it should be of TYPE of structure of the file . Find out the file contaits are of which TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because without knowing it's type,is is not possible to split and store.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anuja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 06:45:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/3597211#M866272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T06:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/3597212#M866273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;By using the following code,you can upload the flat file data &lt;/P&gt;&lt;P&gt;into internal table having one field of maximum size.&lt;/P&gt;&lt;P&gt;Later based on ur file u need use either place holders or split&lt;/P&gt;&lt;P&gt;functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: fname(25) VALUE 'd:\abap eve\file1.txt'.&lt;/P&gt;&lt;P&gt;DATA: str(255).&lt;/P&gt;&lt;P&gt;OPEN DATASET fname FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  WRITE:/ 'sorry'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;    READ DATASET fname INTO str.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      WRITE:/ str.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;ENDIF.&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;If you need complete code,just give me your flat file sample data.i will try to send full code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 06:58:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/3597212#M866273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T06:58:17Z</dc:date>
    </item>
  </channel>
</rss>

