on 03-22-2012 6:52 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.