<?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 - Problem in uploading xml file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-in-uploading-xml-file/m-p/3879043#M932403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you checked with all possible code pages?&lt;/P&gt;&lt;P&gt;One of them will definitely help you in uploading whole XML without those double zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also try UTF-8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx,&lt;/P&gt;&lt;P&gt;Ags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2008 21:39:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-30T21:39:39Z</dc:date>
    <item>
      <title>GUI_UPLOAD - Problem in uploading xml file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-in-uploading-xml-file/m-p/3879040#M932400</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 problem in uploading xml file into itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;begin of GS_STRING,
        STR(72) type C,
      end of GS_STRING,

      GT_STRING like standard table of GS_STRING,

 call function 'GUI_UPLOAD'
      EXPORTING
        FILENAME                = FILE_NAME
        FILETYPE                = 'ASC'
      TABLES
        DATA_TAB                = GT_STRING
      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 I499(SY) with 'File upload failed'.
      stop.
    endif.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In debuggin mode, i can see the itab uploaded with xml payload. But in that same place, the hexadecimal format has double zeros 00 after each character. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XML message : &amp;lt;?xml&lt;/P&gt;&lt;P&gt;Correct Hexadecimal : 3C3F786D6C&lt;/P&gt;&lt;P&gt;Hexadecimal in itab  : 3C003F0078006D006C00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This makes the resultant xml invalid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help me to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Uma Maheswari on May 30, 2008 4:15 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 20:13:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-in-uploading-xml-file/m-p/3879040#M932400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T20:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD - Problem in uploading xml file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-in-uploading-xml-file/m-p/3879041#M932401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try passing codepage while uploading the xml.&lt;/P&gt;&lt;P&gt;I am not sure which code page to try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx,&lt;/P&gt;&lt;P&gt;Ags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 20:27:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-in-uploading-xml-file/m-p/3879041#M932401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T20:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD - Problem in uploading xml file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-in-uploading-xml-file/m-p/3879042#M932402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;After changing the code page, double zeros are removed.&lt;/P&gt;&lt;P&gt;But now, only first 144 characters of xml are present. so again the xml is invalid.&lt;/P&gt;&lt;P&gt;If you have any suggestions, pls let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 21:32:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-in-uploading-xml-file/m-p/3879042#M932402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T21:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD - Problem in uploading xml file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-in-uploading-xml-file/m-p/3879043#M932403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you checked with all possible code pages?&lt;/P&gt;&lt;P&gt;One of them will definitely help you in uploading whole XML without those double zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also try UTF-8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx,&lt;/P&gt;&lt;P&gt;Ags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 21:39:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-in-uploading-xml-file/m-p/3879043#M932403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T21:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD - Problem in uploading xml file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-in-uploading-xml-file/m-p/3879044#M932404</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 used code page 4103. All double zeros are removed. But the problem was with the size of xml uploaded in itab.&lt;/P&gt;&lt;P&gt;Then, by increasing length of itab string element, the xml uploaded correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My confusion is about varying uploaded xml size w.r.t. codepage changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Uma Maheswari on May 30, 2008 6:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 21:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-in-uploading-xml-file/m-p/3879044#M932404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T21:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD - Problem in uploading xml file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-in-uploading-xml-file/m-p/3879045#M932405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what do you want to do with the uploaded XML?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i use the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
constants: line_size type i value 255.

 data: begin of xml_tab occurs 0,
           raw(line_size) type x,
        end   of xml_tab,
        file  type string,
        size  type i.
 call function 'GUI_UPLOAD'
    exporting
      filename            = filename
      filetype            = 'BIN'
      has_field_separator = ' '
      header_length       = 0
    importing
      filelength          = size
    tables
      data_tab            = xml_tab
    exceptions
      others              = 1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 May 2008 07:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-in-uploading-xml-file/m-p/3879045#M932405</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2008-05-31T07:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD - Problem in uploading xml file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-in-uploading-xml-file/m-p/3879046#M932406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  lt_t005 TYPE STANDARD TABLE OF t005.&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;  xmlline(1024) TYPE x.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  lt_xml TYPE STANDARD TABLE OF xmlline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM t005 INTO TABLE lt_t005.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSFORMATION id&lt;/P&gt;&lt;P&gt;  SOURCE data_node = lt_t005&lt;/P&gt;&lt;P&gt;  RESULT XML lt_xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;gui_download&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename = 'C:\table.xml'&lt;/P&gt;&lt;P&gt;    filetype = 'BIN'&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    data_tab = lt_xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 May 2008 08:16:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-in-uploading-xml-file/m-p/3879046#M932406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-31T08:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD - Problem in uploading xml file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-in-uploading-xml-file/m-p/3879047#M932407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi venkat appikonda ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the requestor is talking about GUI_UPLOAD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 May 2008 08:28:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-problem-in-uploading-xml-file/m-p/3879047#M932407</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2008-05-31T08:28:35Z</dc:date>
    </item>
  </channel>
</rss>

