<?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: XML function module doesnt work in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-function-module-doesnt-work/m-p/9120337#M1707689</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;Did you convert the XML String to XSTRING?&lt;/P&gt;&lt;P&gt;If so, did you respect the XML encoding when you did the conversion ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Nov 2012 08:12:50 GMT</pubDate>
    <dc:creator>former_member184675</dc:creator>
    <dc:date>2012-11-09T08:12:50Z</dc:date>
    <item>
      <title>XML function module doesnt work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-function-module-doesnt-work/m-p/9120336#M1707688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;I have to convert a xml file in to internal table , my xml file is very well formed, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;but this function module says the xml file has syntax error.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;please let me kn ow where i am making mistake&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="L0S31"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'SMUM_XML_PARSE'&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xml_input &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;g_xmldata&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TABLES&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xml_table &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;g_t_xml_info&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;return&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;g_t_return&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXCEPTIONS&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 23:31:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-function-module-doesnt-work/m-p/9120336#M1707688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-08T23:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: XML function module doesnt work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-function-module-doesnt-work/m-p/9120337#M1707689</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;Did you convert the XML String to XSTRING?&lt;/P&gt;&lt;P&gt;If so, did you respect the XML encoding when you did the conversion ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 08:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-function-module-doesnt-work/m-p/9120337#M1707689</guid>
      <dc:creator>former_member184675</dc:creator>
      <dc:date>2012-11-09T08:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: XML function module doesnt work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-function-module-doesnt-work/m-p/9120338#M1707690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I&amp;nbsp; converted to XML string into&amp;nbsp;&amp;nbsp; X string, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and how can I take care about encoding ? what I need to perform for encoding ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 09:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-function-module-doesnt-work/m-p/9120338#M1707690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-09T09:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: XML function module doesnt work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-function-module-doesnt-work/m-p/9120339#M1707691</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;Check FM SCMS_STRING_TO_XSTRING. You can either input the encoding (the sap encoding code) or the mime-type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, can you give us the exact error you get and the xml string ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 09:36:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-function-module-doesnt-work/m-p/9120339#M1707691</guid>
      <dc:creator>former_member184675</dc:creator>
      <dc:date>2012-11-09T09:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: XML function module doesnt work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-function-module-doesnt-work/m-p/9120340#M1707692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mycode is as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; TYPES: BEGIN OF t_xml_line,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data(256) TYPE x,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; END OF t_xml_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: l_xml_table&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE TABLE OF t_xml_line,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&amp;nbsp; g_t_xml_info TYPE TABLE OF smum_xmltb INITIAL SIZE 0.&lt;/P&gt;&lt;P&gt;DATA:&amp;nbsp; g_t_return TYPE STANDARD TABLE OF bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&amp;nbsp; g_xmldata TYPE xstring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp; Creating the main iXML factory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_ixml = cl_ixml=&amp;gt;create( ).&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp; Creating a stream factory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_streamfactory = l_ixml-&amp;gt;create_stream_factory( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PERFORM get_xml_table CHANGING l_xml_table_size l_xml_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INPUT_LENGTH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; FIRST_LINE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LAST_LINE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 1&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; BUFFER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = g_xmldata&lt;/P&gt;&lt;P&gt;&amp;nbsp; TABLES&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BINARY_TAB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = l_xml_table&lt;/P&gt;&lt;P&gt;* EXCEPTIONS&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp; FAILED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 1&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp; OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&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;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL FUNCTION 'SMUM_XML_PARSE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xml_input = g_xmldata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xml_table = g_t_xml_info&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return&amp;nbsp;&amp;nbsp;&amp;nbsp; = g_t_return&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCEPTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0.&lt;/P&gt;&lt;P&gt; &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/154891" height="172" width="576" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the XML string :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3C3F786D6C2076657273696F6E3D22312E30223F3E3C44617461656C656D656E7473&lt;/P&gt;&lt;P&gt;3E3C4669656C64733E3C5355424F424A454354205355424F424A4543543D2244445445585&lt;/P&gt;&lt;P&gt;4202020203030303031222F3E3C4C414E4755414745206C616E67756167653D224445222F3E3C4C&lt;/P&gt;&lt;P&gt;454E475448204C656E6774683D22363020222F3E3C5445585420546578743D2245696E7A656C6E6573205&lt;/P&gt;&lt;P&gt;3415020446F6B756D656E74222F3E3C2F4669656C64733E3C4669656C64733E3C5355424F424A45435420535&lt;/P&gt;&lt;P&gt;5424F424A4543543D22444454455854202020203030303032222F3E3C4C414E4755414745206C616E67756167653D224445222F3E3C4C454E4754&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 10:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-function-module-doesnt-work/m-p/9120340#M1707692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-09T10:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: XML function module doesnt work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-function-module-doesnt-work/m-p/9120341#M1707693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kiran marina, it seems that the function module works perfectly, but the XML data that you want to be parsed is no XML. It contains many question marks (hex 3F) which spoil the XML syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I decode the hex data that you posted in your note from &lt;SPAN class="j-post-author "&gt;Nov 9, 2012 11:23 AM&amp;nbsp;&amp;nbsp; &lt;SPAN class="font-color-meta-light j-thread-replyto"&gt; (&lt;A _jive_internal="true" class="font-color-meta-light localScroll" href="https://answers.sap.com/thread/3264183#13649985" title="Go to message"&gt;in response to Andrei Sosea&lt;/A&gt;), they look like this: &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0"?&amp;gt;&amp;lt;Dataelements?&amp;gt;&amp;lt;Fields&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;SUBOBJECT SUBOBJECT="DDTEX??&amp;nbsp;&amp;nbsp;&amp;nbsp; 00001"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;LANGUAGE language="DE"/&amp;gt;&amp;lt;L?ENGTH Length="60 "/&amp;gt;&amp;lt;TEXT Text="Einzelnes ??AP Dokument"/&amp;gt;&amp;lt;/Fields&amp;gt;&amp;lt;Fields&amp;gt;&amp;lt;SUBOBJECT S??BOBJECT="DDTEXT&amp;nbsp;&amp;nbsp;&amp;nbsp; 00002"/&amp;gt;&amp;lt;LANGUAGE language="DE"/&amp;gt;&amp;lt;LENGT...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even very well-meaning XML parsers would complain about these data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rüdiger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Nov 2012 23:40:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-function-module-doesnt-work/m-p/9120341#M1707693</guid>
      <dc:creator>Ruediger_Plantiko</dc:creator>
      <dc:date>2012-11-10T23:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: XML function module doesnt work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-function-module-doesnt-work/m-p/9120342#M1707694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rüdiger,&lt;/P&gt;&lt;P&gt;is there&amp;nbsp; a method or function module so&amp;nbsp; that I can check my XML file before extracting it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually i need to download data from abap internal table to XML , then this XML is opened in Excel file &lt;/P&gt;&lt;P&gt;and the excel file is modified ,then all the changes will be recorded in XML file , I need to extract this modified XML file again in to internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the whole proces, can u suggest me how can I make my XML file&amp;nbsp; syntax error free so that I can easily download in to Internal table and then i can process the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Nov 2012 00:46:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-function-module-doesnt-work/m-p/9120342#M1707694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-11T00:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: XML function module doesnt work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-function-module-doesnt-work/m-p/9120343#M1707695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kiran, if you are downloading to Excel consider using CSV or Tab delimited formats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your code I assume this is the code to upload the XML back to your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To upload from Excel to Internal table, you can use ALSM_EXCEL_TO_INTERNAL_TABLE if the file is in .XLS format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For upload/download with XML, consider using XML Transformation if appropriate.&lt;/P&gt;&lt;P&gt;You can get more information here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/XML+XLS+transformation" title="http://wiki.sdn.sap.com/wiki/display/Snippets/XML+XLS+transformation"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/XML+XLS+transformation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/86/8280d212d511d5991b00508b6b8b11/content.htm" title="http://help.sap.com/saphelp_nw04/helpdata/en/86/8280d212d511d5991b00508b6b8b11/content.htm"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/86/8280d212d511d5991b00508b6b8b11/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Vimal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Nov 2012 05:59:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-function-module-doesnt-work/m-p/9120343#M1707695</guid>
      <dc:creator>vimalv</dc:creator>
      <dc:date>2012-11-11T05:59:54Z</dc:date>
    </item>
  </channel>
</rss>

