<?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: GUI_UPLOAD file upload. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-file-upload/m-p/5611904#M1278788</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check the following code......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_load,&lt;/P&gt;&lt;P&gt;       text type string,&lt;/P&gt;&lt;P&gt;       end of ty_load.&lt;/P&gt;&lt;P&gt;data: i_load type table of ty_load       ,&lt;/P&gt;&lt;P&gt;      w_load type ty_load.&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                      = 'C:\Documents and Settings\rk56944\Desktop\test.txt'&lt;/P&gt;&lt;P&gt;         FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;          DATA_TAB                      = i_load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 May 2009 07:34:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-22T07:34:29Z</dc:date>
    <item>
      <title>GUI_UPLOAD file upload.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-file-upload/m-p/5611902#M1278786</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 am reading a text file using GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;but agter reading the file when i am looking into table its reading upto only position 256 of each line.&lt;/P&gt;&lt;P&gt;i need to read full line upto position 500 of the text file .. please guide me in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx&lt;/P&gt;&lt;P&gt;vikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 07:14:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-file-upload/m-p/5611902#M1278786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-22T07:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD file upload.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-file-upload/m-p/5611903#M1278787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont take the internal table as fields, take it as char or string.&lt;/P&gt;&lt;P&gt;In the upload program u can split into the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     BEGIN OF gi_text OCCURS 0,&lt;/P&gt;&lt;P&gt;        champ(3000),&lt;/P&gt;&lt;P&gt;     END OF gi_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call upload FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = gi_text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You take string also instead of char and try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Santosh Marupally on May 22, 2009 9:20 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 07:20:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-file-upload/m-p/5611903#M1278787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-22T07:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD file upload.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-file-upload/m-p/5611904#M1278788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check the following code......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_load,&lt;/P&gt;&lt;P&gt;       text type string,&lt;/P&gt;&lt;P&gt;       end of ty_load.&lt;/P&gt;&lt;P&gt;data: i_load type table of ty_load       ,&lt;/P&gt;&lt;P&gt;      w_load type ty_load.&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                      = 'C:\Documents and Settings\rk56944\Desktop\test.txt'&lt;/P&gt;&lt;P&gt;         FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;          DATA_TAB                      = i_load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 07:34:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-file-upload/m-p/5611904#M1278788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-22T07:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD file upload.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-file-upload/m-p/5611905#M1278789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;while declaring the field declare it with  type string.&lt;/P&gt;&lt;P&gt;eg: types: begin of  t_text,&lt;/P&gt;&lt;P&gt;               lines type string,&lt;/P&gt;&lt;P&gt;               end of t_text.&lt;/P&gt;&lt;P&gt;data: it_text type table of t_text with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call the FM GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the table parameter you will get the complete data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 07:39:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-file-upload/m-p/5611905#M1278789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-22T07:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD file upload.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-file-upload/m-p/5611906#M1278790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vikash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to increase the size of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like suppose you have internal table ITAB it contans 3 fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;text(500) type c, " here you downloading the text so check the length&lt;/P&gt;&lt;P&gt;line_num type i,&lt;/P&gt;&lt;P&gt;pname(30) type c,&lt;/P&gt;&lt;P&gt;end of itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : p_file type string.&lt;/P&gt;&lt;P&gt;p_file = 'c:\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                      = p_file&lt;/P&gt;&lt;P&gt;  FILETYPE                      = 'DAT'            " check formt either DAT or ASC or DBF&lt;/P&gt;&lt;P&gt; HAS_FIELD_SEPARATOR           = 'X '&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;   NO_AUTHORITY                  = 6&lt;/P&gt;&lt;P&gt;   UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;P&gt;   BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;P&gt;   HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;P&gt;   SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;P&gt;   HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;P&gt;   UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;P&gt;   ACCESS_DENIED                 = 13&lt;/P&gt;&lt;P&gt;   DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;P&gt;   DISK_FULL                     = 15&lt;/P&gt;&lt;P&gt;   DP_TIMEOUT                    = 16&lt;/P&gt;&lt;P&gt;   OTHERS                        = 17&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will helpfull for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 07:40:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-file-upload/m-p/5611906#M1278790</guid>
      <dc:creator>umashankar_sahu</dc:creator>
      <dc:date>2009-05-22T07:40:34Z</dc:date>
    </item>
  </channel>
</rss>

