<?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: file upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118578#M443749</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can have intenal table of type string in which you can upload data of various data types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types:&lt;/P&gt;&lt;P&gt;BEGIN OF t_file,&lt;/P&gt;&lt;P&gt;    content TYPE string,&lt;/P&gt;&lt;P&gt;  END OF t_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and  then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: i_file type standard table of t_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then upload the data in internal table  i_file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2007 08:30:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-04T08:30:17Z</dc:date>
    <item>
      <title>file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118574#M443745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gurus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i have to upload this the below file into an internal table but the data in the flat file is different data types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;				310	320	330	340	350	360	370	380	390	400	410	420	430	440	450&lt;/P&gt;&lt;P&gt;70000000510	Vinay	31.03.2007	76	11.24	11.25	11.26	11.27	11.28	11.29	Guest	Room	meter recording abnormally high due to internal component failure.	89	VINAY1	120	CTS 400	KTS 200	PTS 300&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz suggest how to upload into internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;alson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 07:52:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118574#M443745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T07:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118575#M443746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alson,&lt;/P&gt;&lt;P&gt;  Let it be. Have all the fields as character types (of sufficient lenghts), then you can move them to another winternal table with columns of appropriate data types.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 07:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118575#M443746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T07:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118576#M443747</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;data:&lt;/P&gt;&lt;P&gt; begin of itab,&lt;/P&gt;&lt;P&gt;   f1 type string,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now upload file using 'GUI_UPLOAD' into itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 07:56:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118576#M443747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T07:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118577#M443748</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;Take an internal table of type string...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following code......&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: BEGIN OF TEST OCCURS 0,&lt;/P&gt;&lt;P&gt;        CARRID TYPE STRING,&lt;/P&gt;&lt;P&gt;      END OF TEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   FILENAME                      = FILE NAME&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILETYPE                      = 'ASC'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HAS_FIELD_SEPARATOR           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_LENGTH                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  READ_BY_LINE                  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DAT_MODE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IGNORE_CERR                   = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REPLACEMENT                   = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CHECK_BOM                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VIRUS_SCAN_PROFILE            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = TEST&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;  FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_READ_ERROR               = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_BATCH                      = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVALID_TYPE                  = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_AUTHORITY                  = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACCESS_DENIED                 = 13&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DISK_FULL                     = 15&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DP_TIMEOUT                    = 16&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                        = 17&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;LOOP AT TEST.&lt;/P&gt;&lt;P&gt;WRITE TEST-CARRID.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.......&lt;/P&gt;&lt;P&gt;Suresh..........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 08:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118577#M443748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T08:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118578#M443749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can have intenal table of type string in which you can upload data of various data types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types:&lt;/P&gt;&lt;P&gt;BEGIN OF t_file,&lt;/P&gt;&lt;P&gt;    content TYPE string,&lt;/P&gt;&lt;P&gt;  END OF t_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and  then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: i_file type standard table of t_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then upload the data in internal table  i_file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 08:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118578#M443749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T08:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118579#M443750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;           i have done the chnages wht u suggested but still its not working. our client is using 4.6B version. Can u suggest something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;alson.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 11:28:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118579#M443750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T11:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118580#M443751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           I did the same as u mentioned but still i am unable to uplaod the data.My clint is still using 4.6B version. Is this version problem? guys plz help me to solve this problem bcz its urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;alson.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 05:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118580#M443751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T05:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118581#M443752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u post ur code??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just declare all the fields inm ur internal tables of type char, and then use GUI_UPLOAD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 05:18:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118581#M443752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T05:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118582#M443753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shekar,&lt;/P&gt;&lt;P&gt;              Thanks for the reply. The thing is i have to upload a file which is this type--&lt;/P&gt;&lt;P&gt;                        310	320	330	340	350	360	370	380	390	400	410	420	430	440	450&lt;/P&gt;&lt;P&gt;70000000510	Vinay	31.03.2007	76	11.24	11.25	11.26	11.27	11.28	11.29	Guest	Room	meter recording abnormally high due to internal component failure.	89	VINAY1	120	CTS 400	KTS 200	PTS 300&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then i have to move to anothe internal table. the above filelds are of diferent data types. wht iam trying to do is upload all the data into an internal table with single field and then move to another internal table by splitting. The end user has the file of this type. plz suggest a good solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 05:25:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118582#M443753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T05:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118583#M443754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We need to re-view your code to see what is actually wrong. All the people posted in this thread is the correct way to do an upload, without your code, we cannot determine what is actually wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best is that you could open your raw file in an excel, and save as tab delimited text file. Declare your internal table in such a way that all fields should only accept character values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    filename                      = l_file_path
    HAS_FIELD_SEPARATOR           = 'X'
  tables
    data_tab                      = li_my_internal_table
 EXCEPTIONS
   FILE_OPEN_ERROR               = 1
   FILE_READ_ERROR               = 2
   NO_BATCH                      = 3
   GUI_REFUSE_FILETRANSFER       = 4
   INVALID_TYPE                  = 5
   NO_AUTHORITY                  = 6
   UNKNOWN_ERROR                 = 7
   BAD_DATA_FORMAT               = 8
   HEADER_NOT_ALLOWED            = 9
   SEPARATOR_NOT_ALLOWED         = 10
   HEADER_TOO_LONG               = 11
   UNKNOWN_DP_ERROR              = 12
   ACCESS_DENIED                 = 13
   DP_OUT_OF_MEMORY              = 14
   DISK_FULL                     = 15
   DP_TIMEOUT                    = 16
   OTHERS                        = 17
          .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 05:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118583#M443754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T05:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118584#M443755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data : begin of itab occurs 0,
            field(1000),
         end of itab.

