<?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 data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399069#M193029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upload XML file with "GUI_UPLOAD" function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you need to convert to SAP parser like this fragment of code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ixml TYPE REF TO if_ixml,&lt;/P&gt;&lt;P&gt;out type ref to if_ixml_document,&lt;/P&gt;&lt;P&gt;        str TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS cl_ixml DEFINITION LOAD.&lt;/P&gt;&lt;P&gt;*-- create the main factory&lt;/P&gt;&lt;P&gt;  ixml     = cl_ixml=&amp;gt;create( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: streamfactory TYPE REF TO if_ixml_stream_factory,&lt;/P&gt;&lt;P&gt;        istream TYPE REF TO if_ixml_istream,&lt;/P&gt;&lt;P&gt;        parser TYPE REF TO if_ixml_parser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  out_xml  = ixml-&amp;gt;create_document( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  streamfactory = ixml-&amp;gt;create_stream_factory( ).&lt;/P&gt;&lt;P&gt;  istream = streamfactory-&amp;gt;create_istream_string( str ).&lt;/P&gt;&lt;P&gt;  parser = ixml-&amp;gt;create_parser(  stream_factory  = streamfactory&lt;/P&gt;&lt;P&gt;                                 istream         = istream&lt;/P&gt;&lt;P&gt;                                 document        = out_xml ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF parser-&amp;gt;parse( ) &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    RAISE parse_error.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At last you operate with this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2007 21:16:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-14T21:16:11Z</dc:date>
    <item>
      <title>XML data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399055#M193015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;How to upload XML data into SAP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2006 15:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399055#M193015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-26T15:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: XML data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399056#M193016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;refer the following//&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="147314"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="96971"&gt;&lt;/A&gt; /people/r.eijpe/blog/2005/11/10/xml-dom-processing-in-abap-part-i--convert-an-abap-table-into-xml-file-using-sap-dom-approach &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2006 16:05:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399056#M193016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-26T16:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: XML data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399057#M193017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for the Info.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2006 16:07:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399057#M193017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-26T16:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: XML data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399058#M193018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;please check out this blog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="160960"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2006 16:11:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399058#M193018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-26T16:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: XML data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399059#M193019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/sap.user72/blog/2006/01/19/upload-data-from-multiple-worksheets-within-a-single-excel-file-into-internal-table-from-abap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Laxmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2006 16:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399059#M193019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-26T16:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: XML data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399060#M193020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using SAP4.7 version.&lt;/P&gt;&lt;P&gt;I am having a XML file on my desk top.&lt;/P&gt;&lt;P&gt;So i have to upload data from that XML file to a  Z-table in SAP.&lt;/P&gt;&lt;P&gt;Can ny body tell me the procedure clearly..&lt;/P&gt;&lt;P&gt;i have seen some posts..But it is little confusing..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 09:37:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399060#M193020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-27T09:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: XML data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399061#M193021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. itab --- &amp;gt; xml&lt;/P&gt;&lt;P&gt;xml ---&amp;gt; itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;&amp;lt;b&amp;gt;a) after uploading xml file into your internal table,&lt;/P&gt;&lt;P&gt;  just use this logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;MODIFY ZTABLE FROM ITAB.&lt;/P&gt;&lt;P&gt;ENDLOOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(this modify statement will AUTOMATICALLY take care&lt;/P&gt;&lt;P&gt;of insert/update based upon the primary key combination,&lt;/P&gt;&lt;P&gt;if found/not found in ztable)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. This program will do both.&lt;/P&gt;&lt;P&gt;(just copy paste in new program)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt; DATA&lt;/P&gt;&lt;P&gt;DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;a(100) TYPE c,&lt;/P&gt;&lt;P&gt;END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: xml_out TYPE string .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF upl OCCURS 0,&lt;/P&gt;&lt;P&gt;f(255) TYPE c,&lt;/P&gt;&lt;P&gt;END OF upl.&lt;/P&gt;&lt;P&gt;DATA: xmlupl TYPE string .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;FIRST PHASE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;FIRST PHASE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;FIRST PHASE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt; Fetch Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM t001 INTO TABLE t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt; XML&lt;/P&gt;&lt;P&gt;CALL TRANSFORMATION ('ID')&lt;/P&gt;&lt;P&gt;SOURCE tab = t001[]&lt;/P&gt;&lt;P&gt;RESULT XML xml_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt; Convert to TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_EFI_CONVERT_STRING_TO_TABLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_string = xml_out&lt;/P&gt;&lt;P&gt;i_tabline_length = 100&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;et_table = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt; Download&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filetype = 'BIN'&lt;/P&gt;&lt;P&gt;filename = 'd:\xx.xml'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;SECOND PHASE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;SECOND PHASE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;SECOND PHASE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BREAK-POINT.&lt;/P&gt;&lt;P&gt;REFRESH t001.&lt;/P&gt;&lt;P&gt;CLEAR t001.&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 = 'D:\XX.XML'&lt;/P&gt;&lt;P&gt;filetype = 'BIN'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = upl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT upl.&lt;/P&gt;&lt;P&gt;CONCATENATE xmlupl upl-f INTO xmlupl.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt; XML&lt;/P&gt;&lt;P&gt;CALL TRANSFORMATION ('ID')&lt;/P&gt;&lt;P&gt;SOURCE XML xmlupl&lt;/P&gt;&lt;P&gt;RESULT tab = t001[]&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;BREAK-POINT.&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;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 09:40:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399061#M193021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-27T09:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: XML data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399062#M193022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;But if it is CRM system can you tell me how to do it?&lt;/P&gt;&lt;P&gt;Becoz..the FM HR_EFI_CONVERT_STRING_TO_TABLE does not exist in CRM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 10:31:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399062#M193022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-27T10:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: XML data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399063#M193023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. CONVERT_STRING_TO_TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use this FM also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 10:33:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399063#M193023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-27T10:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: XML data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399064#M193024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. we can use this also.&lt;/P&gt;&lt;P&gt;SCMS_STRING_TO_FTEXT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(this FM will be available )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 10:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399064#M193024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-27T10:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: XML data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399065#M193025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evn the fm CONVERT_STRING_TO_TABLE does not exist in CRM.&lt;/P&gt;&lt;P&gt;also the FM 'HR_EFI_CONVERT_STRING_TO_TABLE' does not exist in SAP 4.7...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 10:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399065#M193025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-27T10:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: XML data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399066#M193026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. we can use this also.&lt;/P&gt;&lt;P&gt;SCMS_STRING_TO_FTEXT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(this FM will be available )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 10:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399066#M193026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-27T10:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: XML data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399067#M193027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;i&amp;gt;So i have to upload data from that XML file to a Z-table in SAP.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it the XML file itself into Ztable or you have to parse the XML file and update the Ztable fields with the value from the xml?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the complete code sample for uploading/parsing xml file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report y_xml_upload
       no standard page heading.
       data: filename type string ,
             xmldata type xstring .
