Skip to Content
avatar image
Former Member

Receiver CC File - Complex Flat File Conversion

Dear forum users,

I want your opinion about the feasibility of the content conversion described below using Receiver CC.

The structure of my file is the following

- A File header segment (FH)

- 1...N Business Object that is described by many segments

- A file footer segment (FF)

Exemple of business Object : Purchase Order :

1 Header Segment (POH)

N Item Segments (POI)

Exemple of file :

FH

POH (PO 1)

POI (PO 1)

POI (PO 1)

POH (PO 2)

POI (PO 2)

POI (PO 2)

FF

Is content conversion standard tool can deal with such a structure ?

Note that in the file created, the order of each segment has a big importance :

PO Items of PO 1 must be after PO Header of PO 1 but before PO Header of PO 2 !

I thnik the structure requested by converter described in documentation do not fit with my case :

<root>...

<nameA>

<value1>value</value1>

<value2>value</value2>

<value3>value</value3>

</nameA>

<nameB>

<value4>value</value4>

</nameB>

</root>

I should have :

<root>

<FH>

<PO>

<POH>...</POH>

<POI>...</POI>

<POI>...</POI>

</PO>

<PO>

<POH>...</POH>

<POI>...</POI>

<POI>...</POI>

</PO>

</FH>

</root>

Thanks very much for your help and opinions

Jean-Charles.

Edited by: Jean-Charles CARRET on Jan 3, 2011 6:12 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 03, 2011 at 08:11 PM

    You can use MessageTransformBean for FCC.

    This allows you to have an extra hierarchy level.

    You can use a structure like this:

    root

    - row

    - FH

    - row

    - POH 1

    - POI 1

    - POI 1

    - POI 1

    - row

    - POH 2

    - POI 2

    - POI 2

    - POI 2

    - row

    - FF

    It is not easy to get the mapping and module configuration, but it works.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Stefan Grube

      Stephan,

      I try to use your structure directly with Receiver File CC content conversion tool and it works.

      Thanks for help !

      J.C.