Hi Chittaranjan,
In creating the flat file document type in TN, you need to select the option to Save Document To Database.
In your gateway service, you map the service name to TN_parms/$receiveSvc which is input to the wm.tn.doc.ff:routeFlatFile so that the receive service value is already set when the document is originally submitted to TN.
-Mary
#webMethods-BPMS#MWS-CAF-Task-Engine#webMethods