data : begin of it_final occurs 0,
            field1(10),
            field2(15),
            ......
         end of it_final.

* use gui_upload   and populate the data in itab

then

loop at itab.
  it_final-field1 = itab-field+0(10).
  it_final-field2 = itab-field+10(15).
 .............
 ......
  append it_final.
  clear it_final.
endloop&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 05:32:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118584#M443755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T05:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118585#M443756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi shekar,&lt;/P&gt;&lt;P&gt;               I did the same . i am pasting copy of my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;      v_str TYPE xstring,&lt;/P&gt;&lt;P&gt;          END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            filename                = p_fname&lt;/P&gt;&lt;P&gt;            filetype                = 'DAT'&lt;/P&gt;&lt;P&gt;            has_field_separator     = 'X'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            filelength              = v_length&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            data_tab                = itab&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            file_open_error         = 1&lt;/P&gt;&lt;P&gt;            file_read_error         = 2&lt;/P&gt;&lt;P&gt;            no_batch                = 3&lt;/P&gt;&lt;P&gt;            gui_refuse_filetransfer = 4&lt;/P&gt;&lt;P&gt;            invalid_type            = 5&lt;/P&gt;&lt;P&gt;            OTHERS                  = 6.&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;I am unable to upload the file the format is in earlier message. once this is done i will be able to move data to another internal table in which all the fields will be of character type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;alson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 05:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118585#M443756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T05:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118586#M443757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Whats the name of ur file ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. change ur itab declaration to this and try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;   DATA: BEGIN OF itab OCCURS 0,
v_str(1000),
END OF itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 05:58:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118586#M443757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T05:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118587#M443758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shekar ,&lt;/P&gt;&lt;P&gt;             its a text file. i have even tried this earlier. but of no use anyhow i will try once again. plz send any code if u have of similar type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;alson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 06:03:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118587#M443758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T06:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118588#M443759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Check the S-SUBRC value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. pls post the full path of ur filename&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 06:05:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118588#M443759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T06:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118589#M443760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi shekar,&lt;/P&gt;&lt;P&gt;             the file path is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; C:\Documents and Settings\agtech-swagatika\Desktop\bdc.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; sy-subrc is 0 only. Its taking blank values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me a solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;alson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 06:15:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118589#M443760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T06:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118590#M443761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi shekar,&lt;/P&gt;&lt;P&gt;                now my upload problem is solved. I chaged the file type from DAT to BIN/ASC. The present data in my inernal table is like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  310#320#330#340#350#360#370#380#390#400#410#420#430#440#450##70000000510#Vinay#31.03.2007#76#11.24#11.25#11.26#11.27#1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz tell me how to move this data to another internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;alson.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 09:15:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/2118590#M443761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T09:15:52Z</dc:date>
    </item>
  </channel>
</rss>

