<?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>Question Re: Problems loading IDOC Flat file to IDOC XML format in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/problems-loading-idoc-flat-file-to-idoc-xml-format/qaa-p/10890305#M3990803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to find one IDoc flat file that was used during testing on one of my previous projects. This file loads fine using the converter module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the screenshot below, you can see that at the segment level, the file requires the IDoc no, segment no and parent segment no at each line.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/668989" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Without all these info, the converter will not be able to form the correct hierarchy in the XML file - how can it figure out which parent segment each line belongs to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do note that the IDoc flat file format is an SAP proprietary format, so if you want this to work, the provider has to follow SAP's format. This format has been around since before PI days, when integration of IDoc at ECC side was directly done via IDoc flat files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further details, you can also refer to my reply on the following thread. It is something similar where the third party is generating the IDoc flat file but not fully following the requirement.&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="3640377" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="Problem in IDoc administrative segments while converting IDoc text to IDoc xml" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Eng Swee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Mar 2015 05:25:27 GMT</pubDate>
    <dc:creator>engswee</dc:creator>
    <dc:date>2015-03-21T05:25:27Z</dc:date>
    <item>
      <title>Problems loading IDOC Flat file to IDOC XML format</title>
      <link>https://community.sap.com/t5/technology-q-a/problems-loading-idoc-flat-file-to-idoc-xml-format/qaq-p/10890302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a scenario that I created an interface to convert standard IDOC flat files to a XML IDOC using the module SAP_XI_IDOC/IDOCFlatToXmlConvertor&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/668050" height="225" width="556" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the Flat file IDOC which I want to load is 640 version as you can the header below it doesnt work. I tried to import a file in 702 version with some minor differences in the content of the file and it worked, but we CAN`T apply these minor differences hence we can´t load these 702 file. it should be able to load this 640 file as the image shows below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has someone already seen similar scenario like mine?&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/668108" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 17:51:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problems-loading-idoc-flat-file-to-idoc-xml-format/qaq-p/10890302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-03-19T17:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problems loading IDOC Flat file to IDOC XML format</title>
      <link>https://community.sap.com/t5/technology-q-a/problems-loading-idoc-flat-file-to-idoc-xml-format/qaa-p/10890303#M3990801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try changing the parameter SAPRelease = 640?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Eng Swee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 04:10:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problems-loading-idoc-flat-file-to-idoc-xml-format/qaa-p/10890303#M3990801</guid>
      <dc:creator>engswee</dc:creator>
      <dc:date>2015-03-20T04:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problems loading IDOC Flat file to IDOC XML format</title>
      <link>https://community.sap.com/t5/technology-q-a/problems-loading-idoc-flat-file-to-idoc-xml-format/qaa-p/10890304#M3990802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eng Swee.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it doesn´t change anything. It seems there are 4 administrative colunms in the file that are required to PI load the file. If you compare the 2 images below, you will note, the file is the same. &lt;/P&gt;&lt;P&gt;However the picture 2 has blank spaces and the picture 1 (which is the file that PI loads successfully) contain these ADM fields that I´m talking about, such as IDOC number, a progressive counter, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the provider can´t change this file to PI format and I´d like to know if someone has experiecied this and somehow has loaded this without these ADM fields in the file or any other suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate.&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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/668782" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/668804" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 13:36:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problems-loading-idoc-flat-file-to-idoc-xml-format/qaa-p/10890304#M3990802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-03-20T13:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problems loading IDOC Flat file to IDOC XML format</title>
      <link>https://community.sap.com/t5/technology-q-a/problems-loading-idoc-flat-file-to-idoc-xml-format/qaa-p/10890305#M3990803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to find one IDoc flat file that was used during testing on one of my previous projects. This file loads fine using the converter module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the screenshot below, you can see that at the segment level, the file requires the IDoc no, segment no and parent segment no at each line.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/668989" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Without all these info, the converter will not be able to form the correct hierarchy in the XML file - how can it figure out which parent segment each line belongs to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do note that the IDoc flat file format is an SAP proprietary format, so if you want this to work, the provider has to follow SAP's format. This format has been around since before PI days, when integration of IDoc at ECC side was directly done via IDoc flat files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further details, you can also refer to my reply on the following thread. It is something similar where the third party is generating the IDoc flat file but not fully following the requirement.&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="3640377" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="Problem in IDoc administrative segments while converting IDoc text to IDoc xml" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Eng Swee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2015 05:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problems-loading-idoc-flat-file-to-idoc-xml-format/qaa-p/10890305#M3990803</guid>
      <dc:creator>engswee</dc:creator>
      <dc:date>2015-03-21T05:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problems loading IDOC Flat file to IDOC XML format</title>
      <link>https://community.sap.com/t5/technology-q-a/problems-loading-idoc-flat-file-to-idoc-xml-format/qaa-p/10890306#M3990804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exaclty....These fields relates to child-Parent nodes as well as the IDOC number, I adjusted their files with these extra fields to be able to load them. However I had been alerted that these files had been sucessfully loaded in SAP PI for other companies, but either it's not true or it was used convencional mapping for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Eng, this was exaclty my answer to them.If they want to work with IDOCflat files using SA PI they must follow what PI requires.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good to see that my answer was like what you would do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2015 13:48:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problems-loading-idoc-flat-file-to-idoc-xml-format/qaa-p/10890306#M3990804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-03-21T13:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problems loading IDOC Flat file to IDOC XML format</title>
      <link>https://community.sap.com/t5/technology-q-a/problems-loading-idoc-flat-file-to-idoc-xml-format/qaa-p/10890307#M3990805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't worked with a third party using non-SAP technology to generate IDoc flat files, but I'm curious with the claim that such the formatting was successful for other companies - how do they determine the segment hierarchy if the parent-child relationship is not provided?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, glad to have been of assistance - hopefully you can get the third party to make the necessary changes &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1237/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Eng Swee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 01:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problems-loading-idoc-flat-file-to-idoc-xml-format/qaa-p/10890307#M3990805</guid>
      <dc:creator>engswee</dc:creator>
      <dc:date>2015-03-23T01:53:14Z</dc:date>
    </item>
  </channel>
</rss>