data: result_xml type standard table of smum_xmltb .
data: return type standard table of bapiret2 .
 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.

* upload the xml file
filename = 'C:rajabw.xml' .
  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.
************uncomment this and comment the call of SCMS_BINARY_TO_XSTRING if you dont have this fm in your system.
*  if sy-subrc &amp;lt;&amp;gt; 0.
*    clear: xmldata.
*    exit.
*  else.
*    data: len type i.
*    len = size.
*    loop at xml_tab.
*      if len &amp;lt;= line_size. exit. endif.
*      concatenate xmldata xml_tab-raw(line_size)
*             into xmldata in byte mode.
*      len = len - line_size.
*    endloop.
*    if len &amp;gt; 0.
*      concatenate xmldata xml_tab-raw(len)
*             into xmldata in byte mode.
*      len = len - size.
*    endif.
*  endif.
******* end of comment.

call function 'SCMS_BINARY_TO_XSTRING'
  exporting
    input_length       = size
*   FIRST_LINE         = 0
*   LAST_LINE          = 0
 importing
   buffer             = xmldata
  tables
    binary_tab         = xml_tab
 exceptions
   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.
call function 'SMUM_XML_PARSE'
  exporting
    xml_input       = xmldata
  tables
    xml_table       = result_xml
    return          = return .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 11:56:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399067#M193027</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-06-27T11:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: XML data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399068#M193028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          you can use SMUM_XML_TAB function module also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 03:56:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399068#M193028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T03:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: XML data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399069#M193029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upload XML file with "GUI_UPLOAD" function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you need to convert to SAP parser like this fragment of code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ixml TYPE REF TO if_ixml,&lt;/P&gt;&lt;P&gt;out type ref to if_ixml_document,&lt;/P&gt;&lt;P&gt;        str TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS cl_ixml DEFINITION LOAD.&lt;/P&gt;&lt;P&gt;*-- create the main factory&lt;/P&gt;&lt;P&gt;  ixml     = cl_ixml=&amp;gt;create( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: streamfactory TYPE REF TO if_ixml_stream_factory,&lt;/P&gt;&lt;P&gt;        istream TYPE REF TO if_ixml_istream,&lt;/P&gt;&lt;P&gt;        parser TYPE REF TO if_ixml_parser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  out_xml  = ixml-&amp;gt;create_document( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  streamfactory = ixml-&amp;gt;create_stream_factory( ).&lt;/P&gt;&lt;P&gt;  istream = streamfactory-&amp;gt;create_istream_string( str ).&lt;/P&gt;&lt;P&gt;  parser = ixml-&amp;gt;create_parser(  stream_factory  = streamfactory&lt;/P&gt;&lt;P&gt;                                 istream         = istream&lt;/P&gt;&lt;P&gt;                                 document        = out_xml ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF parser-&amp;gt;parse( ) &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    RAISE parse_error.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At last you operate with this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 21:16:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data/m-p/1399069#M193029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T21:16:11Z</dc:date>
    </item>
  </channel>
</rss>

