<?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: Data Transfer with XML in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-with-xml/m-p/8393243#M1644126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mickael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a function module called 'BANK_API_PP_UT_DATA_TO_XML' was the answer for my question.&lt;/P&gt;&lt;P&gt;You can export an internal table to that FM which creates another itab with the XML code.&lt;/P&gt;&lt;P&gt;The problem is, that the created itab contains the code in only one single row, but in my case thats no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greets&lt;/P&gt;&lt;P&gt;Danulf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Nov 2011 14:33:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-23T14:33:23Z</dc:date>
    <item>
      <title>Data Transfer with XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-with-xml/m-p/8393238#M1644121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SDN community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a proglem regarding data transfer from an internal table into an xml document.&lt;/P&gt;&lt;P&gt;At first im trying to create an xml document with data from an internal table with one line which works correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: lt_xml TYPE TABLE hrp5122,
      wa_xml LIKE LINE OF lt_xml,
lo_xml TYPE REF TO cl_xml_document.

SELECT * FROM hrp5122 INTO CORRESPONDING FIELDS OF TABLE lt_xml WHERE pinst_guid = 'ABCDE'

LOOP AT lt_xml INTO wa_xml.
ENDLOOP.

CREATE OBJECT lo_xml.

CALL METHOD lo_xml-&amp;gt;create_with_data
  EXPORTING
    name       = 'lt_xml'
    dataobject = lt_xml
  RECEIVING
    retcode    = lv_retcode.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next step im trying to accomplish is to transfer that xml document back to another internal table.&lt;/P&gt;&lt;P&gt;The problem is that the new internal table should contain the xml code (with al its tags etc.).&lt;/P&gt;&lt;P&gt;The internal table should look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Row1                Row2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1                         &amp;lt;?xml version="1.0" ?&amp;gt; &lt;/P&gt;&lt;P&gt;2                         &amp;lt;Tag1&amp;gt;XXX&amp;lt;/Tag1&amp;gt;&lt;/P&gt;&lt;P&gt;3                         &amp;lt;Tag2&amp;gt;&lt;/P&gt;&lt;P&gt;4                         &amp;lt;Tag3&amp;gt;XXX&amp;lt;/Tag3&amp;gt;&lt;/P&gt;&lt;P&gt;5                         &amp;lt;/Tag2&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to hearing some interesting answers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Danulf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Danulf on Nov 17, 2011 10:52 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 09:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-with-xml/m-p/8393238#M1644121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-17T09:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Data Transfer with XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-with-xml/m-p/8393239#M1644122</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;You are trying to read the XML fiel not just the contents with in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Treat it just a file whose contents will be updated in an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below code &lt;/P&gt;&lt;P&gt;data : file type string value 'filename.xml'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATA SET file l for INPUT IN TEXT MODE.&lt;/P&gt;&lt;P&gt;READ DATA TO WORk AREA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND WORK AREA to INTERNAl TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR WORk AREA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATA SET file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope It helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 14:04:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-with-xml/m-p/8393239#M1644122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-17T14:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data Transfer with XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-with-xml/m-p/8393240#M1644123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have a llok on function module 'SDIXML_DDIC_TO_SCHEMA'. That's work with a DDIC, so if your itab is based on ddic, that should be ok.&lt;/P&gt;&lt;P&gt;Here's a doucment:&lt;/P&gt;&lt;P&gt;[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0a575986-0601-0010-7cbe-f17b353c3a28?QuickLink=index&amp;amp;overridelayout=truehttp://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0a575986-0601-0010-7cbe-f17b353c3a28?QuickLink=index&amp;amp;overridelayout=true]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also used FM 'SDIXML_DATA_TO_DOM' with 'SDIXML_DOM_TO_XML':&lt;/P&gt;&lt;P&gt;[http://www.erpgenie.com/sap/abap/code/abap27.htm|http://www.erpgenie.com/sap/abap/code/abap27.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Mickael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 22:39:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-with-xml/m-p/8393240#M1644123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-17T22:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Data Transfer with XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-with-xml/m-p/8393241#M1644124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 09:04:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-with-xml/m-p/8393241#M1644124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-21T09:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Data Transfer with XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-with-xml/m-p/8393242#M1644125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Danulf,&lt;/P&gt;&lt;P&gt;have you the answer of your question?&lt;/P&gt;&lt;P&gt;mickael&lt;/P&gt;&lt;P&gt;&lt;EM&gt;P.S: it's only for me, but also to other consultants who could have the same question in the future...&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 21:34:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-with-xml/m-p/8393242#M1644125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-22T21:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Data Transfer with XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-with-xml/m-p/8393243#M1644126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mickael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a function module called 'BANK_API_PP_UT_DATA_TO_XML' was the answer for my question.&lt;/P&gt;&lt;P&gt;You can export an internal table to that FM which creates another itab with the XML code.&lt;/P&gt;&lt;P&gt;The problem is, that the created itab contains the code in only one single row, but in my case thats no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greets&lt;/P&gt;&lt;P&gt;Danulf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 14:33:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-with-xml/m-p/8393243#M1644126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-23T14:33:23Z</dc:date>
    </item>
  </channel>
</rss>

