on 06-28-2011 5:18 PM
Hello All,
Below is the flat file output:
HEADER1
LINE ITEM1
LINE ITEM2
==
==
HEADER2
LINE ITEM3
LINE ITEM4
==
==
TRAILER
When PI is reading the above flat file below is xml structure generating:
<HEADER1>
<LINEITEM1>
<LINEITEM2>
==
<HEADER2>
<LINEITEM3>
<LINEITEM4>
==
<TRAILER>
Till now everything is working fine. In my message mapping I am performing some validations after that I am trying to write the same Input file in the same structure. But I am getting flat file in below format:
HEADER
HEADER
LINE ITEM1
LINEITEM2
LINEITEM3
==
===
I am expecting in same Input format i.e. as below:
HEADER1
LINE ITEM1
LINE ITEM2
==
==
HEADER2
LINE ITEM3
LINE ITEM4
==
==
TRAILER
How can I get the above structure?
Hi,
you can convert the strucutre to flat file in File adapter using conversionType as "StructPlain2XML". And as you Lineitem are comming in variable sequence you need to use the parameter:
xml.recordsetStructureOrder - var
Regards,
Harish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create ur structure as
Record
-
Header
-
LineItem
-
Trailer
Record will group Header. LineItem and Trailer.
In FCC recordset structure mention Header,LineItem and Trailer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Murthy,
YOu can use this nice little trick by Shabarish:
/people/shabarish.vijayakumar/blog/2010/01/14/file-conversion-using-nodeception
Best Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Moorthy,
You need to perform FCC in receiver adapter.
the FCC structure should be.
Header,Line,*,Trailer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
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.