<?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: display XML in SAP from String in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-xml-in-sap-from-string/m-p/3477729#M836005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: l_xml  type ref to cl_xml_document  .&lt;/P&gt;&lt;P&gt;create object l_xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method l_xml-&amp;gt;parse_string&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    stream = xml_out. "xml_out is the variable which is holding the xml string&lt;/P&gt;&lt;P&gt;call method l_xml-&amp;gt;display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alternate option: you can use a custom control and show the xml using cl_gui_html_viewer class&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Mar 2008 09:40:11 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2008-03-04T09:40:11Z</dc:date>
    <item>
      <title>display XML in SAP from String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-xml-in-sap-from-string/m-p/3477727#M836003</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;it is me again, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;following situation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a apab program i have a xmlfile as content of a string (not load from the filesystem - it is generated). Now i try to show the data in SAP Gui. Are there any possibilities?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 17:32:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-xml-in-sap-from-string/m-p/3477727#M836003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T17:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: display XML in SAP from String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-xml-in-sap-from-string/m-p/3477728#M836004</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;Please check for class CL_WD_RUNTIME_SERVICES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to display XSTRING as PDF document. may this will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_WD_RUNTIME_SERVICES=&amp;gt;ATTACH_FILE_TO_RESPONSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 17:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-xml-in-sap-from-string/m-p/3477728#M836004</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-02-26T17:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: display XML in SAP from String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-xml-in-sap-from-string/m-p/3477729#M836005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: l_xml  type ref to cl_xml_document  .&lt;/P&gt;&lt;P&gt;create object l_xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method l_xml-&amp;gt;parse_string&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    stream = xml_out. "xml_out is the variable which is holding the xml string&lt;/P&gt;&lt;P&gt;call method l_xml-&amp;gt;display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alternate option: you can use a custom control and show the xml using cl_gui_html_viewer class&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 09:40:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-xml-in-sap-from-string/m-p/3477729#M836005</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2008-03-04T09:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: display XML in SAP from String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-xml-in-sap-from-string/m-p/3477730#M836006</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;first:I used call method lxml-&amp;gt;display. and can see my xml file display in a small pop up window. How can I display the result without the pop up window ? (I only want to see one screen, no pop up window)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second:&lt;/P&gt;&lt;P&gt;how can i use the business document navigator? When I set the parameter 'WITH_BDN' to 'X' I see the navigator but my xml is nowhere to be seen. What I am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 14:04:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-xml-in-sap-from-string/m-p/3477730#M836006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-22T14:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: display XML in SAP from String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-xml-in-sap-from-string/m-p/3477731#M836007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get that displayed on the same screen, you need to create a custom screen for that. &lt;/P&gt;&lt;P&gt;Step 1: Create the custom screen , say with number &lt;SPAN style="font-size: 10pt;"&gt;100.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Step 2: Create a custom container within it and give a name say 'CONTAINER'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Step 3: In its PBO create module and call the below static method&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;lr_xml_ref &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;cl_swf_wsp_xml_view&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; cl_swf_wsp_xml_view&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;create&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_container_name &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'CONTAINER'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_repid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;=&amp;nbsp; &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;repid&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S31"&gt;" ABAP Program: Current Main Program&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_dynnr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;=&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'100'&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;" ABAP Program: Number of Current Screen&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_xml_stream&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lv_xml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IMPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e_xml_view&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lr_xml_ref&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S31"&gt;" HTML Control for WSDL Display&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;sy-repid: As you know, this should be the program name from which the custom screen will be called .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;I assume you already have the XML in xstring format and the same gets saved in variable lv_xml.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Once that create is called you will get the instance of the class &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt; &lt;/SPAN&gt;cl_swf_wsp_xml_view and then simple call the show method.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; lr_xml_ref&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;show&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This should make the XML display within same screen and not as a Popup. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;- Thanks , Somnath&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 19:43:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-xml-in-sap-from-string/m-p/3477731#M836007</guid>
      <dc:creator>somnath</dc:creator>
      <dc:date>2013-11-08T19:43:02Z</dc:date>
    </item>
  </channel>
</rss>

