Receiver File Adapter and Problem with File content conversion? Well experience shows us that one of the easiest file adapters to configure is the Receiver File adapter for content conversion. But then why does frequent questions rise up with concerns mainly on the regard that a specific structure is not being content converted into what is desired? A close look into those questions reveal that developers actually are not quite sure about the capabilities or rather I would say limitations of the Content Conversion feature. This blog will focus and try to help the reader with getting the concepts clear and understand the limitations of file content conversion in the Receiver Adapter. That, I assume will lead to a better design of your developments, esp. the creation of the DT/MT for a particular File interface and the desgin of mappings.   Lets start off by having a quick peek into what SAP help defines for content conversion  (   First thing that needs to be considered is the XML structure that is the resultant of the mapping. It is a well known fact that files do not contain hierarchies (aint I right?), so your target structure generated should be a FLAT XML and not one with a hierarchy. Most of the queries that are found in the forums have basically one reason – An incorrect design of the DT/MT and that leads to an undesirable result in the content conversion. If we are aware that one of the limitation of the file adapter is handling hierarchies, the problem would never have come up and now when we realise that (some dont), our development would have come a long way and it might result in a total rework. So point to note: *MAINTAIN A FLAT XML FOR YOUR TARGET FILE IF YOU INTEND TO CONTENT CONVERT IT *  Now further down let us actually try to content convert a XML with multiple hierarchy and understand how it behaves. The below is the XML that we will be working on; Recv Blog 2 50182 7144113 For the above XML, we normally expect the result to be (considering it is going to be a comma separated file and the end separator being a new line) the following; HF1,HF2 IF1,IF2 IXF1,IXF2 IYF1,IFY2 IF11,IF22 IXF11,IXF22 TF1,TF2 but then is this how it really is going to behave? Lets find out.  For the above XML, lets try to generate it as a flat file with the fields searated by a ‘comma’ and the endSeparator being ‘$$’ . So naturally our ‘baisc instinct’ for FCC would be as follows;

New NetWeaver Information at

Very Helpfull



User Rating: Be the first one !