cancel
Showing results for 
Search instead for 
Did you mean: 

file to file scenario using 1:N mapping

Former Member
0 Kudos

hi

i want to know that how we will do a scenario in which on the basis of repetion of one field we have to create a new file.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Rinku,

in target data type put the cardinality of target node as 1..1 , then in interface mapping, change the occurance of target msg interface to 0..unbounded , then in msg mapping take the repetitive field and then use exists and creatif functions and then output it to the topmost node..........create a UDF and dynamically generate filename in it and map the output of the UDF to the second topmost msg node.............then on repetition of source node multiple target file will be generated.

Thanks,

Rajeev Gupta

Former Member
0 Kudos

hi

can u give the steps to do this with an example

Shabarish_Nair
Active Contributor
0 Kudos

in the mapping; the repetitive field will be mapped to the root node of the target file; so with each occurance of the field the root node will be triggered

Former Member
0 Kudos

I see such a scenario feasible by using "Adapter module" in the receiver adapter

Perhaps there are other options too

regards

krishna

Former Member
0 Kudos

can u provide me a scenario on this using adapters or you tell me which option i have to use in the adapter module

Former Member
0 Kudos

Hi, Rinku

I must develope a similar scenario.

Have you solved this doubt?

Can you give me detailed information about how to do it?

Thanks, in advance.

Carme