Skip to Content

FCC for XML to TXT

Hello Experts,

My scenario is ABAP proxy to ECC(AL11).

Posting the text file to AL11 using FCC. Source and Target structures are the same which is as follows

MT_Source ---Record(This sub node is under MT_Source) -----Field1(There are such 15 fields under Record)

In FCC I a configured as

Recordset structure: MT_SOurce

Record.fieldFixedLegths:10,10,10,10,10,10,10,10,10,10,10,10,10,10,10

Record.fieldSeperator:'nl'

But getting the error

Message processing failed in XML parser: java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value 0123456789), probably configuration error in file adapter (XML parser error)

What should the FCC configuration be for converting XML to Fixed length Text file?

Can you please help me on this?

Thanks in advance,

Vikas

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Jul 25, 2017 at 05:29 PM

    Hello Experts,

    Can someone please help me on this?

    Thanks in advance,

    Vikas

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 26, 2017 at 06:14 AM

    Hello Ryan and Manoj,

    I am using Record in the Recordset Structure and using the following parameters only

    Record.fieldSeperator:'nl'

    Record.endSeperator:TAB

    But getting the error as channel is not initialised

    What are the parameters needed for FCC here in my case?

    There are 15 fields under the Sub node Record

    Really appreciate your replies.

    Thanks in advance,

    Vikas

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 25, 2017 at 06:00 PM

    Hi Vikas,

    The error indicates that your source XML has more than 15 fields. Can you share the payload sample?

    Regards,

    Ryan Crosby

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 26, 2017 at 07:45 AM

    Hello Manoj,

    I am using Record in the Recordset Structure and using the following parameters only

    Record.fieldSeperator:'nl'

    Record.endSeperator:TAB

    Earlier there were 14 fields in the payload but now corrected to 15 .But now getting this error

    Channel has not been correctly initialized and cannot process messages

    Where is it exactly going wrong? This is the payload I am using

     <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Payload xmlns:ns0="http://........">
    <Record>
    <Field1>0123456789</Field1>
    <Field2>0123456789</Field2>
    <Field3>0123456789</Field3>
    <Field4>0123456789</Field4>
    <Field5>0123456789</Field5>
    <Field6>0123456789</Field6>
    <Field7>0123456789</Field7>
    <Field8>0123456789</Field8>
    <Field9>0123456789</Field9>
    <Field10>0123456789</Field10>
    <Field11>0123456789</Field11>
    <Field12>0123456789</Field12>
    <Field13>0123456789</Field13>
    <Field14>0123456789</Field14>
    <Field15>0123456789</Field15>
    </Record>
    </ns0:MT_Payload>

    Thanks in advance

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 25, 2017 at 05:59 PM

    HI Vikas,

    Recordset structure should be Record and not the message type.

    And please validate again your no of Fields in File , FCC and your data type.

    Br,

    Manoj

    Add comment
    10|10000 characters needed characters exceeded