<?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 XML output Function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-output-function-module/m-p/1750027#M325208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function module in ABAP to generate an xml structure? &lt;/P&gt;&lt;P&gt;I want to generate an xml output in a string for the input structure (internal table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Dec 2006 09:50:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-08T09:50:49Z</dc:date>
    <item>
      <title>XML output Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-output-function-module/m-p/1750027#M325208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function module in ABAP to generate an xml structure? &lt;/P&gt;&lt;P&gt;I want to generate an xml output in a string for the input structure (internal table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 09:50:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-output-function-module/m-p/1750027#M325208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T09:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: XML output Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-output-function-module/m-p/1750028#M325209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check these link -&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2145342"&gt;&lt;/A&gt; Check Amit's Reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 09:52:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-output-function-module/m-p/1750028#M325209</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2006-12-08T09:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: XML output Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-output-function-module/m-p/1750029#M325210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ricky!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the below function modules:-&lt;/P&gt;&lt;P&gt;SDIXML_DATA_TO_DOM -&amp;gt; Convert SAP data(elementary/structured/table types) into DOM (XML) ExampleO &lt;/P&gt;&lt;P&gt;SDIXML_DOM_TO_XML -&amp;gt; Convert DOM (XML) into string of bytes that can be downloaded to PC or application server &lt;/P&gt;&lt;P&gt;SDIXML_DOM_TO_SCREEN -&amp;gt; Display DOM (XML) &lt;/P&gt;&lt;P&gt;SDIXML_DOM_TO_DATA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also see the below thred, it is having example program also&lt;/P&gt;&lt;P&gt;/people/gregor.wolf3/blog/2005/12/30/sdn-points-blow-out-chart-sdn-forum-users-online&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope these links wud clarify ur question.&lt;/P&gt;&lt;P&gt;all the best.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 09:53:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-output-function-module/m-p/1750029#M325210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T09:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: XML output Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-output-function-module/m-p/1750030#M325211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ricky,&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;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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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;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SCMS_STRING_TO_FTEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    TEXT            = xml_out&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LENGTH          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    FTEXT_TAB       = itab.&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;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;/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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;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 10:15:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-output-function-module/m-p/1750030#M325211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T10:15:44Z</dc:date>
    </item>
  </channel>
</rss>

