<?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 Filling an XML structure with data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-an-xml-structure-with-data/m-p/2687332#M621429</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&amp;#146;m about to write a program that shall do GL postings based on IDocs, using standard FM BAPI_ACC_DOCUMENT_POST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The challenge is that the program shall return the results of the postings back to the sending system in XML-format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The interface team has defined an XML/XSD/WSDL document containing the required structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ns0:MT_Receipt xmlns:ns0="http://www.compello.com/xi/glposting"&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;Header&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Filler1/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Title/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Filler2/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Filler3/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Filler4/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Filler5/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Filler6/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Filler7/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Filler8/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;b&amp;gt;&amp;lt;Bilagsnr/&amp;gt;&amp;lt;/b&amp;gt;      &lt;/P&gt;&lt;P&gt;      &amp;lt;Filler9/&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;/Header&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;b&amp;gt;&amp;lt;Error&amp;gt; (Occurrence = 0 .. unbounded)&lt;/P&gt;&lt;P&gt;      &amp;lt;Filler1/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;ErrorCode/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;ErrorText/&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;/Error&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ns0:MT_Receipt&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#133;and I&amp;#146;m supposed to fill this structure with the reference document number in the element &amp;lt;Bilagsnr/&amp;gt; and all messages returned from the BAPI (except those of type &amp;#145;I&amp;#146; and &amp;#145;S&amp;#146;) in the &amp;lt;Error&amp;gt;-table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to understand what to do by looking into several threads, but as I am quite a novice when it comes to XML, I&amp;#146;m still a bit uncertain of how to solve this task.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Can anyone give an example how to solve this, preferably referring to the above described structure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;#146;m working on an SAP ECC 6.0 system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2007 09:45:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-22T09:45:15Z</dc:date>
    <item>
      <title>Filling an XML structure with data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-an-xml-structure-with-data/m-p/2687332#M621429</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&amp;#146;m about to write a program that shall do GL postings based on IDocs, using standard FM BAPI_ACC_DOCUMENT_POST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The challenge is that the program shall return the results of the postings back to the sending system in XML-format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The interface team has defined an XML/XSD/WSDL document containing the required structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ns0:MT_Receipt xmlns:ns0="http://www.compello.com/xi/glposting"&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;Header&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Filler1/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Title/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Filler2/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Filler3/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Filler4/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Filler5/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Filler6/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Filler7/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Filler8/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;b&amp;gt;&amp;lt;Bilagsnr/&amp;gt;&amp;lt;/b&amp;gt;      &lt;/P&gt;&lt;P&gt;      &amp;lt;Filler9/&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;/Header&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;b&amp;gt;&amp;lt;Error&amp;gt; (Occurrence = 0 .. unbounded)&lt;/P&gt;&lt;P&gt;      &amp;lt;Filler1/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;ErrorCode/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;ErrorText/&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;/Error&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ns0:MT_Receipt&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#133;and I&amp;#146;m supposed to fill this structure with the reference document number in the element &amp;lt;Bilagsnr/&amp;gt; and all messages returned from the BAPI (except those of type &amp;#145;I&amp;#146; and &amp;#145;S&amp;#146;) in the &amp;lt;Error&amp;gt;-table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to understand what to do by looking into several threads, but as I am quite a novice when it comes to XML, I&amp;#146;m still a bit uncertain of how to solve this task.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Can anyone give an example how to solve this, preferably referring to the above described structure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;#146;m working on an SAP ECC 6.0 system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 09:45:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-an-xml-structure-with-data/m-p/2687332#M621429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T09:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filling an XML structure with data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-an-xml-structure-with-data/m-p/2687333#M621430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not exactly a rush of answers, maybe I should have posted it in the XI forum instead. However, I finally managed to resolve it myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ole Kristian Branæ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 12:31:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-an-xml-structure-with-data/m-p/2687333#M621430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T12:31:01Z</dc:date>
    </item>
  </channel>
</rss>

