<?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: xml conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564967#M1659433</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;   Thanks for everyone who helped me out by giving various suggestions.Finally i found out the solution.&lt;/P&gt;&lt;P&gt;In CALL TRANSFORMATION syntax itself i am passing all the tables like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSFORMATION ('ID')&lt;/P&gt;&lt;P&gt;SOURCE tab = itab_tcurt[] tab1 = itab_t556b[] tab2 = itab_t555b[]&lt;/P&gt;&lt;P&gt;RESULT XML xml_out1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SCMS_STRING_TO_FTEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    text            = xml_out1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LENGTH          = lv_length&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    ftext_tab       = itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then this itab1 i am downloading.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2012 11:43:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-17T11:43:04Z</dc:date>
    <item>
      <title>xml conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564958#M1659424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           I am trying to convert some field values of certain tables to xml format.It is coming correctly for one table.When i am trying for two or more tables the xml file is breaking in the middle.I tried adjusting the size of internal table which holds the file.But its not working. I am using CALL TRANSFORMATION syntax for converting to xml format.Please help me out in solving this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 06:19:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564958#M1659424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-13T06:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: xml conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564959#M1659425</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;Are you getting any exception ? If you are getting any one among the below mentioned exceptions then you need to check the data present in your source internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following data objects cannot be serialized and trigger a treatable exception: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data objects of type n, whose current content does not exclusively consist of numbers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data objects of type p, whose current content does not represent a valid packed number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data objects of type d and t, whose current content contains leading or trailing blanks and, at the same time, uses the separators ("-" or ":") according to ISO-8601 for the presentation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data reference variables pointing to data objects, whose data type has only a technical name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data reference variables pointing to data objects that were not created with CREATE DATA are treated as initial reference variables during the serialization. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, please check your source data and do the modifications as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information may help in resolving your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Raghavendra Kulkarni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 06:36:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564959#M1659425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-13T06:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: xml conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564960#M1659426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your prompt reply."Invalid at the top level of the document " this error is coming up while opening the file.But in my internal table two tables are getting filled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 06:41:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564960#M1659426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-13T06:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: xml conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564961#M1659427</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;Let us try in this way, as you have mentioned that while working with one internal table you could able to achieve the required XML. So, why cant move all the information present in one or more internal table into single internal table and try doing the transformation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope, this may help in resolving the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Raghavendra Kulkarni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 06:56:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564961#M1659427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-13T06:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: xml conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564962#M1659428</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 have already tried this way.But the problem is that we cannot differentiate the table name and fields.Since we are passing everthing into one internal table and converting into xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt; Helma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 08:57:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564962#M1659428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-13T08:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: xml conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564963#M1659429</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;1.Fetch al the fields into an iternal table.&lt;/P&gt;&lt;P&gt;2.As said you have multiple tables.&lt;/P&gt;&lt;P&gt;3.So loop at the table and call the call transaformation.&lt;/P&gt;&lt;P&gt;4.You also have 2 FMs "&lt;STRONG&gt;DOM&lt;/STRONG&gt;--&amp;gt;Which is used to create the Dom object.&lt;/P&gt;&lt;P&gt;5.The FM "&lt;STRONG&gt;DOm_XML&lt;/STRONG&gt;" is used to conevert to xml files.&lt;/P&gt;&lt;P&gt;6.please check if the table name has "/" in it,if it does then the XML files doest generate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 09:05:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564963#M1659429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-13T09:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: xml conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564964#M1659430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vadanalav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the internal table the xml version is coming up like this.First, table name then corresponding fileds again it ends with \ table name. If \ comes up in table name can we use the function module DOM_XML ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 09:24:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564964#M1659430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-13T09:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: xml conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564965#M1659431</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;After your call transformation use the below code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'HR_EFI_CONVERT_STRING_TO_TABLE'
    EXPORTING
      i_string         = xml_out
      i_tabline_length = 100
    TABLES
      et_table         = xmltable&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adjust i_tabline_length according to your requirement and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Raja.D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 13:29:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564965#M1659431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-13T13:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: xml conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564966#M1659432</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;&lt;/P&gt;&lt;P&gt;Instead of that function module i am using this function module.I think there is no much difference between both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SCMS_STRING_TO_FTEXT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      text            = out4&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LENGTH          = lv_length&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      ftext_tab       = itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still i tried your suggestion also it is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 10:11:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564966#M1659432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-16T10:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: xml conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564967#M1659433</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;   Thanks for everyone who helped me out by giving various suggestions.Finally i found out the solution.&lt;/P&gt;&lt;P&gt;In CALL TRANSFORMATION syntax itself i am passing all the tables like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSFORMATION ('ID')&lt;/P&gt;&lt;P&gt;SOURCE tab = itab_tcurt[] tab1 = itab_t556b[] tab2 = itab_t555b[]&lt;/P&gt;&lt;P&gt;RESULT XML xml_out1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SCMS_STRING_TO_FTEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    text            = xml_out1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LENGTH          = lv_length&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    ftext_tab       = itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then this itab1 i am downloading.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 11:43:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion/m-p/8564967#M1659433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T11:43:04Z</dc:date>
    </item>
  </channel>
</rss>

