<?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 self xml file from abap code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-self-xml-file-from-abap-code/m-p/9591798#M1757702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ouail,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would suggest you to store the data in an internal table and then write data into xml format.&lt;/P&gt;&lt;P&gt;Kindly go through the following link ,it may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABENABAP_ST.htm"&gt;http://help.sap.com/abapdocu_70/en/ABENABAP_ST.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jul 2013 09:24:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-07-10T09:24:24Z</dc:date>
    <item>
      <title>creating self xml file from abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-self-xml-file-from-abap-code/m-p/9591796#M1757700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create self XML file to the base on table BKPF&amp;nbsp; BSEG and BSET as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/243769" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the "&lt;SPAN class="L0S52"&gt;call transformation &lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ID'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)", but with this abap code, i can not create a &lt;/SPAN&gt;&lt;/SPAN&gt;flexible tags....&amp;lt;....&amp;gt; &amp;lt;/.....&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can some one help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 08:23:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-self-xml-file-from-abap-code/m-p/9591796#M1757700</guid>
      <dc:creator>former_member445510</dc:creator>
      <dc:date>2013-07-10T08:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: creating self xml file from abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-self-xml-file-from-abap-code/m-p/9591797#M1757701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest to use XSLT or Simple-Transformations (ST) (in case you are not so familar with XSL I would prefere ST). Create a new transformation and match this with your own tags:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;&amp;nbsp; l_xml type string,&lt;/P&gt;&lt;P&gt;&amp;nbsp; lt_bkpf&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type table of bkpf,&lt;/P&gt;&lt;P&gt;&amp;nbsp; lt_bseg&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type table of bseg,&lt;/P&gt;&lt;P&gt;&amp;nbsp; lt_bset&amp;nbsp;&amp;nbsp;&amp;nbsp; type table of bset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSFORMATION yreporting_new&lt;/P&gt;&lt;P&gt;&amp;nbsp; SOURCE BKPF = lt_bkpf &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BSEG = lt_bseg &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BSET = lt_bset&lt;/P&gt;&lt;P&gt;&amp;nbsp; RESULT XML l_xml.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the transformation ( goto XSLT_TOOL &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&amp;lt;?sap.transform simple?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tt:transform xmlns:tt=&lt;SPAN class="L1S33"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.sap.com/transformation-templates"&gt;http://www.sap.com/transformation-templates&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L1S31"&gt;&amp;lt;!-- called by SSTDEMO_FLBOOKINGS --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&amp;lt;tt:root name=&lt;SPAN class="L1S33"&gt;"BKPF"&lt;/SPAN&gt;/&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;tt:root name=&lt;SPAN class="L1S33"&gt;"BSEG"&lt;/SPAN&gt;/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tt:root name=&lt;SPAN class="L1S33"&gt;"BSET"&lt;/SPAN&gt;/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S33"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S33"&gt;&amp;lt;tt:template&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S33"&gt;&amp;lt;reportingdocument&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S33"&gt;&amp;nbsp; &amp;lt;reporterid&amp;gt;...&amp;lt;/reporterid&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&lt;STRONG&gt;&amp;lt;tt:loop ref=“&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;BKPF&lt;STRONG&gt;“ name=“&lt;/STRONG&gt;line&lt;STRONG&gt;“&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S33"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;invoicedocument&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&lt;STRONG&gt;&amp;lt;tt:loop ref=“BSEG&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&lt;STRONG&gt;“ name=“bseg&lt;/STRONG&gt;line&lt;STRONG&gt;“&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;lt;tt:cond check="$line.ID = $bseg.line.ID"&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S33"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;VATNumber&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S33"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S33"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/VATNumber&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&lt;STRONG&gt;&amp;lt;/tt:loop&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S33"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/invoicedocument&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&lt;STRONG&gt;&amp;lt;/tt:loop&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S33"&gt;&amp;nbsp; &amp;lt;/tt:ref&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S33"&gt;&amp;lt;/reportingdocument&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S33"&gt;&lt;/SPAN&gt;&lt;SPAN class="L1S33"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S33"&gt;&amp;lt;/tt:template&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S33"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S33"&gt;&amp;lt;/tt:transform&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remark: This is only a schema not the solution. There will be a lot more, for running this, but there are some good examples in the system and the documentation is your friend:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw73/helpdata/en/e3/7d4719ca581441b6841f1054ff1326/frameset.htm"&gt;http://help.sap.com/saphelp_nw73/helpdata/en/e3/7d4719ca581441b6841f1054ff1326/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards and have fun,&lt;/P&gt;&lt;P&gt;Hendrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 09:20:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-self-xml-file-from-abap-code/m-p/9591797#M1757701</guid>
      <dc:creator>hendrik_brandes</dc:creator>
      <dc:date>2013-07-10T09:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: creating self xml file from abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-self-xml-file-from-abap-code/m-p/9591798#M1757702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ouail,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would suggest you to store the data in an internal table and then write data into xml format.&lt;/P&gt;&lt;P&gt;Kindly go through the following link ,it may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABENABAP_ST.htm"&gt;http://help.sap.com/abapdocu_70/en/ABENABAP_ST.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 09:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-self-xml-file-from-abap-code/m-p/9591798#M1757702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-10T09:24:24Z</dc:date>
    </item>
  </channel>
</rss>

