<?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 error conversion 'u00E7' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error-conversion-u00e7/m-p/7390757#M1545385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eduardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if you wrote wrong only here or in your abap code too, but the code page is 1160, not 1106.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see this number with the FM NLS_GET_FRONTEND_CP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA: t_file TYPE STANDARD TABLE OF string.

  DATA: v_frontend_cp TYPE cpcodepage,
        v_codepage    TYPE abap_encod.

  CALL FUNCTION 'NLS_GET_FRONTEND_CP'
    EXPORTING
      langu                       = sy-langu
*     FETYPE                      = 'MS'
    IMPORTING
      frontend_codepage           = v_frontend_cp
    EXCEPTIONS
      illegal_syst_codepage       = 1
      no_frontend_cp_found        = 2
      internal_or_db_error        = 3
      others                      = 4.
  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.

  v_codepage = v_frontend_cp.

  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                      = 'C:\temp.txt'
      filetype                      = 'ASC'
      codepage                      = v_codepage
    TABLES
      data_tab                      = t_file
    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.
  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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if it solve your problem.. but try it anyway&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paulo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Nov 2010 11:39:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-05T11:39:30Z</dc:date>
    <item>
      <title>GUI_UPLOAD error conversion 'u00E7'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error-conversion-u00e7/m-p/7390751#M1545379</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 have a file to upload to an internal table  and i use GUI_UPLOAD function, i already try with filetype ASC and DAT but the words with CHAR 'Ç' as convert in 'A#' increase one CHAR in line on my internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone could help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo Paiva&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Nov 2010 11:32:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error-conversion-u00e7/m-p/7390751#M1545379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-04T11:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD error conversion 'u00E7'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error-conversion-u00e7/m-p/7390752#M1545380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is your system a unicode system?&lt;/P&gt;&lt;P&gt;what codepage did you enter in the parameters to GUI_UPLOAD?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Nov 2010 16:15:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error-conversion-u00e7/m-p/7390752#M1545380</guid>
      <dc:creator>JL23</dc:creator>
      <dc:date>2010-11-04T16:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD error conversion 'u00E7'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error-conversion-u00e7/m-p/7390753#M1545381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Eduardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using the fm it is recommended to use the static method&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_UPLOAD&lt;/STRONG&gt; (Unicode-compatibility). You may give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Nov 2010 16:22:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error-conversion-u00e7/m-p/7390753#M1545381</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2010-11-04T16:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD error conversion 'u00E7'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error-conversion-u00e7/m-p/7390754#M1545382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jürgen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"is your system a unicode system?"&lt;/P&gt;&lt;P&gt;How can i know that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"what codepage did you enter in the parameters to GUI_UPLOAD?"&lt;/P&gt;&lt;P&gt;i didn't enter any codepage, in my search a try to find which codepage number i had to put but i can´t find anything&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find a sap note 752835 with the following code, i try to implement but file_open_dialog didn't return codepage:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code example:&lt;/P&gt;&lt;P&gt;call method cl_gui_frontend_services=&amp;gt;file_open_dialog&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;WITH_ENCODING = 'X'&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;changing&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;FILE_ENCODING = l_encod&lt;/P&gt;&lt;P&gt;...&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;...&lt;/P&gt;&lt;P&gt;CODEPAGE = l_encod&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Eduard Paiva&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Nov 2010 16:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error-conversion-u00e7/m-p/7390754#M1545382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-04T16:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD error conversion 'u00E7'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error-conversion-u00e7/m-p/7390755#M1545383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eduardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is your SAP version?? try the code page '1160'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Paulo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Nov 2010 17:16:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error-conversion-u00e7/m-p/7390755#M1545383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-04T17:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD error conversion 'u00E7'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error-conversion-u00e7/m-p/7390756#M1545384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Paulo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My version of SAP is 4.7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I fill the function with codepage 1106 and show the results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GUI_UPLOAD without codepage 1106:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;word: SERVIÇO --&amp;gt; SERVIÃ#O&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GUI_UPLOAD with codepage 1106:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;word: SERVIÇO --&amp;gt; SERVI #O&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete the Ã and fill with space&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Eduardo Paiva&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 10:25:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error-conversion-u00e7/m-p/7390756#M1545384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-05T10:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD error conversion 'u00E7'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error-conversion-u00e7/m-p/7390757#M1545385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eduardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if you wrote wrong only here or in your abap code too, but the code page is 1160, not 1106.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see this number with the FM NLS_GET_FRONTEND_CP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA: t_file TYPE STANDARD TABLE OF string.

  DATA: v_frontend_cp TYPE cpcodepage,
        v_codepage    TYPE abap_encod.

  CALL FUNCTION 'NLS_GET_FRONTEND_CP'
    EXPORTING
      langu                       = sy-langu
*     FETYPE                      = 'MS'
    IMPORTING
      frontend_codepage           = v_frontend_cp
    EXCEPTIONS
      illegal_syst_codepage       = 1
      no_frontend_cp_found        = 2
      internal_or_db_error        = 3
      others                      = 4.
  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.

  v_codepage = v_frontend_cp.

  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                      = 'C:\temp.txt'
      filetype                      = 'ASC'
      codepage                      = v_codepage
    TABLES
      data_tab                      = t_file
    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.
  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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if it solve your problem.. but try it anyway&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paulo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 11:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error-conversion-u00e7/m-p/7390757#M1545385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-05T11:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD error conversion 'u00E7'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error-conversion-u00e7/m-p/7390758#M1545386</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;In function GUI_UPLOAD i put in codepage 4110 (UTF-8) and it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Eduardo Paiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 15:08:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error-conversion-u00e7/m-p/7390758#M1545386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T15:08:09Z</dc:date>
    </item>
  </channel>
</rss>

