<?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: Creating file in App Server direct from XML object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-file-in-app-server-direct-from-xml-object/m-p/2867731#M672781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide a bit more info on how can i use the UA_UPLOAD_XMLFILE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other fm cannot be used as it points to local file location...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is a segment of my codes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: o_xml  TYPE REF TO cl_xml_document.&lt;/P&gt;&lt;P&gt;      :&lt;/P&gt;&lt;P&gt;CREATE OBJECT o_xml.&lt;/P&gt;&lt;P&gt;l_root_element = o_xml-&amp;gt;create_simple_element( name = 'broadcast' ).&lt;/P&gt;&lt;P&gt;l_subroot_element = o_xml-&amp;gt;create_simple_element( parent = l_root_element name = 'setpersinfo' ).&lt;/P&gt;&lt;P&gt;g_date = '123456789012345'.&lt;/P&gt;&lt;P&gt;     :&lt;/P&gt;&lt;P&gt;CALL METHOD o_xml-&amp;gt;create_simple_element( parent = l_subroot_element name = 'brdcast_id' value = g_date ).&lt;/P&gt;&lt;P&gt;CALL METHOD o_xml-&amp;gt;create_simple_element( parent = l_subroot_element name = 'cnt_nric' value = g_tot_rec ).&lt;/P&gt;&lt;P&gt;CALL METHOD o_xml-&amp;gt;insert_document_as_child( node = l_root_element document = d_xml ).&lt;/P&gt;&lt;P&gt;     :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the code above, how do I proceed to create the file in the app server, given just the above XML object and filepath: /INTERFACE/ABC/test.xml&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2007 02:21:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-24T02:21:45Z</dc:date>
    <item>
      <title>Creating file in App Server direct from XML object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-file-in-app-server-direct-from-xml-object/m-p/2867729#M672779</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;I am looking for help to create a XML file directly from XML object that has already been populated with the data.  Currently, I am facing a difficulty creating the file directly in app server as the XML class CL_XML_DOCUMENT's method export_to_file is only able to create localised file but not in app server.  I have already check that I have write access to the app server.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone knows any functions that I can use to create the XML file in the app server directly without creating a localised file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pts will be awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate the help.  Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lawrence&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2007 04:20:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-file-in-app-server-direct-from-xml-object/m-p/2867729#M672779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-21T04:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating file in App Server direct from XML object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-file-in-app-server-direct-from-xml-object/m-p/2867730#M672780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Lawrence,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try with these fms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UA_UPLOAD_XMLFILE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JIT03_UPLOAD_XML&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;Reward points if useful&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2007 04:37:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-file-in-app-server-direct-from-xml-object/m-p/2867730#M672780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-21T04:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating file in App Server direct from XML object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-file-in-app-server-direct-from-xml-object/m-p/2867731#M672781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide a bit more info on how can i use the UA_UPLOAD_XMLFILE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other fm cannot be used as it points to local file location...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is a segment of my codes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: o_xml  TYPE REF TO cl_xml_document.&lt;/P&gt;&lt;P&gt;      :&lt;/P&gt;&lt;P&gt;CREATE OBJECT o_xml.&lt;/P&gt;&lt;P&gt;l_root_element = o_xml-&amp;gt;create_simple_element( name = 'broadcast' ).&lt;/P&gt;&lt;P&gt;l_subroot_element = o_xml-&amp;gt;create_simple_element( parent = l_root_element name = 'setpersinfo' ).&lt;/P&gt;&lt;P&gt;g_date = '123456789012345'.&lt;/P&gt;&lt;P&gt;     :&lt;/P&gt;&lt;P&gt;CALL METHOD o_xml-&amp;gt;create_simple_element( parent = l_subroot_element name = 'brdcast_id' value = g_date ).&lt;/P&gt;&lt;P&gt;CALL METHOD o_xml-&amp;gt;create_simple_element( parent = l_subroot_element name = 'cnt_nric' value = g_tot_rec ).&lt;/P&gt;&lt;P&gt;CALL METHOD o_xml-&amp;gt;insert_document_as_child( node = l_root_element document = d_xml ).&lt;/P&gt;&lt;P&gt;     :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the code above, how do I proceed to create the file in the app server, given just the above XML object and filepath: /INTERFACE/ABC/test.xml&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 02:21:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-file-in-app-server-direct-from-xml-object/m-p/2867731#M672781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T02:21:45Z</dc:date>
    </item>
  </channel>
</rss>

