cancel
Showing results for 
Search instead for 
Did you mean: 

FCC for Deep structure

former_member187447
Participant
0 Kudos

Hi I have following deep structure where in there will be one 3 levels of hirarchy. can i achieve this with just content conversion or should i be using Content conversion with message transformationBean.

HD11234

    IC1MFFF

        L1TTTTT

        L2WWW

    IC2TKKK

        L1HHHH

        L2MMM

HD24567

     IC1ADDD

        L1MMM

        L2LLLL

     IC2BDDD

        L1HHHH

        L2KKKK

Accepted Solutions (1)

Accepted Solutions (1)

ambrish_mishra
Active Contributor
0 Kudos

Hi Kalyan,

Do you want to read or write this file ?

You can read or write files in PI up to 3 levels so it is possible.

Some useful links:

http://scn.sap.com/people/karthiknarayan.kesavan2/blog/2007/08/22/file-content-conversion-for-multi-...

http://wiki.sdn.sap.com/wiki/display/XI/FCC+For+Hierarchical+Structure+in+Receiver+Channel

Hope it helps!

Ambrish

former_member187447
Participant
0 Kudos

Sorry, I should have been more clear. The format i have given would be the source structure to which the values need to be populated from flat file. For better understanding here i am giving more details

Flat file Structure:

Level1 Filed1 Filed1..................... (first level)

Level2 Field1 Field2-----------------------(Second level)

Level3 Field1 Field2.......................(Third level)

Level3 Filed1 Filed2.......................(Third level)

Level2 Filed1 Filed2........................(Second Level)

Level3 Field1 Field2.......................(Third level)

Level3 Filed1 Filed2.......................(Third level)

Level1.......................

Level2...................

Level3..................

Level3.....................

Level2...................

Level3..................

Level3....................

.....

Source structure to which the flat file fields need to be populated.

Level1 Filed1 Filed1..................... (first level)                0 to unbound

    Level2 Field1 Field2-----------------------(Second level)     0 to unbound

        Level3 Field1 Field2.......................(Third level)     0 to unbound

        Level3 Filed1 Filed2.......................(Third level)

    Level2 Filed1 Filed2........................(Second Level)

        Level3 Field1 Field2.......................(Third level)

        Level3 Filed1 Filed2.......................(Third level)

Answers (1)

Answers (1)

rodrigoalejandro_pertierr
Active Contributor
0 Kudos
former_member187447
Participant
0 Kudos

Hi Rodrigo,

If you have used this code and if you have tested it standalone. Could you please provide the main method to execute this program to write the file to an XML file using Filestream, somehow i am having trouble implementing it.