<?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: IDOC to XML Conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069786#M1355370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot use this FM to display the idoc as XML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you see the source code of the FM, there is a select from the table IDOCSTYLE. From this the corresponding XSL transformation details are retrieved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i think you did not define the XSLT for the idoc type (or rather message type). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this FM is of no use in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Sep 2009 08:42:21 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2009-09-09T08:42:21Z</dc:date>
    <item>
      <title>IDOC to XML Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069779#M1355363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAPers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any standard procedure to convert IDOC's to XML format ? If&lt;/P&gt;&lt;P&gt;yes can anyone please help me the procedure or steps how to achieve&lt;/P&gt;&lt;P&gt;this conversion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 05:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069779#M1355363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T05:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC to XML Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069780#M1355364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the below thread can give you some inputs for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7867671"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Sripal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 05:39:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069780#M1355364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T05:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC to XML Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069781#M1355365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sripal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already searched in SDN and i have came across the inputs&lt;/P&gt;&lt;P&gt;that are there in the link that was provided by you and it is XML to IDOC&lt;/P&gt;&lt;P&gt;and my requirement in IDOC to XML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 05:45:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069781#M1355365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T05:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC to XML Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069782#M1355366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if this FM helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IDX_IDOC_TO_XML&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 05:52:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069782#M1355366</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-09-09T05:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC to XML Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069783#M1355367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;You can use the below FM for this and can pass Idoc data to the tbale IDOC_DATA_40 in the FM&lt;/P&gt;&lt;P&gt;IDX_IDOC_TO_XML&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Sripal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 06:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069783#M1355367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T06:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC to XML Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069784#M1355368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you check these FM ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDOC_XML_TRANSFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDOC_XML_DISPLAY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 06:01:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069784#M1355368</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-09-09T06:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC to XML Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069785#M1355369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Gautham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer was helpful.&lt;/P&gt;&lt;P&gt;I am trying to use IDOC_XML_Translate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here if you can see the source code of the function module&lt;/P&gt;&lt;P&gt;at the end data is holding by &lt;STRONG&gt;STR&lt;/STRONG&gt; and transformed and passed into screen number 100.&lt;/P&gt;&lt;P&gt;But i am trying to download the file so i have created a ZFunModule and in source code&lt;/P&gt;&lt;P&gt;i have used GUI_DOWNLOAD here the problem in STR is string not a table, so how to pass the STR data to Internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Transformation&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD idoc-&amp;gt;get_xmldata_as_string&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      data_string = &lt;STRONG&gt;str&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt; CALL SCREEN &lt;STRONG&gt;100.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename = 'C:\Venkat\venkat.xml'&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    data_tab = &lt;STRONG&gt;?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you having any solution for this ? If yes please share.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 08:21:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069785#M1355369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T08:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC to XML Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069786#M1355370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot use this FM to display the idoc as XML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you see the source code of the FM, there is a select from the table IDOCSTYLE. From this the corresponding XSL transformation details are retrieved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i think you did not define the XSLT for the idoc type (or rather message type). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this FM is of no use in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 08:42:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069786#M1355370</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-09-09T08:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC to XML Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069787#M1355371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your information and the problem is solved.&lt;/P&gt;&lt;P&gt;Solved by myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 08:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069787#M1355371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T08:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC to XML Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069788#M1355372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please share how you solved the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am curious to know 'coz this will be a very handy tool to display an Idoc as an XML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 08:55:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069788#M1355372</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-09-09T08:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC to XML Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069789#M1355373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically i have created my custom Function Module.&lt;/P&gt;&lt;P&gt;If you can see the source code of the function module IDOC_XML_TRANSLATE at the end lines after&lt;/P&gt;&lt;P&gt;ENDTRY i have inserted GUi_DOWNLOAD which i have shown in BOLD&lt;/P&gt;&lt;P&gt;you can see. Basically i have used SPLIT keyword to capture my string &lt;/P&gt;&lt;P&gt;values into my inetrnal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATCH cx_xslt_exception INTO gen_ex.&lt;/P&gt;&lt;P&gt;      MESSAGE e110(idoc_xml1) WITH local_xslid wa_obj_location-url&lt;/P&gt;&lt;P&gt;           RAISING error_loading_object.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SPLIT str AT SPACE INTO TABLE t_table.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;EXPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;filename = 'C:\venkat.xml'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;tables&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;data_tab = t_table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you run the XML file will be stored in the file path as given.&lt;/P&gt;&lt;P&gt;I hope this ends the discussion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 09:04:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-to-xml-conversion/m-p/6069789#M1355373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T09:04:54Z</dc:date>
    </item>
  </channel>
</rss>

