cancel
Showing results for 
Search instead for 
Did you mean: 

sender file adapter content with repeating structure

Former Member
0 Kudos

i have a scenario where my source file could have the following structure:

node1 (1:1)

node2 (0:1)

node3 (0:n)

node1 (1:1)

node2 (0:1)

node3 (0:n)

each node will have many fields. the three different nodes can repeat like this unbounded times. how would i define my content conversion and my data type to capture this structure? any help is appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

nikhil_bose
Active Contributor
0 Kudos

hi chris,

make your Content Conversion Parameters as:


Document Name "your doc_name"
Document Namespace "your name space"
Recordset structure node1,1,node2,1,node3,*, 
Key Field Name Record Type
Key Field Type String

To differentiate the incomings to each nodes, we need a key value

say 01 for each node1 (you can use your own) *

Entry in FCC (below table)


node1.fieldFixedLengths "enter the length of the fields separated by commas
node1.fieldNames  "specify the actual fieldnames separated by comma (no whitespace)
node1.keyFieldValue "enter the key value - for node1 i took as 01" *

make same entries for all the nodes

thanks n regards,

nikhil bos

<i>reward if helpful

Answers (3)

Answers (3)

nisarkhan_n
Active Contributor
0 Kudos

you build your MT

node1 (1:1)

node2 (0:1)

node3 (0:n)

now if you want to fill the the wach row to node1 which has the many subfields you have usethe key field value to identify the row belongint to node1 so on for node2,3....

node1.keyfieldname=="keyfieldname

node1.keyfiledvalue ==" mention appropritae value

and rest thnigns are same as you do the normal CC...

Former Member
0 Kudos
Former Member
0 Kudos

HI,

Use this FCC:

Document Name MT_FII0427_EXPENSE_POSTING

Document Namespace Name sapce which u will be using

Recordset structure node1,1,node2,1,node3,*,

Recordser per Message

Key Field Name Record Type

Key Field Type String

if you have a key value in file then you need to use the key value also in this case i m using the 01 for node1,02 for node 3 and 03 for node 3

node1.fieldFixedLengths 2,8,8,5

node1.fieldNames Record_Type,Interface_Name,Interface_Data,Interface_Number

node1.keyFieldValue 01

node2.fieldFixedLengths 2,4,3,6,10,10,12,75,16,1

node2.fieldNames Record_Type,Company_Code,Currency,

node3.keyFieldValue 02

node3.fieldFixedLengths 2,5,16,16

node3.fieldNames Record_Type, Record_Count,Total_Debit, Total_Credit

node3.keyFieldValue 03

I am assuming you have a fixed length value in the file.

Thnx

Chirag Gohil