How to send flatfile to TN

Hi Team,

I am having one doubt how to send ff(stringlist) to TN.
Do we have to convert the string list to object??
How to go about it.
Here is the full flow

CSV—> FF conversion

I will be getting the csv file and will be converting to ff

FLOW :

WE WILL REMOVE THE HEADER AND TRAILER IN THE CSV FILE.
I HAVE ALREADY WRITTEN A LOGIC ON PROCESSING AND GETTING THE OUTPUT AS STRING LIST
I HAVE TO SEND THIS STRING LIST(FF) TO TARGET VIA TRADING NETWORKS

Sample I/p :

20180517,738,
A,CN73YM3,JAXF1,CXIF,C5028,60010181,20180517,20180517,20180518,FALSE,Z4G4,1,18.5,0
A,CN2WUYM,JAXF1,CXIF,C5028,60010181,20180517,20180517,20180518,FALSE,Z4G4,1,18.5,0
20180517,738,2,

How the o/p should be :

$$NEWITEM
A CN7 3YM3 JAXF1CXIF C5028 60010181 2018051 20180 517 20180518 FALSE Z4G 4 1 18 .5 0
A CN2 WUYM JAXF1CXIF C5028 60010181 2018051 72018 0517 20180518 FALSE Z4G 4 1 18 .5 0

Attaching the logic I have written.
Please let me know how to sned the ff via Trading networks?(Do I have to convert the string list to bytes or object and send to TN using TN service???)
Currenlty I have the string list like above mentioned.

?
SS01.JPG

Use this wm.tn.doc.ff:routeFlatFile for more details refer TN BIS guide.

HI Preethi Ganesh,

As mentioned above you have to use wm.tn.doc.ff:routeFlatFile but while passing inputs to the service, you have explicitly hardcode TN_param values such as sender id , receiver id and doctype for the service.

TN doesnt recognize flatfile since its doesnt contains any structural information unlike xml. So we have explicitly pass sender id, receiver id and doctype as TN_params as input to the service. You have create wrapper service calling routeFlatfile service as gateway service.

Thanks,
Arun