<?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: How to convert internal table data to specific XML format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-internal-table-data-to-specific-xml-format/m-p/7210866#M1522586</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;which netwaver release you have? With 7.0 (ERP 6.0) you are able to define so called SAP simple transformations. In ABAP it is called with CALL TRANSFORMATION. Look into the online help of this ABAP statement.&lt;/P&gt;&lt;P&gt;Here is also some sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS:&lt;/P&gt;&lt;P&gt;  c_tname_st       TYPE string VALUE 'ZMB_TRANS1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'BAPI_MATERIAL_GET_DETAIL'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              material              = matnr&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              material_general_data = gwa_matgendata&lt;/P&gt;&lt;P&gt;              return                = gfd_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          MOVE-CORRESPONDING gwa_matgendata TO gwa_matdetails.&lt;/P&gt;&lt;P&gt;          gwa_matdetails-matnr = matnr.&lt;/P&gt;&lt;P&gt;          APPEND gwa_matdetails TO git_matdetails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL TRANSFORMATION (c_tname_st)&lt;/P&gt;&lt;P&gt;           SOURCE     material_list = git_matdetails&lt;/P&gt;&lt;P&gt;           RESULT XML gfd_xstr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          IF display = 'X'.&lt;/P&gt;&lt;P&gt;            CALL FUNCTION 'DISPLAY_XML_STRING'&lt;/P&gt;&lt;P&gt;              EXPORTING&lt;/P&gt;&lt;P&gt;                xml_string = gfd_xstr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The transformation can be defined in SE80 as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Aug 2010 07:16:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-25T07:16:59Z</dc:date>
    <item>
      <title>How to convert internal table data to specific XML format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-internal-table-data-to-specific-xml-format/m-p/7210865#M1522585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All ,&lt;/P&gt;&lt;P&gt;I have used  FM's ''SDIXML_DATA_TO_DOM' and  'SDIXML_DOM_TO_XML' to convert my internal table data as XML format. But I need  specific XML output format. Please let me know what to do to get required specific XML output format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know do we need to create custom transformations? If yes, pleae guide me how to create it as I ignorant in XML coding. I am verymuch thankful for your help. &amp;lt;removed by moderator&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;P.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Aug 17, 2010 5:26 PM - please do not offer p...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 13:32:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-internal-table-data-to-specific-xml-format/m-p/7210865#M1522585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T13:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert internal table data to specific XML format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-internal-table-data-to-specific-xml-format/m-p/7210866#M1522586</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;which netwaver release you have? With 7.0 (ERP 6.0) you are able to define so called SAP simple transformations. In ABAP it is called with CALL TRANSFORMATION. Look into the online help of this ABAP statement.&lt;/P&gt;&lt;P&gt;Here is also some sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS:&lt;/P&gt;&lt;P&gt;  c_tname_st       TYPE string VALUE 'ZMB_TRANS1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'BAPI_MATERIAL_GET_DETAIL'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              material              = matnr&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              material_general_data = gwa_matgendata&lt;/P&gt;&lt;P&gt;              return                = gfd_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          MOVE-CORRESPONDING gwa_matgendata TO gwa_matdetails.&lt;/P&gt;&lt;P&gt;          gwa_matdetails-matnr = matnr.&lt;/P&gt;&lt;P&gt;          APPEND gwa_matdetails TO git_matdetails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL TRANSFORMATION (c_tname_st)&lt;/P&gt;&lt;P&gt;           SOURCE     material_list = git_matdetails&lt;/P&gt;&lt;P&gt;           RESULT XML gfd_xstr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          IF display = 'X'.&lt;/P&gt;&lt;P&gt;            CALL FUNCTION 'DISPLAY_XML_STRING'&lt;/P&gt;&lt;P&gt;              EXPORTING&lt;/P&gt;&lt;P&gt;                xml_string = gfd_xstr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The transformation can be defined in SE80 as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 07:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-internal-table-data-to-specific-xml-format/m-p/7210866#M1522586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T07:16:59Z</dc:date>
    </item>
  </channel>
</rss>

