<?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+HAS_FIELD_SEPARATOR in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-has-field-separator/m-p/7848786#M1591765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you very much for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works now .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2011 10:24:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-16T10:24:21Z</dc:date>
    <item>
      <title>GUI_UPLOAD+HAS_FIELD_SEPARATOR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-has-field-separator/m-p/7848779#M1591758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my program, I use the fm GUI_UPLOAD to upload the flat file which separator is the pipe(|).&lt;/P&gt;&lt;P&gt;Exemple of line :  AAA|BBB|CCC|DDD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HAS_FIELD_SEPARATOR='|' not working, so how can i use this fm and define SEPARATOR  as pipe .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank  in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 11:24:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-has-field-separator/m-p/7848779#M1591758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-13T11:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD+HAS_FIELD_SEPARATOR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-has-field-separator/m-p/7848780#M1591759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;keep the has field seperator as 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pawan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 11:26:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-has-field-separator/m-p/7848780#M1591759</guid>
      <dc:creator>pawan_rai</dc:creator>
      <dc:date>2011-05-13T11:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD+HAS_FIELD_SEPARATOR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-has-field-separator/m-p/7848781#M1591760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your repply &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i keep it as 'X' it will be defined as space .. so fm can't interpret file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 11:29:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-has-field-separator/m-p/7848781#M1591760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-13T11:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD+HAS_FIELD_SEPARATOR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-has-field-separator/m-p/7848782#M1591761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The GUI_UPLOAD function recognize only tab delimeted files when you pas 'X' at parameter&lt;/P&gt;&lt;P&gt;HAS_FIELD_SEPARATOR&lt;/P&gt;&lt;P&gt;try FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'FILE_READ_AND_CONVERT_SAP_DATA'
      EXPORTING
        I_FILENAME                 = S_IFILE
        I_SERVERTYP                =  'PPRS' "GUI UPLOAD
*       i_fileformat                = SFILEFORMAT
         I_FIELD_SEPERATOR          = ';'
*     I_LINE_HEADER              =
*   IMPORTING
*     E_BIN_FILELENGTH           =
   TABLES
     I_TAB_RECEIVER             = I_TABLE
   EXCEPTIONS
     FILE_NOT_FOUND             = 1
     CLOSE_FAILED               = 2
     AUTHORIZATION_FAILED       = 3
     OPEN_FAILED                = 4
     CONVERSION_FAILED          = 5
     OTHERS                     = 6 .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 11:38:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-has-field-separator/m-p/7848782#M1591761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-13T11:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD+HAS_FIELD_SEPARATOR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-has-field-separator/m-p/7848783#M1591762</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;   I believe the field separator parameter will work for Excel files..You have to get the internal table in a string format..and then use split statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Use the below code it work for me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF it_tab OCCURS 0,&lt;/P&gt;&lt;P&gt;       object_id TYPE string,&lt;/P&gt;&lt;P&gt;       version_series_id TYPE string,&lt;/P&gt;&lt;P&gt;       version_number TYPE string,&lt;/P&gt;&lt;P&gt;       revision TYPE string,&lt;/P&gt;&lt;P&gt;       doc_number TYPE string,&lt;/P&gt;&lt;P&gt;       doctitle TYPE string,&lt;/P&gt;&lt;P&gt;       filesize TYPE string,&lt;/P&gt;&lt;P&gt;       mime_type TYPE string,&lt;/P&gt;&lt;P&gt;       plantunit TYPE string,&lt;/P&gt;&lt;P&gt;     END OF it_tab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: t_tab   TYPE TABLE OF string,&lt;/P&gt;&lt;P&gt;      v_string TYPE string.&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:\TEST.TXT'&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   has_field_separator     = '|'          "Actually not required.*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab                = t_tab&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;IF sy-subrc  0.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOOP AT t_tab INTO v_string.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;SPLIT v_string AT '|'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;INTO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;it_tab-object_id&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;it_tab-version_series_id&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;it_tab-version_number&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;it_tab-revision&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;it_tab-doc_number&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;it_tab-doctitle&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;it_tab-filesize&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;it_tab-mime_type&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;it_tab-plantunit.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;APPEND it_tab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;CLEAR: it_tab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDLOOP.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;DHina..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dhina DMD on May 13, 2011 1:41 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dhina DMD on May 13, 2011 1:47 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 11:40:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-has-field-separator/m-p/7848783#M1591762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-13T11:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD+HAS_FIELD_SEPARATOR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-has-field-separator/m-p/7848784#M1591763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to know what's the type of V_STRING because i have the error :&lt;STRONG&gt;" a line of "t_tab" and "V_STRING" are not mutually convertible in a unicode program"&lt;/STRONG&gt; when i try to do the same but the type STRING not work i think&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i have  another field with data type is QUAN in my internal table!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anouar ANNOUCH on May 13, 2011 6:29 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anouar ANNOUCH on May 14, 2011 12:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 16:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-has-field-separator/m-p/7848784#M1591763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-13T16:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD+HAS_FIELD_SEPARATOR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-has-field-separator/m-p/7848785#M1591764</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;   The t_tab and V_STRING are string type only. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF it_tab OCCURS 0,&lt;/P&gt;&lt;P&gt;object_id TYPE string,&lt;/P&gt;&lt;P&gt;version_series_id TYPE string,&lt;/P&gt;&lt;P&gt;version_number TYPE string,&lt;/P&gt;&lt;P&gt;revision TYPE string,&lt;/P&gt;&lt;P&gt;doc_number TYPE string,&lt;/P&gt;&lt;P&gt;doctitle TYPE string,&lt;/P&gt;&lt;P&gt;filesize TYPE string,&lt;/P&gt;&lt;P&gt;mime_type TYPE string,&lt;/P&gt;&lt;P&gt;plantunit TYPE string,&lt;/P&gt;&lt;P&gt;END OF it_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the t_tab should contains only character format or string format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA: t_tab TYPE TABLE OF string,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;v_string TYPE string.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have the Quantity field in you internal table you can change the type like character format or string format. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After calling the GUI_UPLOAD function  module the t_tab contains all the records of what is there in the flat file.&lt;/P&gt;&lt;P&gt;v_string is for work area for the internal table t_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have the quantity field in the internal table change it into character field. Why because split statement is working only &lt;/P&gt;&lt;P&gt;C, N format only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhina..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dhina DMD on May 14, 2011 1:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 May 2011 11:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-has-field-separator/m-p/7848785#M1591764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-14T11:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD+HAS_FIELD_SEPARATOR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-has-field-separator/m-p/7848786#M1591765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you very much for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works now .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 10:24:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-has-field-separator/m-p/7848786#M1591765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-16T10:24:21Z</dc:date>
    </item>
  </channel>
</rss>

