cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver Segments Grouping Required.

Former Member
0 Kudos

Hi Experts,

I have a requirement like below.

Source Structure.

PO1 []   (this segment occurrence as 1: UL)

--------

PO1 []

-------

PO1 []

-------

PID []

------

PID [] (this segment occurrence as 1: UL)

------

PID []

------

SCH [] (this segment occurrence as 1: UL)

-----

SCH []

-----

SCH []

My Target Structure should be like this below

PO1[]

PID[]

SCH[]

PO1[]

PID[]

SCH[]

PO1[]

PID[]

SCH[]

--

--

Let me know how can I group these segments.and How to define my target structure.

Regards,

Nagesh

Accepted Solutions (1)

Accepted Solutions (1)

former_member186851
Active Contributor
0 Kudos

Hello NagesswaraRao,

You have any content under these fields?

Post a sample XML if any,

Former Member
0 Kudos

Hi Sritharan, PO1, PID, SCH are Segments under the main structure, Yes, these segments contains fields inside it.

It's like this below

PO1

    Fld1

    Fld2

    ---

    ---

PO1

      ---

PO1

   ---

PID & SCH are also contains fields like PO1.

Thanks

Nagesh

former_member182412
Active Contributor
0 Kudos

Hi Nag,

Use below mapping:

Test:

Is your receiver adapter is FILE?? are you doing FCC?? then you dont mention this Record segment in the FCC just mention only PO1,PD1 and SCH in FCC then you will get required output.

Regards,

Praveen.

former_member186851
Active Contributor
0 Kudos

Guess Praveen already gave the solution, If you face any issues let us know.

Former Member
0 Kudos

Hi Praveen,

Yes I am using File and there is FCC exist. I configured like this without Record (I used ITEM here).

see capture1 & capture2.

now the problem is how to avoid that ITEM from the target structure.

Thanks

Nagesh

former_member182412
Active Contributor
0 Kudos

Hi Nag,

You just need to enter the FCC without ITEM in the receiver channel. I got the XML after mapping like below.


<?xml version="1.0" encoding="UTF-8"?>

<ns0:FileReceiverData xmlns:ns0="urn:ch:test:prototype">

  <Record>

    <PO1>

      <Field1>AA</Field1>

    </PO1>

    <PD1>

      <Field1>11</Field1>

    </PD1>

    <SCH>

      <Field1>XX</Field1>

    </SCH>

  </Record>

  <Record>

    <PO1>

      <Field1>BB</Field1>

    </PO1>

    <PD1>

      <Field1>22</Field1>

    </PD1>

    <SCH>

      <Field1>YY</Field1>

    </SCH>

  </Record>

  <Record>

    <PO1>

      <Field1>CC</Field1>

    </PO1>

    <PD1>

      <Field1>33</Field1>

    </PD1>

    <SCH>

      <Field1>ZZ</Field1>

    </SCH>

  </Record>

</ns0:FileReceiverData>

FCC:

File:

Regards,

Praveen.

Former Member
0 Kudos

Hi Praveen,

Thank for the Help, I don't have access to FTP, So I checked only XML before,

now I checked the FTP file in alternative way, The target file output is correct as expected.

Regards,

Nagesh

Answers (0)