<?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: Generating Flat File from Idoc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/generating-flat-file-from-idoc/m-p/862335#M48327</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;The prolem with this is that IDoc have a structured format (i.e. header and segments, very much a tree-like structure). Creating a flat file from such a structure is not an easy task, because this kind of structure is difficult to re-create in, say, an ASCII file. So, the "native" file format of an IDoc is a structured text file, as well. It has several lines (roughly speaking, each line corresponds to a segment).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My preferred file format for IDocs is, of course, XML. With XML you are able to map the tree-like segment structure of IDocs with great ease. You can have a look at the various XML formats under &lt;A href="http://ifr.sap.com" target="test_blank"&gt;http://ifr.sap.com&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you can transform XML documents easily with stylesheets and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Joerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Apr 2005 07:22:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-04-21T07:22:16Z</dc:date>
    <item>
      <title>Generating Flat File from Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generating-flat-file-from-idoc/m-p/862333#M48325</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 would like to know is there any way to generate flat file from Idoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2005 03:18:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generating-flat-file-from-idoc/m-p/862333#M48325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-21T03:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Flat File from Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generating-flat-file-from-idoc/m-p/862334#M48326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kishore!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might not be as flat as you expect (file structure looks more like IDOC structure, but it's a text file):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In partner profiles (WE20) in customizing of outbound message, tab outbound options you can define a receiver port. This can not only be a system, but several different types. Hit F4, in second tab you can define a file output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2005 06:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generating-flat-file-from-idoc/m-p/862334#M48326</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-04-21T06:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Flat File from Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generating-flat-file-from-idoc/m-p/862335#M48327</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;The prolem with this is that IDoc have a structured format (i.e. header and segments, very much a tree-like structure). Creating a flat file from such a structure is not an easy task, because this kind of structure is difficult to re-create in, say, an ASCII file. So, the "native" file format of an IDoc is a structured text file, as well. It has several lines (roughly speaking, each line corresponds to a segment).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My preferred file format for IDocs is, of course, XML. With XML you are able to map the tree-like segment structure of IDocs with great ease. You can have a look at the various XML formats under &lt;A href="http://ifr.sap.com" target="test_blank"&gt;http://ifr.sap.com&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you can transform XML documents easily with stylesheets and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Joerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2005 07:22:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generating-flat-file-from-idoc/m-p/862335#M48327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-21T07:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Flat File from Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generating-flat-file-from-idoc/m-p/862336#M48328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kishore, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know if you see my answer to the same ask from 04/18. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can send the IDoc to a flat file, creating a PORT of the file type. If you send the IDoc in this way, you have the complete idoc in the strcutures text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have to create a flat file using the data into the IDoc, but not with idoc format, you can use a type ABAP port. In this port, you have to put a function module name that process the idoc and create the flat file (and put it in the application server). Use the function module OWN_FUNCTION as example to create your own FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;PabloX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2005 12:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generating-flat-file-from-idoc/m-p/862336#M48328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-21T12:29:45Z</dc:date>
    </item>
  </channel>
</rss>

