Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

structure not populating correctly in FCC

$
0
0

Hi Guys,

 

Can somebody please help me as I am facing very strange problem in Sender FCC.

 

I have a structure like this

 

MT_ABC

FILE_HEADER

    RECORD_TYPE

    FIELD1

    FIELD2

    VOUCHER_HEADER

        RECORD_TYPE

        FIELD1

        FIELD2

        VOUCHER_DETAIL

            RECORD_TYPE

            FIELD1

            FIELD2

 

FCC Setting in Adapter

 

Document Name : MT_ABC

Document Namespace: http://abc.com

Document Offset:

Recordset Name: Records

Recordset Namespace:

Recordset Structure: FILE_HEADER,1,VOUCHER_HEADER,*,VOUCHER_DETAIL,*

Recordset Sequence: Ascending

Recordset per Message:

Key Field Name : KEY

key Filed Type: String (Case-Sensitive)

 

Details

 

FILE_HEADER.fieldNames               :  RECORD_TYPE,FIELD1, FIELD2
FILE_HEADERfieldFixedLengths.      :  1,2,12

FILE_HEADER.endSeparator             : 'nl'

FILE_HEADER.keyFieldValue            :  A

FILE_HEADER.keyFieldInStructure    :  ignore

FILE_HEADER.processFieldNames   :  fromConfiguration

 

VOUCHER_HEADER.fieldNames             : RECORD_TYPE,FIELD1, FIELD2

VOUCHER_HEADER.fieldFixedLengths   : 1,2,9

VOUCHER_HEADER.endSeparator        : 'nl'

VOUCHER_HEADER.keyFieldValue       : B

VOUCHER_HEADER.keyFieldInStructure : ignore

VOUCHER_HEADER.processFieldNames   : fromConfiguration

 

VOUCHER_DETAIL.fieldNames             : RECORD_TYPE,FIELD1,FIELD2,

VOUCHER_DETAIL.fieldFixedLengths   : 1,2,2

VOUCHER_DETAIL.endSeparator        : 'nl'

VOUCHER_DETAIL.keyFieldValue       : D

VOUCHER_DETAIL.processFieldNames   : fromConfiguration

 

BUT OUTPUT IS COMING LIKE THIS

 

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

<ns:MT_ABC xmlns:ns="http://abc.com">

<Recordset>

    <FILE_HEADER>

      <RECORD_TYPE>A</RECORD_TYPE>

      <FIELD1>12</FIELD2>

      <FIELD2>140506022407</FIELD2>

    </FILE_HEADER>

    <VOUCHER_HEADER>

         <RECORD_TYPE>B</RECORD_TYPE>

         <FIELD1>01</FIELD1>

        <FIELD2>003417131</FIELD2>

    </VOUCHER_HEADER>

    <VOUCHER_DETAIL>

            <RECORD_TYPE>D</RECORD_TYPE>

            <FIELD1>03</FIELD1>

           <FIELD2>01</FIELD2>

</Recordset>

<Recordset>

     <VOUCHER_HEADER>

      <VOUCHER_DETAIL>

</Recordset>

 

Can somebody please tell me why the structure is not generating like this.

 

MT_ABC

FILE_HEADER

    RECORD_TYPE

    FIELD1

    FIELD2

    VOUCHER_HEADER

        RECORD_TYPE

        FIELD1

        FIELD2

        VOUCHER_DETAIL

            RECORD_TYPE

            FIELD1

            FIELD2

    VOUCHER_HEADER

        RECORD_TYPE

        FIELD1

        FIELD2

        VOUCHER_DETAIL

            RECORD_TYPE

            FIELD1

            FIELD2

 

Regards,

Asif


Viewing all articles
Browse latest Browse all 7030

Trending Articles