cancel
Showing results for 
Search instead for 
Did you mean: 

Reg: FCC error while printing string values in CC

Former Member
0 Kudos

Hi Friends,

scenario is IDOC to File. Target file structure looks like below:

HEADER

<A> </A>

<B> </B>

<DETAILROW>

<C> </C>

</DETAILROW>

<ADVISEROW>

<RECORD>9 INPUT STRING VALUES  </RECORD>

</ADVISEROW>

</ITEM>

</HEADER>

As per our requirement we have used one Java function to accumulate 9 values into one string in Advise row segment . function is working fine while testing in mapping and we are getting desired output in testing and in payload also.

when the same is getting printed on txt file using FCC parameters it is throwing error .  I am attaching screenshots for ref and looking for some inputs.

points will be rewarded.

Regards,

Nagendar

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member184681
Active Contributor
0 Kudos

Dear Nagendar,

Putting things simple: when you use FCC to convert XI message payload to a flat file, you do not have to concatenate the values yourself in the mapping. In fact, this is the purpose for FCC

So normally how you configure it is: you make an ordinary mapping to a target XML structure, then you have it converted to a flat file with FCC with not further steps.

In your case however, if you are sure that your mapping is correct, it might be easier to change the FCC parameters as follows to have it working fine:
Recordset Structure: Line
Line.fieldSeparator = |
Line.endSeparator = 'nl'

Hope this helps,
Greg

Former Member
0 Kudos

the issue is ADVISEROW is having only one field RECORD in your structure, so FCC should have in ADVISEROW.fixedFieldLengths only one value which will be the sum of the lengths of the 9 string fields and not 9 different values in ADVISEROW.fixedFieldLengths.