cancel
Showing results for 
Search instead for 
Did you mean: 

Reading a multi level heirarchy file in PI

Former Member
0 Kudos

Hi Experts,

I've a file to idoc scenario.It is a text file. It has a heirarchy of 4 levels.
I know that in PI content conversion using FCC/Message Transform bean is possible only for 3 levels.
Is there any way to read such a file?


Source structure of the above file
<Message Type>
<Record>
<header1>
--h1
--h2
<header2>
--h21
--h22
<header3>
<Item>
--<LineItem>
--<It1>
--<It2>

Thanks in advance
Senthil J

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member184720
Active Contributor
0 Kudos

Hi Senthil - If you would like to avoid java mapping then please refer to the below blog which explains the possibility through graphical mapping.

http://www.riyaz.net/sap/xipi-convert-flat-file-to-deeply-nested-xml-structures-using-only-graphical...

Former Member
0 Kudos

Hi ,

We have worked on the similar requirement long time back .Below is the simple sol for your req.

First read the csv file using normal fcc ,then use the java mapping to convert input xml to deeply nested xml structure.

Java code for converting to deeply nested structure by taking an example.

Mapping1:Java Mapping

Mapping2:Your actual structure to target xml.

OM-->MM1 + MM2

Regards

Venkat