<?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: Problem in GUI_upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-upload/m-p/4730468#M1110210</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;  Are you giving the exporting parameter HAS_FIELD_SEPARATOR = 'X' ?&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_filename&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'ASC'&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                      = t_output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Oct 2008 06:40:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-31T06:40:11Z</dc:date>
    <item>
      <title>Problem in GUI_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-upload/m-p/4730465#M1110207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the FM GUI_upload to upload a .txt tab seperated&lt;/P&gt;&lt;P&gt;file .&lt;/P&gt;&lt;P&gt;when when the FM executes i am finding that the internal table&lt;/P&gt;&lt;P&gt;does not hold all the values in the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i ckecked and the no of fields and their type is equal in both the internal table and the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what could be the reason for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 06:34:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-upload/m-p/4730465#M1110207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T06:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in GUI_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-upload/m-p/4730466#M1110208</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;PRE&gt;&lt;CODE&gt;what could be the reason for this?&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find out the reason..with the help of a tool called Debugging. The best tool an ABAPer can get..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just debug right from the start...and see in the FM...whats happening..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 06:38:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-upload/m-p/4730466#M1110208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T06:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in GUI_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-upload/m-p/4730467#M1110209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;Check out the other sample program to upload the data into the xls file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZCC_EXCEL_UPLOAD.
type-pools: truxs.
data:p_file type RLGRAP-FILENAME.
p_file = 'H:\INT221\testmat1.xlsx'.

*data : sw_string type string.
*sw_string = 'H:\INT221\testmat1.xlsx'.

*p_file = sw_string .



types:begin of t_mara,
    matnr(10) ,
    end of t_mara.
data:it_tab type standard table of t_mara with header line.
data:w_tab type TRUXS_T_TEXT_DATA.



CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
  EXPORTING
*   I_FIELD_SEPERATOR          =
   I_LINE_HEADER              = 'X'
    i_tab_raw_data             = w_tab
    i_filename                 = p_file
    tables
    i_tab_converted_data       = it_tab
* EXCEPTIONS
*   CONVERSION_FAILED          = 1
*   OTHERS                     = 2
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.


loop at it_tab.
write:/ it_tab-matnr.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chidanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 06:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-upload/m-p/4730467#M1110209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T06:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in GUI_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-upload/m-p/4730468#M1110210</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;  Are you giving the exporting parameter HAS_FIELD_SEPARATOR = 'X' ?&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_filename&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'ASC'&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                      = t_output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 06:40:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-gui-upload/m-p/4730468#M1110210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T06:40:11Z</dc:date>
    </item>
  </channel>
</rss>

